Since I seem to see lots of discussion of open_basedir - /tmp related problems, I've created a new feature request in the bug tracker to set a reasonable value for upload_tmp_dir if an ibay has dynamic content enabled:
http://bugs.contribs.org/show_bug.cgi?id=7011The approach in that bug is as follows:
- create /home/e-smith/files/ibays/<ibayname>/tmp
- set ownership of the new folder appropriately (chown www:www /home/e-smith/files/ibays/<ibayname>/tmp)
- Make a custom-template copy of 95AddType00PHP2ibays:
mkdir -p /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf
cd /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf
cp /etc/e-smith/templates/etc/httpd/conf/httpd.conf/95AddType00PHP2ibays .
(don't miss the "." at the end of the last line)
Edit the custom-template version of 95AddType00PHP2ibays and add the three lines preceded by "+" below:
my $basedir = $ibay->prop('PHPBaseDir')
|| ("/home/e-smith/files/ibays/" . $ibay->key . "/");
$OUT .= " php_admin_value open_basedir $basedir\n";
+ my $tmpdir = $ibay->prop('PHPTmpDir')
+ || ("/home/e-smith/files/ibays/" . $ibay->key . "/tmp");
+ $OUT .= " php_admin_value upload_tmp_dir $tmpdir\n";
$OUT .= "</Directory>\n";
Implement your changes using:
signal-event remoteaccess-update
NOTE:
Any ibay that has already been configured to support php uploads by adding "/tmp/" to PHPBaseDir will need to have a local ".../tmp" folder created before uploads will work again.