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.
How could I modify the default httpd.include
How could I modify the default httpd.include
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
Plesk psa-11.5.30-cos6.build115130819.13
ASL 3.2.18-37
Linux 2.6.32-358.11.1.el6.x86_64
-
- 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
See the docs: Including Directives into Web Server Configuration File
Lemonbit Internet Dedicated Server Management
Re: How could I modify the default httpd.include
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.
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
Plesk psa-11.5.30-cos6.build115130819.13
ASL 3.2.18-37
Linux 2.6.32-358.11.1.el6.x86_64