Removing open_basedir restriction from an iBay

Taken from: http://contribs.org/modules/phpwiki/index.php/TroubleshootingFAQ

* PHP Warning: (…) open_basedir restriction if installing anything PHP related in ibay

Related to open_basedir setting in php.ini file. SME does not allow PHP in /tmp or /usr/share. This is a security measure. PHP values are set per ibay in the template:

/etc/httpd/conf/httpd.conf/95AddType00PHP2ibays

There you can set the basedir (or the includedir) for all ibays by changing the template.

These commands solves it, tmp could be another location where PHP wants to write.

/sbin/e-smith/db accounts setprop PHPBaseDir /home/e-smith/files/ibays//:/tmp
/sbin/e-smith/signal-event ibay-modify

This entry was posted in SME Server. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *