• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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