Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: Error from Apache on Plesk server saying "Could not open document config file"  (Read 2501 times)

0 Members and 1 Guest are viewing this topic.

Haripriya H

  • Guest
Attempting to start/restart apache on a Plesk server fails due to "could not open document config file" error.
This is caused when the httpd.include file is missing for one or more domains.

==> [~]/etc/init.d/httpd start
Starting httpd: httpd: could not open document config file /var/www/vhosts/domain.com/conf/httpd.include

Solution:

To resolve this issue you will need to recreate the httpd.include file for the effected domains. You can do this with the following command:

/usr/local/psa/admin/sbin/websrvmng –reconfigure-vhost –vhost-name=domain.com

You will need to change the domain.com to the domain name which was listed in the error output. For example if the error you received was:

Starting httpd: httpd: could not open document config file /var/www/vhosts/softlayer.com/conf/httpd.include

You would run the following command to recreate the http.include file:

/usr/local/psa/admin/sbin/websrvmng –reconfigure-vhost –vhost-name=softlayer.com

That's all  :)