[solved][apache2]: re-installation

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
cheikhbouchihda
Forum Commoner
Posts: 51
Joined: Thu Mar 02, 2006 2:08 pm
Location: France.

[solved][apache2]: re-installation

Post 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.
Last edited by cheikhbouchihda on Wed Oct 04, 2006 11:04 am, edited 2 times in total.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post 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.
cheikhbouchihda
Forum Commoner
Posts: 51
Joined: Thu Mar 02, 2006 2:08 pm
Location: France.

Post 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.
User avatar
ibbo
Forum Commoner
Posts: 51
Joined: Tue Sep 19, 2006 6:20 am

Post 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
cheikhbouchihda
Forum Commoner
Posts: 51
Joined: Thu Mar 02, 2006 2:08 pm
Location: France.

Post 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.
Post Reply