• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

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