• 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

Issue New Configuration Files for the Apache Web Server Not Created Due to Error

Abdu

New Pleskian
I am running Plesk Onyx 17.5.3 and keep getting the following error in the front-end at the Websites and Domains tab:

New configuration files for the Apache web server were not created due to the errors in configuration templates: Fatal error: Call to a member function configuration() on null in /usr/local/psa/admin/conf/templates/default/nginxDomainVhost.php. Detailed error descriptions were sent to you by email. Please resolve the issues and click here to generate broken configuration files once again or here to generate all configuration files.

I have tried running the repair tool, but no hope. All websites return an error 502 Bad Gateway. I also tried to recreate/regenerate the configuration from SSH command line, but nothing seems to work. No email is sent with detailed error descriptions, so I have no clue what it is.

Any pointers to the right direction is appreciated!
 
What is the output of commands:

# apachectl -t
# nginx -t

# plesk repair fs
# plesk repair web

# plesk installer --select-release-current --reinstall-patch --upgrade-installed-components
 
# apachectl -t
Syntax OK
=============================
nginx -t
nginx: [warn] duplicate value "TLSv1" in /etc/nginx/conf.d/sslv3-disable.conf:1
nginx: [warn] duplicate value "TLSv1.1" in /etc/nginx/conf.d/sslv3-disable.conf:1
nginx: [warn] duplicate value "TLSv1.2" in /etc/nginx/conf.d/sslv3-disable.conf:1
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
=============================
plesk repair fs
NO ERRORS
=============================
# plesk repair web
NO ERRORS
=============================
plesk installer --select-release-current --reinstall-patch --upgrade-installed-components

Removing php-mysql.x86_64 0:5.4.16-46.el7 - u due to obsoletes from installed php-mysqlnd-7.2.13-2.el7.remi.x86_64
[php-ioncube-loader.x86_64 0:10.3.0-1.el7.remi.5.4 - u]
[plesk-web-hosting.x86_64 0:17.5.3-cos7.build1705170317.16 - u]
[php-fpm.x86_64 0:5.4.16-46.el7 - u]
[psa-mod_aclr2.x86_64 0:14081815-centos7.17031414.9e86c2f - u]
[psa-mod_proxy.x86_64 0:2.4.6-centos7.17031417 - u]
[psa-php5-configurator.x86_64 0:1.7.0-cos7.build1705170314.17 - u]
[php-imap.x86_64 0:5.4.16-7.el7 - u]
[psa-mod_sysenv.x86_64 0:0.2-centos7.17031417 - u]
[psa-phpfpm-configurator.x86_64 0:1.0.0-cos7.build1705170314.17 - u]

No package matched to remove: php-mysql
Attempt to remove 'php-mysql' to resolve conflict has failed
Attempt to remove 'php-mysqlnd' to resolve conflict has succeeded
[php-ioncube-loader.x86_64 0:10.3.0-1.el7.remi.5.4 - u]
[plesk-web-hosting.x86_64 0:17.5.3-cos7.build1705170317.16 - u]
[php-fpm.x86_64 0:5.4.16-46.el7 - u]
[psa-mod_aclr2.x86_64 0:14081815-centos7.17031414.9e86c2f - u]
[psa-mod_proxy.x86_64 0:2.4.6-centos7.17031417 - u]
[psa-php5-configurator.x86_64 0:1.7.0-cos7.build1705170314.17 - u]
[php-mysqlnd.x86_64 0:7.2.13-2.el7.remi - e]
[php-imap.x86_64 0:5.4.16-7.el7 - u]
[psa-mod_sysenv.x86_64 0:0.2-centos7.17031417 - u]
[psa-phpfpm-configurator.x86_64 0:1.0.0-cos7.build1705170314.17 - u]

