LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 07-22-2010, 05:47 AM   #1
jbcolmena
Member
 
Registered: Feb 2004
Location: Italy
Distribution: Ubuntu
Posts: 40

Rep: Reputation: 15
could not bind to address 0.0.0.0:80, driving me crazy!


Hi all.

I'm using xubuntu 9.10. NOT ubuntu server. I need to install a lamp server on my box. I cannot install a new OS like ubuntu server, have to use what I got.

when I run apache2, I get:
Quote:
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
I've changed the port that php listens too to 8080, 81, and I get the same message but with the new port number.

I've removed and installed apache three times, read all kind of threats on the web, but cannot find the solution! it's just driving crazy. Any ideas?
 
Old 07-22-2010, 06:06 AM   #2
jbcolmena
Member
 
Registered: Feb 2004
Location: Italy
Distribution: Ubuntu
Posts: 40

Original Poster
Rep: Reputation: 15
I changed the ports editing the /etc/apache2/ports.conf file, which is:
Quote:
# If you just change the port or add more ports here, you will likely also
# have to change the VirtualHost statement in
# /etc/apache2/sites-enabled/000-default
# This is also true if you have upgraded from before 2.2.9-3 (i.e. from
# Debian etch). See /usr/share/doc/apache2.2-common/NEWS.Debian.gz and
# README.Debian.gz

NameVirtualHost *:80
Listen 80

<IfModule mod_ssl.c>
# SSL name based virtual hosts are not yet supported, therefore no
# NameVirtualHost statement here
Listen 443
</IfModule>
netstat -A inet -lnp gives:
Quote:
Protocolo Recv-Q Send-Q Dirección Local Dirección Externa Estado PID/Program name
tcp 0 0 0.0.0.0:445 0.0.0.0:* ESCUCHAR -
tcp 0 0 0.0.0.0:1024 0.0.0.0:* ESCUCHAR -
tcp 0 0 0.0.0.0:135 0.0.0.0:* ESCUCHAR -
tcp 0 0 0.0.0.0:139 0.0.0.0:* ESCUCHAR -
tcp 0 0 0.0.0.0:80 0.0.0.0:* ESCUCHAR -
tcp 0 0 0.0.0.0:22 0.0.0.0:* ESCUCHAR -
tcp 0 0 127.0.0.1:631 0.0.0.0:* ESCUCHAR -
udp 0 0 0.0.0.0:68 0.0.0.0:* -
udp 0 0 0.0.0.0:35670 0.0.0.0:* -
udp 0 0 0.0.0.0:5353 0.0.0.0:* -
which yes, shows something listening to port 80, but what? BTW, "escuchar" is listening is spanish. Live in italy, box in spanish, in an english forum... confusing.
 
Old 07-22-2010, 06:22 AM   #3
sem007
Member
 
Registered: Nov 2006
Distribution: RHEL, CentOS, Debian Lenny, Ubuntu
Posts: 638

Rep: Reputation: 111Reputation: 111
Hi jbcolmena,

kindly paste output of below command

dpkg --list apache*

netstat -antlp | grep 80
 
Old 07-22-2010, 06:42 AM   #4
jbcolmena
Member
 
Registered: Feb 2004
Location: Italy
Distribution: Ubuntu
Posts: 40

Original Poster
Rep: Reputation: 15
Of course port 80 was busy... because apache was listening to it! apache has been working all the time...

read something the wrong way, don't know, but made a newbie mistake and wasted like 6 hours on a problem that didn't even exists.

Sorry to waste your time.
 
  


Reply

Tags
apache, port, ubuntu


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
Driving me crazy!!! fusion1275 Programming 3 10-15-2008 05:19 PM
X11 driving me crazy.... trawler Linux - Newbie 3 10-11-2005 05:40 PM
[ ] @ are driving me crazy FireInTheDark Linux - Software 1 11-28-2004 09:42 AM
Help this is driving me crazy!!!!!! Wolfy Linux - Hardware 1 07-07-2004 01:32 AM
ATi's driving me crazy... Hammett Linux - Software 0 04-21-2004 03:25 PM


All times are GMT -5. The time now is 03:03 AM.

Main Menu
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