pear, plesk, and open_basedir
Posted: Fri Apr 08, 2011 2:14 am
Hi Guys,
I've been banging my head against a wall for hours and can't seem to get over this hurdle.
PEAR dumps into /usr/share/pear. Plesk's locked down secure PHP seems to make it very difficult to open up the "open_basedir" restriction.
I've tried the vhost.conf like this:
<Directory "/var/www/vhosts/xxxxxx.com/subdomain">
php_admin_value open_basedir "/var/www/vhosts/xxxxxx.com/subdomain:/usr/share/pear:/tmp"
php_admin_value include_path ".:/usr/share/pear"
</Directory>
And like this:
<Directory "/var/www/vhosts/xxxxxx.com/subdomain">
php_admin_flag safe_mode 0
php_admin_value open_basedir "/var/www/vhosts/xxxxxx.com/subdomain:/usr/share/pear:/tmp"
php_admin_value include_path ".:/usr/share/pear"
</Directory>
I've done these type of commands lots of times after every edit:
/usr/local/psa/admin/sbin/httpdmng --reconfigure-all
/usr/local/psa/admin/sbin/websrvmng -u --vhost-name=xxxxxx.com
/usr/local/psa/admin/sbin/websrvmng -u --vhost-name=subdomain.xxxxxx.com
Any thoughts or suggestions? Anyone successfully using PEAR with Plesk?
I've been banging my head against a wall for hours and can't seem to get over this hurdle.
PEAR dumps into /usr/share/pear. Plesk's locked down secure PHP seems to make it very difficult to open up the "open_basedir" restriction.
I've tried the vhost.conf like this:
<Directory "/var/www/vhosts/xxxxxx.com/subdomain">
php_admin_value open_basedir "/var/www/vhosts/xxxxxx.com/subdomain:/usr/share/pear:/tmp"
php_admin_value include_path ".:/usr/share/pear"
</Directory>
And like this:
<Directory "/var/www/vhosts/xxxxxx.com/subdomain">
php_admin_flag safe_mode 0
php_admin_value open_basedir "/var/www/vhosts/xxxxxx.com/subdomain:/usr/share/pear:/tmp"
php_admin_value include_path ".:/usr/share/pear"
</Directory>
I've done these type of commands lots of times after every edit:
/usr/local/psa/admin/sbin/httpdmng --reconfigure-all
/usr/local/psa/admin/sbin/websrvmng -u --vhost-name=xxxxxx.com
/usr/local/psa/admin/sbin/websrvmng -u --vhost-name=subdomain.xxxxxx.com
Any thoughts or suggestions? Anyone successfully using PEAR with Plesk?