This documentation relates to CiviCRM version 3.1. It's not maintained anymore.
Current version of documentation.

Error Open_basedir

Skip to end of metadata
Go to start of metadata

This page refers to outdated version of CiviCRM. Check current version of documentation.


Documentation Search


CiviCRM 3.1 Documentation

Support and Participation

Developer Resources


CiviCRM book!

Make sure to check out Understanding CiviCRM as well! You can also support this project by ordering a hard copy.

Open_basedir error for uploads and imports

When attempting to upload files or import contact records into CiviCRM, the following errors are displayed on the page:

warning: filesize(): open_basedir restriction in effect.

warning: fopen(): open_basedir restriction in effect.

For traditional apache, grep your httpd.conf (apache.conf) for "basedir" (no quotes) and comment out any open_basedir lines that reference your CRM implementation.

For any SME Server users reading this in the mysterious future, here are the steps to fix this problem using their crazy templating system:

Edit

/etc/e-smith/templates/etc/httpd/conf/httpd.conf/95AddType00PHP2ibays

Comment out line 19, which reads:

$OUT .= " php_admin_value open_basedir $basedir\n";
Labels
  • None

Creative Commons License
Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution-Share Alike 3.0 United States Licence.