This documentation refers to an older version of CiviCRM (3.4 / 4.0). The current stable version is 4.1. Please introduce all documentation changes and new material here.

Skip to end of metadata
Go to start of metadata
This page refers to CiviCRM 3.4 and 4.0, current STABLE version.

Documentation Search


CiviCRM 3.4 and 4.0 Documentation

Support and Participation

Developer Resources


CiviCRM books!

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

Or support us by buying an eBook or hard copy of Using CiviCRM from Packt Publishing.

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