How could I modify the default httpd.include

General Discussion of atomic repo and development projects.

Ask for help here with anything else not covered by other forums.
sebas
Forum User
Forum User
Posts: 85
Joined: Thu Feb 12, 2009 8:53 pm
Location: Mexico
Contact:

How could I modify the default httpd.include

Unread post 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.
CentOS release 6.5 (Final)
Plesk psa-11.5.30-cos6.build115130819.13
ASL 3.2.18-37
Linux 2.6.32-358.11.1.el6.x86_64
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Re: How could I modify the default httpd.include

Unread post by breun »

Lemonbit Internet Dedicated Server Management
sebas
Forum User
Forum User
Posts: 85
Joined: Thu Feb 12, 2009 8:53 pm
Location: Mexico
Contact:

Re: How could I modify the default httpd.include

Unread post 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.
CentOS release 6.5 (Final)
Plesk psa-11.5.30-cos6.build115130819.13
ASL 3.2.18-37
Linux 2.6.32-358.11.1.el6.x86_64
Post Reply