You are not logged in.

#1 2012-10-28 14:07:45

mathar
Member
Registered: 2012-10-28
Posts: 2

[solved] Apache won't start

Hi,
I installed Apache for the first time, but when I do:

systemctl start httpd.service

I get this error:

Job for httpd.service failed. See 'systemctl status httpd.service' and 'journalctl -n' for details.

when I do this:

journalctl -n

I get this:

Oct 28 15:02:31  systemd[1]: Starting Apache Web Server...
Oct 28 15:02:32  systemd[1]: PID file /run/httpd/httpd.pid not readable (yet?) after start.
Oct 28 15:02:32  systemd[1]: Failed to start Apache Web Server.
Oct 28 15:02:32  systemd[1]: Unit httpd.service entered failed state

I tried changing apache config files, but I get this error every time I try to start apache...
How can I fix this?

Last edited by mathar (2012-10-29 13:40:38)

Offline

#2 2012-10-28 21:05:38

gsgleason
Member
Registered: 2012-10-08
Posts: 59

Re: [solved] Apache won't start

I just tried installing apache and was able to start it fine. 

Does /run exist?

$ ls -ld /run
drwxr-xr-x 22 root root 720 Oct 28 15:01 /run

$ mount |grep /run
run on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)

Offline

#3 2012-10-29 13:39:24

mathar
Member
Registered: 2012-10-28
Posts: 2

Re: [solved] Apache won't start

My whole system went crazy for some reason, so I did fresh install and now it's working fine. /run did exist on that system, so I don't know where the problem was...
Anyway thanks for help:).

Offline

#4 2012-10-29 13:55:46

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,674

Re: [solved] Apache won't start

You could have just manually created /run/httpd/httpd.pid


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

Board footer

Powered by FluxBB