Page 1 of 1

How could I modify the default httpd.include

Posted: Wed Jun 24, 2009 12:33 pm
by sebas
Every time a domain or subdomain is added in Plesk considering that it has PHP activated the stanza has some default values.

I need to change the

php_admin_value open_basedir "/var/www/vhosts/xxxx/httpsdocs:/tmp"

to

php_admin_value open_basedir "/var/www/vhosts/xxxx/httpsdocs:/tmp:/usr/share/pear"

So that PEAR is not just included in the php include path but also on the open base dir restriction.

Thanks for your help.

Re: How could I modify the default httpd.include

Posted: Wed Jun 24, 2009 12:41 pm
by breun

Re: How could I modify the default httpd.include

Posted: Wed Jun 24, 2009 7:11 pm
by sebas
That worked.

I added a vhost.conf file in the directory /var/www/vhosts/xxx/subdomains/yyy/conf/

With the following content:
<Directory /var/www/vhosts/xxx/subdomains/yyy/httpdocs>
<IfModule sapi_apache2.c>
php_admin_value open_basedir "/var/www/vhosts/xxx/subdomains/comunicacion/httpdocs:/usr/share/pear:/tmp"
</IfModule>
<IfModule mod_php5.c>
php_admin_value open_basedir "/var/www/vhosts/xxx/subdomains/comunicacion/httpdocs:/usr/share/pear:/tmp"
</IfModule>
</Directory>

Then run
/usr/local/psa/admin/sbin/websrvmng -u --vhost-name=yyy.xxx.com.mx

and

service httpd reload

and we are now running!

Thanks for your help.