Apache fails to regenerate its configuration files due to incorrect vhosts_bootstrap.conf files

Created:

2016-11-16 12:52:24 UTC

Modified:

2017-08-16 15:48:10 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Apache fails to regenerate its configuration files due to incorrect vhosts_bootstrap.conf files

Applicable to:

  • Plesk 10.x for Linux
  • Plesk 11.x for Linux

Symptoms

Apache fails to regenerate its configuration files:

/usr/local/psa/admin/sbin/httpdmng --reconfigure-all
httpd2-prefork: Syntax error on line 180 of /etc/apache2/httpd.conf: Syntax error on line 102 of /etc/apache2/default-server.conf: Syntax error on line 5 of /etc/apache2/conf.d/zz010_psa_httpd.conf: Syntax error on line 1 of /usr/local/psa/admin/conf/vhosts_bootstrap.conf~: Could not open configuration file /somefile: No such file or directory

Cause

This may happen if some corrupted or outdated vhosts_bootstrap.conf* files are present in the /usr/local/psa/admin/conf directory.

Bootstrapper files are included in this mask:

tail -1 /etc/apache2/conf.d/zz010_psa_httpd.conf
Include '/usr/local/psa/admin/conf/vhosts_bootstrap.conf*'

Therefore, if you have some invalid bootstrapper configuration files, such as vhosts_bootstrap.conf.bak , they will also be included.

Resolution

Move all files matching the **/usr/local/psa/admin/conf/vhosts_bootstrap.conf pattern, except for the main */usr/local/psa/admin/conf/vhosts_bootstrap.conf file, to another location:

# find /usr/local/psa/admin/conf/ -maxdepth 1 -mindepth 1 -not -name vhosts_bootstrap.conf \\ -exec mv '{}' /tmp \\;
Have more questions? Submit a request
Please sign in to leave a comment.