LinuxQuestions.org
Help answer threads with 0 replies.
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 10-22-2004, 03:36 PM   #1
nrmx
LQ Newbie
 
Registered: Mar 2003
Posts: 26

Rep: Reputation: 15
Apache Error


Hi I am trying to start Apache and get the following error.

Quote:
(98)Address already in use: make_sock: could not bind to address [::]:80
no listening sockets available, shutting down
Unable to open logs
[FAILED]

Any Ideas. I can't find and processes running that are listening to port 80.

I have been out of this for a while. Just trying to sertup Apache after a long time. As I remeber this from before I used to delete a file and the problem used to correct itself.

Any help is appreciated.

Regards,
nrmx
 
Old 10-22-2004, 03:57 PM   #2
UsualTuxpect
Member
 
Registered: Aug 2004
Location: New York
Distribution: --------- Gentoo-2004.2 [2.6.8] Redhat-9 [2.6.6]
Posts: 545

Rep: Reputation: 31
check the output of -->#netstat -a

#ps -aux [to make sure httpd is not already running on ur comp when ur trying to start in from the command line....]

also check ur httpd.conf to see what ip-add it is actually trying to bind to...

Last edited by UsualTuxpect; 10-22-2004 at 04:05 PM.
 
Old 10-22-2004, 05:45 PM   #3
tlowk
Member
 
Registered: Nov 2003
Location: Belgium
Distribution: Slackware
Posts: 184

Rep: Reputation: 36
After netstat show that there something listening as mentioned above

In case you have lsof installed use 'lsof -i4' to see what the proces is that listens
on that port. (LiSt Open Files) You can find it for instance on freshmeat.net.

You need to be root to run this, since you are installing apache I don't expect
that this is a problem


Regards

Tlowk
 
Old 10-22-2004, 05:48 PM   #4
sketelsen
Member
 
Registered: Jul 2003
Location: Olympia WA
Distribution: Gentoo Kernel 2.6.8-gentoo-r3; AMD Athlon XP 2200+
Posts: 63

Rep: Reputation: 15
using ipv6? how's that work for ya?
 
Old 10-22-2004, 06:03 PM   #5
tlowk
Member
 
Registered: Nov 2003
Location: Belgium
Distribution: Slackware
Posts: 184

Rep: Reputation: 36
almost the same

lsof -i6

or lsof | less if you like to know who is using which file (in the unix meaning of the word)


Tlowk
 
Old 10-22-2004, 07:21 PM   #6
nrmx
LQ Newbie
 
Registered: Mar 2003
Posts: 26

Original Poster
Rep: Reputation: 15
Nothing shows anything listening to port 80. Using ps -aux dosn't show httpd running.
 
Old 10-22-2004, 08:09 PM   #7
UsualTuxpect
Member
 
Registered: Aug 2004
Location: New York
Distribution: --------- Gentoo-2004.2 [2.6.8] Redhat-9 [2.6.6]
Posts: 545

Rep: Reputation: 31
check ur httpd.conf to see what ip-add it is actually trying to bind to...
 
Old 10-23-2004, 09:21 AM   #8
nrmx
LQ Newbie
 
Registered: Mar 2003
Posts: 26

Original Poster
Rep: Reputation: 15
I got it. For some reason I put
Code:
Listen 80
and that caused the problem. Does anyone know why?

Also can someone help me out with CGI. How do I get a virtual host to execute a CGI sprit by default. For ex. what derective would let webmail.XXXXXXXX.com point directly to the CGI script for webmail?


Regards

Last edited by nrmx; 10-23-2004 at 09:28 AM.
 
Old 10-28-2004, 02:36 PM   #9
sketelsen
Member
 
Registered: Jul 2003
Location: Olympia WA
Distribution: Gentoo Kernel 2.6.8-gentoo-r3; AMD Athlon XP 2200+
Posts: 63

Rep: Reputation: 15
there's a bit in httpd.conf that lets the server know what filenames are index files; i.e. index.htm, index.html, default.php, etc. I assume that as long as your cgi symlink is pointed properly, and the virtualhost container is pointing to the right place, as long as you have index.cgi defined as one of your index files (and the script is actually called index.cgi) you shouldn't have any problems.
 
  


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
Apache Error (Internal Server Error) dwarf007 Linux - Software 1 07-17-2005 01:16 PM
Apache Error nickmoncrief Linux - Newbie 25 04-15-2005 05:16 PM
Apache error elderain Linux - Software 1 08-16-2004 09:27 AM
apache error iamthewind Linux - Networking 1 08-11-2004 12:56 AM
Apache error Phaethar Linux - Software 0 12-15-2003 02:36 PM

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

All times are GMT -5. The time now is 11:07 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