store | blogs | forums | twitter | facebook | wiki | mailing lists | downloads | support portal
Atomic Secure Linux
It is currently Fri May 24, 2013 2:36 pm

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic Share/Bookmark  [ 6 posts ] 
Author Message
 Post subject: pear, plesk, and open_basedir
Unread postPosted: Fri Apr 08, 2011 2:14 am 
Offline
Forum Regular
Forum Regular

Joined: Wed Aug 04, 2010 2:52 pm
Posts: 256
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?


Top
 Profile  
 
 Post subject: Re: pear, plesk, and open_basedir
Unread postPosted: Fri Apr 08, 2011 2:41 am 
Offline
Forum User
Forum User

Joined: Tue Apr 20, 2010 2:49 am
Posts: 74
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 .


Top
 Profile  
 
 Post subject: Re: pear, plesk, and open_basedir
Unread postPosted: Fri Apr 08, 2011 12:01 pm 
Offline
Forum Regular
Forum Regular

Joined: Wed Aug 04, 2010 2:52 pm
Posts: 256
subdomains don't go in httpdocs. /var/www/vhosts/domain.com/sub/ <-- that is where you dump your docs.


Top
 Profile  
 
 Post subject: Re: pear, plesk, and open_basedir
Unread postPosted: Fri Apr 08, 2011 1:58 pm 
Offline
Forum User
Forum User

Joined: Tue Apr 20, 2010 2:49 am
Posts: 74
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.


Top
 Profile  
 
 Post subject: Re: pear, plesk, and open_basedir
Unread postPosted: Sat Apr 09, 2011 11:51 pm 
Offline
Forum Regular
Forum Regular

Joined: Wed Aug 04, 2010 2:52 pm
Posts: 256
/var/www/vhosts/domain/subdomains/sub/conf/

Did not know that existed. :) Will try this and respond.


Top
 Profile  
 
 Post subject: Re: pear, plesk, and open_basedir
Unread postPosted: Tue Apr 12, 2011 2:28 pm 
Offline
Forum Regular
Forum Regular

Joined: Wed Aug 04, 2010 2:52 pm
Posts: 256
Bingo. Gracias paulie.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic Share/Bookmark  [ 6 posts ] 

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group