problem starting apache

Issues related to applications and software problems and general support
Post Reply
Hatem Badran
Posts: 1
Joined: 2021/05/08 02:44:23

problem starting apache

Post by Hatem Badran » 2021/05/08 09:49:10

I have this problem
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.

scottro
Forum Moderator
Posts: 2556
Joined: 2007/09/03 21:18:09
Location: NYC
Contact:

Re: problem starting apache

Post by scottro » 2021/05/08 10:16:21

Were there any noticeable errors in either of those? Often it's a syntax error (more easily found in the systemctl status httpd.service than journalctl which is usually very long. Also, apachectl -t will test syntax before attempting to start.
New users should check the FAQ and Read Me First pages

User avatar
jlehtone
Posts: 4523
Joined: 2007/12/11 08:17:33
Location: Finland

Re: problem starting apache

Post by jlehtone » 2021/05/08 16:12:59

The default config of httpd does write to /var/log/httpd/ too.
There might be something that journal does not have.

With journalctl one can focus on messages from httpd.service with

Code: Select all

journalctl -xe -u httpd
The -x makes messages more verbose and the -e jumps to end (like 'G' in 'less' session).

Post Reply