PDA

View Full Version : Apache is not starting at boot


LeoLinux
8th August 2007, 19:08
Hi,

my apache2 is not starting automaticaly during the boot.

I have a debootsrabt Debian Etch - it might be possible that there are some basic packages missed.

when I boot up my system it says:

Starting Courier POP3-SSL server: pop3d-ssl.
* Not starting internet superserver: no services enabled.
Starting Postfix Mail Transport Agent: postfix.


but I can start my apache by hand with
/etc/init.d/apache2 start
and everything seems to work.

Server1:~# /etc/init.d/openbsd-inetd restart
Restarting internet superserver: inetd* Not starting internet superserver: no services enabled.
Server1:~# aptitude search openbsd-inetd
i openbsd-inetd - The OpenBSD Internet Superserver
Server1:~#


I can't figure out the problem by myself - I need some help.

Thank you!


Leander

geekman
9th August 2007, 06:10
Well first of all check all your rc.... directories in /etc/ to see if a symlink for the apache startup script was created. This is how the system boots things up when it starts.

find /etc/rc* | grep "apache"

Should work...maybe

find /etc | grep "rc" | grep "apache"


If it doesn't exist...then we must create a symlink so it will startup on one of the run levels, each rc directory is a different run level, for example:


ln -s /etc/init.d/apache2 /etc/rc2.d/


That could work, but based on the messages...is postfix actually starting too? Hope that helps.

Thanks.

falko
10th August 2007, 17:17
Please try
update-rc.d apache2 defaults
and then reboot. Does Apache2 start then?

LeoLinux
13th August 2007, 13:08
Hi,


this system was wired .... sometimes the Apache started .. sometimes it didn't ... so I just reinstalled the whole system and did your howto again ...

But thank you anyway.


Leander