Linux-Based Community / Regional
1752720 Members
5607 Online
108789 Solutions
New Discussion юеВ

Apache startup failed (points!)

 
Christian Deutsch_1
Esteemed Contributor

Apache startup failed (points!)

Hi there,

Somewhat over a year ago I successfully configured apache httpd to work on a RHEL 5.3 system. Now I have Fedora 13 and startup of Apache httpd failed:

service httpd --full-restart
Stopping httpd: [FAILED]
Starting httpd: [FAILED]

I tried `chkconfig httpd on` and that returned no error message but still full-restart and also start failed.

Where to look?

If I posted in the wrong section please tell me where to post this question.

I already configured apache so hopefully configuration is correct.

Helpful answers will be rewarded generously with points!

Thanks, Christian
Yeshua loves you!
21 REPLIES 21
Alzhy
Honored Contributor

Re: Apache startup failed (points!)

go to /etc/httpd/logs

check error_log

post logs.
Hakuna Matata.
Christian Deutsch_1
Esteemed Contributor

Re: Apache startup failed (points!)

ll /etc/httpd/logs
lrwxrwxrwx. 1 root root 19 Oct 6 09:39 /etc/httpd/logs -> ../../var/log/httpd
[root@smarty httpd]# ls /etc/httpd/logs
[root@smarty httpd]# ll /var/log/httpd
total 0

now what?
Yeshua loves you!
Alzhy
Honored Contributor

Re: Apache startup failed (points!)

Are you using the default httpd.conf still? If not - can you re-instate the original httpd.conf and try a start?


Or if you can just whack your existing http installation and re-install from yum repository.

Hakuna Matata.
Steven Schweda
Honored Contributor

Re: Apache startup failed (points!)

> Somewhat over a year ago I successfully
> configured apache httpd to work on a RHEL
> 5.3 system. Now I have Fedora 13 and
> startup of Apache httpd failed:

Is this "Fedora 13" system the same one as
the "RHEL 5.3" system? So, did you replace
the OS, but _not_ re-install Apache? If so,
then this advice sounds good to me:

> Or if you can just whack your existing http
> installation and re-install from yum
> repository.

And probably any number of other optional
products, too. You might be able to save the
Apache configuration files from the old
installation, unless the new Apache version
differs too much from the old one.


> Helpful answers will be rewarded generously
> with points!

What's that worth in US$?
Christian Deutsch_1
Esteemed Contributor

Re: Apache startup failed (points!)

Uninstalled httpd, installed:

httpd-2.2.17-1.fc13.1.x86_64

ll /etc/httpd/conf/httpd.conf
-rw-r--r--. 1 root root 33738 Oct 27 14:26 /etc/httpd/conf/httpd.conf

service httpd start
Starting httpd: [FAILED]

ll /etc/httpd/logs
lrwxrwxrwx. 1 root root 19 Dec 6 16:20 /etc/httpd/logs -> ../../var/log/httpd
[root@smarty httpd]# ls /etc/httpd/logs
[root@smarty httpd]# ll /var/log/httpd
total 0

Thanks, Christian
Yeshua loves you!
Christian Deutsch_1
Esteemed Contributor

Re: Apache startup failed (points!)

Steve:

Same hardware and hostname but now ext4 filesystems with encryption, before I had ext3 without encryption. I did not adopt any httpd configuration from the previous installation.

Christian
Yeshua loves you!
Alzhy
Honored Contributor

Re: Apache startup failed (points!)

Encryption?

I think that may very well be where your issue is?

What ext4 filesystems did you enable encryption on? Did you incldue /var by any chace in your ext4 encryption? And does user apache have access to those encyrpted filesystems?
Hakuna Matata.
Christian Deutsch_1
Esteemed Contributor

Re: Apache startup failed (points!)

all filesystems should be "transparent" for encryption:

df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/luks-51cdeaa5-41c2-400f-aeae-b1b5323e6d7a
50G 8.3G 39G 18% /
tmpfs 6.0G 3.6M 6.0G 1% /dev/shm
/dev/sda1 485M 28M 432M 7% /boot
/dev/mapper/luks-f8ae7a61-a4ef-41aa-92a3-7c67a1fc5043
1001G 118G 833G 13% /home

1 filesystem and disk for /. /boot is also on that disk and part of /home. Only the rest of /home is on the second disk.

I cannot see an issue with file systems or encryption here.

Christian
Yeshua loves you!
Chhaya_Z
Valued Contributor

Re: Apache startup failed (points!)

Have you tried to check if the syntax of the httpd.conf is correct?
#/usr/sbin/httpd -t ==> should say syntax OK

or #/usr/sbin/apache-perl -T

or #apachectl configtest
Regards,
Chhaya

I am an HP employee.
Was this post useful? - You may click the KUDOS! star to say thank you.