.php-fcgi-starter openbasedir restrictions has missing value in debian squeeze for php-pear
Had a website that is running Joomla 2.5.4 and the latest extplorer component. Attempting to access the component in the backend generates a blank page, upon looking through the logs in the modsec_audit.log I happened to notice
Apache-Error: [file "fcgid_bucket.c"] [line 149] [level 4] mod_fcgid: stderr: PHP Fatal error: require_once(): Failed opening required 'PEAR.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/clients/client3/web59/web/administrator/components/com_extplorer/libraries/FTP.php on line 33, referer: http://www.xxx-xxxxxxx.org/administrator/index.php?option=com_installer&view=manage
Doing a quick locate on that file shows it to actually be in /usr/share/php/PEAR.php
Yet upon viewing the /var/www/php-fcgi-scripts/web59/.php-fcgi-starter we have this for our basedir restrictions open_basedir="/var/www/clients/client3/web59/web:/var/www/clients/client3/web59/tmp:/var/www/xxxx-xxxxxxx.org/web:/srv/www/xxxx-xxxxxxx.org/web:/usr/share/php5:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin"
Adding that new path for all the pear stuff into the open_basedir got it working. Granted maybe someone won't have any of the pear stuff installed but. quite likely on a virtual hosting platform this that, someone will have need for it to be installed almost guaranteed.