Page 1 of 1

[Ubuntu 5.10 Breezy]: problem with the apache2 home page.

Posted: Fri May 26, 2006 11:26 am
by cheikhbouchihda
Hello,
I have installed the Ubuntu 5.10 "Breezy Badger", without problem and then, I installed the trio, apache2, php5 and mysql and it was, also, without problem.

I have done:

Code: Select all

#sudo /etc/init.d/apache2/ start
(to start apache2)

and then:

Code: Select all

#lynx http://localhost
I get the home page of apache2.

also, I obtain the phpinfo page by doing:

Code: Select all

#lynx http://localhost/test.php
//test.php
<?php
phpinfo
?>


I swiched off my computer, and.............when I have swiched on the computer(here begun the problem):

I do(starting apache2):

Code: Select all

#sudo /etc/init.d/apache2 start
no problem, the apache2 starts

But, when I do:(in the window of mozilla)

http://localhost

I get the following message(but not the apache2 home page as normal):

the message is:(after waiting for a long time)
The operation time out when attempting to contact localhost
My question is :
what is the "things" that don't allow the apache2 home page to start?
and, then, what must I do to have this page?
Thanks in advence for the help.

Posted: Fri May 26, 2006 2:55 pm
by Chris Corbyn
Try starting apache using the apachectl script instead and see if it works.

If you've tried starting apache already then first do this:

Code: Select all

rm -rf /var/run/apache2*
Then try:

Code: Select all

/usr/sbin/apache2ctl start &
The other thing that may cause it is if any of your network interfaces are not working it seems ubuntu won't start services that depend on them. Disable the interfaces first or start the servies manually.

Posted: Sat May 27, 2006 2:32 am
by cheikhbouchihda
Good morning,
d11wtq, first, thank you for the answer.

I have done:

Code: Select all

sudo rm -rf /var/run/apache2*
and:

Code: Select all

sudo /usr/sbin/apache2ctl start &
Then I get the message:
ubuntu:~$ (98)Address already in use: make_sock: could not bind to address [::]:80
no listening sockets available, shutting down
Unable to open logs
Then I strike enter, and I obtain the message:
[1]+ Exit 1 sudo /usr/sbin/apache2ctl start
I have verified, all my network interfaces are well working.

What I must do in this case?
Thanks ,once again

Posted: Sat May 27, 2006 3:48 am
by Chris Corbyn
Just kill the old processes and try again. You get that warning if apache is already running ;)