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?
pear, plesk, and open_basedir
-
- Forum Regular
- Posts: 257
- Joined: Wed Aug 04, 2010 2:52 pm
Re: pear, plesk, and open_basedir
I think you need to use :
<Directory "/var/www/vhosts/xxxxxx.com/subdomains/subdomain_name/httpdocs">
(Ie Add httpdocs and flesh out the path), otherwise you're not overloading the original directives in the httpd.include .
<Directory "/var/www/vhosts/xxxxxx.com/subdomains/subdomain_name/httpdocs">
(Ie Add httpdocs and flesh out the path), otherwise you're not overloading the original directives in the httpd.include .
-
- Forum Regular
- Posts: 257
- Joined: Wed Aug 04, 2010 2:52 pm
Re: pear, plesk, and open_basedir
subdomains don't go in httpdocs. /var/www/vhosts/domain.com/sub/ <-- that is where you dump your docs.
Re: pear, plesk, and open_basedir
This is Plesk 10?
2 secs....
Ok, I can see how that works... where are you putting your vhost.conf? In /var/www/vhosts/domain/conf/ or in /var/www/vhosts/domain/subdomains/sub/conf/ ?
Ironically in Plesk 10 you can put your httpdocs equivalent for the subdomain where you like, but the vhost.conf needs to go where it always used to.
I've successfully added pear to the include path using the subdomains/sub/conf/vhost.conf and a websrvmng -v -a . Same principles should apply for the open_basedir.
2 secs....
Ok, I can see how that works... where are you putting your vhost.conf? In /var/www/vhosts/domain/conf/ or in /var/www/vhosts/domain/subdomains/sub/conf/ ?
Ironically in Plesk 10 you can put your httpdocs equivalent for the subdomain where you like, but the vhost.conf needs to go where it always used to.
I've successfully added pear to the include path using the subdomains/sub/conf/vhost.conf and a websrvmng -v -a . Same principles should apply for the open_basedir.
-
- Forum Regular
- Posts: 257
- Joined: Wed Aug 04, 2010 2:52 pm
Re: pear, plesk, and open_basedir
/var/www/vhosts/domain/subdomains/sub/conf/
Did not know that existed. Will try this and respond.
Did not know that existed. Will try this and respond.
-
- Forum Regular
- Posts: 257
- Joined: Wed Aug 04, 2010 2:52 pm
Re: pear, plesk, and open_basedir
Bingo. Gracias paulie.