Content
Failed to start LSB: Apache2 web server.
Added by Nathan Petralia about 8 years ago
After rebooting the server, openproject failed to start.
This is the error…
Job for apache2.service failed. See ‘systemctl status apache2.service’ and ‘journalctl -xn’ for details.
root@svnserver:/var/log/apache2# systemctl status apache2.service
● apache2.service - LSB: Apache2 web server
Loaded: loaded (/etc/init.d/apache2)
Active: failed (Result: exit-code) since Mon 2016-09-05 11:26:10 HKT; 9s ago
Process: 4926 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS)
Process: 4478 ExecReload=/etc/init.d/apache2 reload (code=exited, status=1/FAILURE)
Process: 5128 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)
Sep 05 11:26:10 svnserver apache2[5128]: Starting web server: apache2 failed!
Sep 05 11:26:10 svnserver apache2[5128]: The apache2 configtest failed. … (warning).
Sep 05 11:26:10 svnserver apache2[5128]: Output of config test was:
Sep 05 11:26:10 svnserver apache2[5128]: apache2: Syntax error on line 219 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/sites-enabled/openproject.conf: No matches for the wildcard ‘*.conf’ in ‘/etc/openproject/addons/apache2/includes/server’, failing (use IncludeOptional if required)
Sep 05 11:26:10 svnserver apache2[5128]: Action ‘configtest’ failed.
Sep 05 11:26:10 svnserver apache2[5128]: The Apache error log may have more information.
Sep 05 11:26:10 svnserver systemd[1]: apache2.service: control process exited, code=exited status=1
Sep 05 11:26:10 svnserver systemd[1]: Failed to start LSB: Apache2 web server.
Sep 05 11:26:10 svnserver systemd[1]: Unit apache2.service entered failed state.
I have added IncludeOptional in the apache2.conf (was already there) and in openproject.conf (only had Include).
I don’t know what else to do.
Also both /var/log/apache2/access.log and /var/log/apache2/error.log are empty… is that even normal?
Replies (1)
Hi Nathan,
did you install via package install?
If so, did you choose to configure apache2, or did you skip it?
What does “ls /etc/openproject/addons/apache2/includes/server” show you? Is the directory empty?
If you issue an “curl 127.0.0.1:6000” (only if you used package install!!), what is the output?