• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Question Modify value in vhost.conf

JTRipper

Regular Pleskian
Hello,

we need to remove this directive:

php_admin_value error_reporting 22519

inside this tag : <IfModule mod_php5.c>

from the config file /var/www/vhosts/system/domain.tld/conf/httpd.conf

otherwise it overrides our values defined in /etc/php.ini config which we need for the sites running as apache module and creates problems with some old sites.

We got this problem after upgrading to 17.5.30 on Centos 6.9 64bit

But everytime I reconfigure vhost I need to reuse sed to comment it out.
I didn't find a possibility to change using custom domainVirtualHost.php

How can I achieve this task in permanent way ?

thanks
Jack
 
Are you sure that you have no enabled any sustom vhost templates? Try to find this with something like:

# cd /usr/local/psa/admin/conf/templates
# grep -R 22519 *
# grep -R error_reporting *
 
Are you sure that you have no enabled any sustom vhost templates? Try to find this with something like:

# cd /usr/local/psa/admin/conf/templates
# grep -R 22519 *
# grep -R error_reporting *

Hello Igor,
thanks for your prompt response.
I have already tried that before.
No results found:
[root@mu000XXX httpdocs]# cd /usr/local/psa/admin/conf/templates
[root@mu000XXX templates]# grep -R 22519 *
[root@mu000XXX templates]# grep -R error_reporting *
[root@mu000XXX templates]# pwd
/usr/local/psa/admin/conf/templates
[root@mu000XXX templates]#

update: I don't have any custom templates on this server.
[root@mu000XXX templates]# find /usr/local/psa/admin/conf/templates/ -maxdepth 1 -type d
/usr/local/psa/admin/conf/templates/
/usr/local/psa/admin/conf/templates/pci_compliance
/usr/local/psa/admin/conf/templates/default
[root@mu000XXX templates]#
 
Last edited:
If nobody can't help you here, I'd suggest you contact Plesk Support Team.
 
Back
Top