Koozali.org: home of the SME Server

i-bays, pear, and open_basedir - bug?

Brett Roper

i-bays, pear, and open_basedir - bug?
« on: December 04, 2002, 01:03:09 AM »
I was trying to use the PHP Pear libraries in an i-bay on my (5.1 upgraded to 5.5 and security updated) server. These libraries are located in /usr/share/pear and hence I came up against the open_basedir issue reffered to in the FAQ. I solved it with creation and modification of "/etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/95AddType00PHP2ibays" adding the pear path as shown "php_admin_value open_basedir $basedir:/usr/share/pear".

The include path in php.ini was also set to the non-exsitant directory /usr/share/php. I changed this to refer to .:/user/share/pear in another custom template "/etc/e-smith/templates-custom/etc/php.ini/50PathsDirectories".

My questions are these.

Is there a CVS repository so I can check the state of templates in the curent dev version without downloading a whole ISO?

Assuming my troubles are not an artifact of the way I built or upgraded my server shouldn't the Pear library be part of the allowed directories for i-bays?

Is the php.ini include path not existing a bag? Should the Pear libraries be included in the path?