[php-ioncube-loader.x86_64 0:10.3.0-1.el7.remi.5.4 - u]
[plesk-web-hosting.x86_64 0:17.5.3-cos7.build1705170317.16 - u]
[php-fpm.x86_64 0:5.4.16-46.el7 - u]
[psa-mod_aclr2.x86_64 0:14081815-centos7.17031414.9e86c2f - u]
[psa-mod_proxy.x86_64 0:2.4.6-centos7.17031417 - u]
[psa-php5-configurator.x86_64 0:1.7.0-cos7.build1705170314.17 - u]
[php-mysqlnd.x86_64 0:7.2.13-2.el7.remi - e]
[php-imap.x86_64 0:5.4.16-7.el7 - u]
[psa-mod_sysenv.x86_64 0:0.2-centos7.17031417 - u]
[psa-phpfpm-configurator.x86_64 0:1.0.0-cos7.build1705170314.17 - u]

[php-ioncube-loader.x86_64 0:10.3.0-1.el7.remi.5.4 - u]
[plesk-web-hosting.x86_64 0:17.5.3-cos7.build1705170317.16 - u]
[php-fpm.x86_64 0:5.4.16-46.el7 - u]
[psa-mod_aclr2.x86_64 0:14081815-centos7.17031414.9e86c2f - u]
[psa-mod_proxy.x86_64 0:2.4.6-centos7.17031417 - u]
[psa-php5-configurator.x86_64 0:1.7.0-cos7.build1705170314.17 - u]
[php-mysqlnd.x86_64 0:7.2.13-2.el7.remi - e]
[php-imap.x86_64 0:5.4.16-7.el7 - u]
[psa-mod_sysenv.x86_64 0:0.2-centos7.17031417 - u]
[psa-phpfpm-configurator.x86_64 0:1.0.0-cos7.build1705170314.17 - u]

[php-ioncube-loader.x86_64 0:10.3.0-1.el7.remi.5.4 - u]
[plesk-web-hosting.x86_64 0:17.5.3-cos7.build1705170317.16 - u]
[php-fpm.x86_64 0:5.4.16-46.el7 - u]
[psa-mod_aclr2.x86_64 0:14081815-centos7.17031414.9e86c2f - u]
[psa-mod_proxy.x86_64 0:2.4.6-centos7.17031417 - u]
[psa-php5-configurator.x86_64 0:1.7.0-cos7.build1705170314.17 - u]
[php-mysqlnd.x86_64 0:7.2.13-2.el7.remi - e]
[php-imap.x86_64 0:5.4.16-7.el7 - u]
[psa-mod_sysenv.x86_64 0:0.2-centos7.17031417 - u]
[psa-phpfpm-configurator.x86_64 0:1.0.0-cos7.build1705170314.17 - u]

Exception: Failed to solve dependencies:
php-fpm-5.4.16-46.el7.x86_64 requires php-common(x86-64) = 5.4.16-46.el7
php-ioncube-loader-10.3.0-1.el7.remi.5.4.x86_64 requires php(api) = 20100412-64
php-ioncube-loader-10.3.0-1.el7.remi.5.4.x86_64 requires php(zend-abi) = 20100525-64
php-imap-5.4.16-7.el7.x86_64 requires php(zend-abi) = 20100525-64
php-imap-5.4.16-7.el7.x86_64 requires php(api) = 20100412-64
psa-php5-configurator-1.7.0-cos7.build1705170314.17.x86_64 requires php-mysql

ERROR: The Yum utility failed to install the required packages.
Attention! Your software might be inoperable.
Please contact product technical support.
exit status 1
 
Try to disable remi yum repository and run

# plesk installer --select-release-current --reinstall-patch --upgrade-installed-components

again.
 
Exception: Failed to solve dependencies:
php-imap-5.4.16-2.el7.x86_64 requires php(api) = 20100412-64
psa-php5-configurator-1.7.0-cos7.build1705170314.17.x86_64 requires php-mysql
php-imap-5.4.16-2.el7.x86_64 requires php(zend-abi) = 20100525-64
php-fpm-5.4.16-46.el7.x86_64 requires php-common(x86-64) = 5.4.16-46.el7


I am running PHP 7.2.13, so I think that is why? Any way to bypass?
 
Try to remove PHP 5.4 component with

# plesk installer --select-release-current --remove-component php5.4
 
Back
Top