Apache failed to start with the “could not open document config file” error in plesk

Apache failed to start with the error:

# /etc/init.d/httpd start
Starting httpd: httpd: could not open document config file /var/www/vhosts/DOMAIN/conf/httpd.include

The error above means that httpd.include file is missing for the DOMAIN.
Also, such error can refer to some another Apache configuration file that is included into Apache configuration with “Include” directive but actually missing.

In general, the missing file should be created or ‘Include’ directive that refers to this file should be deleted from Apache configuration.

Regarding ‘httpd.include’ in the initial error, this file is created by Plesk during domain creation and can be recreated with the following command:
/usr/local/psa/admin/sbin/websrvmng –reconfigure-vhost –vhost-name=DOMAIN

Apache configuration files for all domains can be rebuilt with:
/usr/local/psa/admin/sbin/websrvmng -a -v


Leave a Reply

Your email address will not be published. Required fields are marked *