Apache fails to start with invalid DocumentRoot
This document (7014718) is provided subject to the disclaimer at the end of this document.
SUSE Linux Enterprise Server 10
"Starting httpd2 (prefork) Syntax error on line 6 of /etc/apache2/default-server.conf:
DocumentRoot must be a directory
The command line was:
/usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
The rpm -V apache2 validation output in the supportconfig web.txt shows:
S.5....T c /etc/apache2/default-server.conf
This indicates the size, md5sum and time stamp have all changed since /etc/apache2/default-server.conf was installed. The /etc/apache2/default-server.conf in the supportconfig web.txt file shows the following configuration:
1. Edit /etc/apache2/default-server.conf
2. Change DocumentRoot "/srv/www/htdoc" to DocumentRoot "/srv/www/htdocs"
3. Save and exit
4. Run /etc/init.d/apache2 restart to validate the fix worked and start the web server
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:7014718
- Creation Date: 08-Mar-2014
- Modified Date:23-Feb-2021
- SUSE Linux Enterprise Server
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com