LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 08-17-2006, 04:28 AM   #1
myfokkinnick@yahoo.i
Member
 
Registered: Oct 2005
Location: South Africa
Distribution: Ubuntu 6.06
Posts: 35

Rep: Reputation: 15
Cannot start Apache Webserver 2...


Hi there

I've been following the mailserver tutorial on HowToForge, http://www.howtoforge.com/perfect_setup_ubuntu_6.06_p6

When I try to start the Apache Webserver, I get the following:

root@ubuntu:/home/user/Desktop/install_ispconfig# /etc/init.d/apache2 restart
* Forcing reload of apache 2.0 web server... (98)Address already in use: make_sock: could not bind to address [::]:80
no listening sockets available, shutting down
Unable to open logs

Can anyone help me with this?

Regards
 
Old 08-17-2006, 05:30 AM   #2
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 77
Quote:
Address already in use: make_sock: could not bind to address [::]:80
The error suggests that something is already running on port 80. Can you confirm or deny this?
 
Old 08-17-2006, 06:21 AM   #3
myfokkinnick@yahoo.i
Member
 
Registered: Oct 2005
Location: South Africa
Distribution: Ubuntu 6.06
Posts: 35

Original Poster
Rep: Reputation: 15
Im still a noob.

How can i check if something is using that port?
 
Old 08-17-2006, 06:39 AM   #4
helptonewbie
Member
 
Registered: Aug 2006
Location: England Somewhere
Distribution: Mandriva, PCLinuxOS, Karoshi, Suse, Redhat, Ubuntu
Posts: 518

Rep: Reputation: 39
you could use a port scanner such as "nmap" which can be already installed on your distro but not totally sure as i dont use your distro type. if it has you can type this into the console and it would tell your what ports are listening and the service running on that port. eg

nmap -sT -O localhost

if that doesn't work then try a netstat, this specific command would give you specific info on port 80 as requested.

netstat -anp | grep 80

hope it helps
 
Old 08-17-2006, 07:08 AM   #5
myfokkinnick@yahoo.i
Member
 
Registered: Oct 2005
Location: South Africa
Distribution: Ubuntu 6.06
Posts: 35

Original Poster
Rep: Reputation: 15
Ok, I tried: nmap -v -P0 -p 80 localhost

It said that port 80 is closed. So, how do I open it, I guess that is the problem.
 
Old 08-17-2006, 08:29 AM   #6
mkirc
Member
 
Registered: Apr 2006
Location: Vienna-Austria
Distribution: Suse 10.x, Fedora, DSL
Posts: 63

Rep: Reputation: 15
Hello,
if nmap says the port is closed, it means that nothing is running (listening) there.

Try the following: Change the listening port in the Apache Config (httpd.conf) to another port (i.e 8088) and try to restart it.
If this works, you have a conflict on port 80.
If this doesnt help, its something else.

Hope that helps,
regards, michael
 
Old 08-17-2006, 08:51 AM   #7
helptonewbie
Member
 
Registered: Aug 2006
Location: England Somewhere
Distribution: Mandriva, PCLinuxOS, Karoshi, Suse, Redhat, Ubuntu
Posts: 518

Rep: Reputation: 39
Wink

yep he/she is totally rite took the words outta my mouth
 
Old 08-18-2006, 03:37 AM   #8
myfokkinnick@yahoo.i
Member
 
Registered: Oct 2005
Location: South Africa
Distribution: Ubuntu 6.06
Posts: 35

Original Poster
Rep: Reputation: 15
Thanks for the help. I did what you suggested and the server started.

You say there could be a conflict on port 80, how can I resolve this?
 
Old 08-18-2006, 04:06 AM   #9
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 77
Quote:
You say there could be a conflict on port 80, how can I resolve this?
Try:
netstat -anp | grep 80

as helptonewbie suggested. Should tell you the pid number and process name of whatever is running on port 80.
 
Old 08-19-2006, 09:31 AM   #10
mkirc
Member
 
Registered: Apr 2006
Location: Vienna-Austria
Distribution: Suse 10.x, Fedora, DSL
Posts: 63

Rep: Reputation: 15
Good that it worked out !
But I assume you want your webserver sunning on port 80 ?

Try the following:
nmap A T4 F localhost

This should tell you which program runs on which port.

Nmap is great, but can only make a qualified guess which program runs behind a port, but very often its right !!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache webserver Help.. co_macho Mandriva 5 02-26-2006 11:22 PM
Apache Webserver 403 Forbidden Errors (User not in apache group?) Mankind75 Mandriva 4 07-08-2004 06:30 AM
apache webserver nooodles Linux - Networking 8 06-30-2004 02:04 AM
Should I start over? Webserver, Apache Questions ?? sillyputty Linux - General 5 11-26-2002 04:22 PM
unable to start the webserver veena Slackware 2 11-16-2002 05:47 AM


All times are GMT -5. The time now is 09:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration