Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
08-17-2006, 03:28 AM
|
#1
|
|
Member
Registered: Oct 2005
Location: South Africa
Distribution: Ubuntu 6.06
Posts: 35
Rep:
|
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
|
|
|
|
08-17-2006, 04:30 AM
|
#2
|
|
Senior Member
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86; Gentoo PPC; Gentoo Sparc64; FreeBSD; OS X; Solaris
Posts: 3,731
Rep:
|
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?
|
|
|
|
08-17-2006, 05:21 AM
|
#3
|
|
Member
Registered: Oct 2005
Location: South Africa
Distribution: Ubuntu 6.06
Posts: 35
Original Poster
Rep:
|
Im still a noob.
How can i check if something is using that port?
|
|
|
|
08-17-2006, 05:39 AM
|
#4
|
|
Member
Registered: Aug 2006
Location: England Somewhere
Distribution: Mandriva, PCLinuxOS, Karoshi, Suse, Redhat, Ubuntu
Posts: 517
Rep:
|
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
|
|
|
|
08-17-2006, 06:08 AM
|
#5
|
|
Member
Registered: Oct 2005
Location: South Africa
Distribution: Ubuntu 6.06
Posts: 35
Original Poster
Rep:
|
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.
|
|
|
|
08-17-2006, 07:29 AM
|
#6
|
|
Member
Registered: Apr 2006
Location: Vienna-Austria
Distribution: Suse 10.x, Fedora, DSL
Posts: 63
Rep:
|
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
|
|
|
|
08-17-2006, 07:51 AM
|
#7
|
|
Member
Registered: Aug 2006
Location: England Somewhere
Distribution: Mandriva, PCLinuxOS, Karoshi, Suse, Redhat, Ubuntu
Posts: 517
Rep:
|
yep he/she is totally rite  took the words outta my mouth
|
|
|
|
08-18-2006, 02:37 AM
|
#8
|
|
Member
Registered: Oct 2005
Location: South Africa
Distribution: Ubuntu 6.06
Posts: 35
Original Poster
Rep:
|
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?
|
|
|
|
08-18-2006, 03:06 AM
|
#9
|
|
Senior Member
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86; Gentoo PPC; Gentoo Sparc64; FreeBSD; OS X; Solaris
Posts: 3,731
Rep:
|
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.
|
|
|
|
08-19-2006, 08:31 AM
|
#10
|
|
Member
Registered: Apr 2006
Location: Vienna-Austria
Distribution: Suse 10.x, Fedora, DSL
Posts: 63
Rep:
|
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 !!
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 08:45 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|