Page 1 of 1

[solved][apache2]: re-installation

Posted: Mon Oct 02, 2006 4:29 am
by cheikhbouchihda
Hello,
I had installed first, Ubuntu 6.06 LTS (and others packages) by using 3 DVDs found in a magazine: I had installed apache2, php5, mysql-server, java without problem.
After a problem, I was obliged to formate all and re-install the OS.I have succesed to re-install it, but the problem is that I can not re-install apache2(by using both, synaptic an command line, and using those DVDs of course, becouse I've not the net).
My question is : what kind of configuration must I do to re-install apache2(so I can developp under php)?
Thanks in advence for the help.

Posted: Mon Oct 02, 2006 6:21 am
by volka
I'm unfamiliar with Ubuntu. So what did you try and what was the result? If there were any warning/error messages please post them.

Posted: Tue Oct 03, 2006 3:59 am
by cheikhbouchihda
Hello,
In fact, apache2 is well installed(I've verified it), but the problem is when I do:

Code: Select all

$sudo /etc/init.d/apache2 reload
I get the following message:

*Reloading apache2.0 configuration....
apache2 : Could not determine the server's fully qualified domaine name, using 127.0.1.1 for ServerName
httpd not running, trying to start
( 98 )Address already in use : make_sock : could not bind to adresse [::]:80
no listening sockets available, shutting down
Unable to open logs [fail]


What must I do in this case, to start apache2?
Thanks in advance for the help.

Posted: Tue Oct 03, 2006 4:34 am
by ibbo
Address already in use : make_sock : could not bind to adresse [::]:80

Looks like you already have a server running. Open your browser and point it to localhost see if some web page comes up.

Or try running nmap -v localhost and see if port 80 is in use. You can also edit your httpd.conf and change the default port to say 8080 and try starting it again and see if that works.

Ibbo

Posted: Wed Oct 04, 2006 11:01 am
by cheikhbouchihda
Yes, apache/1.3.34 was running so I've desinstalled it and rm all directories and files concerning apache/1.3.34 and then added the ligne:
SeverName localhot
to the file:

Code: Select all

/etc/apache2/apache2.conf
Then it(apache2) works now.
Thanks.