LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-24-2007, 03:15 AM   #1
sixerjman
Member
 
Registered: Sep 2004
Distribution: Debian Testing / Unstable
Posts: 180
Blog Entries: 1

Rep: Reputation: 32
Can't connect to Apache2 server remotely


I just installed Linux (Debian Lenny) on a friend's machine and slapped up a web page which I can see locally (localhost) but can't establish a connection from my house to her's. I've opened up port 80 on her router and have a DNS record in dyndns.org but the request just times out.

After inserting 'Listen 192.168.2.45:80' in 'httpd.conf' the server won't start:

Code:
apache2ctl start
(98)Address already in use: make_sock: could not bind to address [::]:80
(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
The server has stopped and I don't see anything bound to port 80. What's the deal? Any help is appreciated, thanks in advance.

BTW, the next killer app for admins has got to be
a GUI configurator for Apache2, there must be 1000 directives, 100 config files and the doc is horrible. I just want to put up a stupid web page and look at it remotely (which I've done before on Windows and Linux, but it was awhile ago), not run secure database transactions.
 
Old 05-24-2007, 03:20 AM   #2
sixerjman
Member
 
Registered: Sep 2004
Distribution: Debian Testing / Unstable
Posts: 180

Original Poster
Blog Entries: 1

Rep: Reputation: 32
Solution was to put the Listen IP address in ports.conf

They should change the name of the file to listen.conf.
 
Old 05-24-2007, 03:30 AM   #3
sixerjman
Member
 
Registered: Sep 2004
Distribution: Debian Testing / Unstable
Posts: 180

Original Poster
Blog Entries: 1

Rep: Reputation: 32
Still can't connect - it's listening on 192.168.2.45:80

just like I told it to. I told the router to route external requests for port 80 to internal port 80 and IP address 192.168.2.45. Nothing doing.
 
Old 05-24-2007, 04:24 AM   #4
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Try

netstat -p --listen | grep http

as root to see what's listening on port 80
 
Old 05-24-2007, 04:25 AM   #5
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
ps - do you have a permission problem on the logs or is it the same issue?
 
Old 05-28-2007, 11:52 PM   #6
sixerjman
Member
 
Registered: Sep 2004
Distribution: Debian Testing / Unstable
Posts: 180

Original Poster
Blog Entries: 1

Rep: Reputation: 32
No problem with permissions on the logs.

I have a feeling the router is not letting the request through. I'll check the logs in tomorrow and try to see what's what.
 
Old 06-06-2007, 11:48 PM   #7
sixerjman
Member
 
Registered: Sep 2004
Distribution: Debian Testing / Unstable
Posts: 180

Original Poster
Blog Entries: 1

Rep: Reputation: 32
I can see it listening on port 192.168.2.45:80

I installed TCPDUMP on her machine and ran tcpdump 'tcp port 80'. Then I tried to hit the web server but no output from tcpdump. Then I tried netcat ('nc foo 80') but no connection and no output from tcpdump on her machine either (I was logged in via ssh). Neither 'firestarter' or the router showed any packets being dropped.

The odd thing I set up the route to the webserver vis-a-vis router and firewall just like I set up the ssh deal (i.e. open the port on the router, allow connection to the port from my IP), which works.
 
  


Reply



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
Can't connect to home FTP server remotely via firefox or IE Tylr Linux - Software 8 03-17-2006 02:32 AM
Connect to Samba Server remotely Echo Kilo Linux - Networking 1 01-12-2006 05:53 AM
vsftpd server: can connect locally, not remotely propz Linux - Networking 2 10-24-2005 12:59 AM
Can't connect to MySQL server remotely on RedHat 9 bper Red Hat 4 10-02-2003 10:56 AM
cannot connect remotely noizez Linux - Networking 2 04-03-2003 09:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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
Open Source Consulting | Domain Registration