LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 07-24-2005, 01:51 PM   #1
gravesb
Member
 
Registered: May 2005
Distribution: Suse 9.3, Gentoo
Posts: 87

Rep: Reputation: 15
apache issues


I am trying to set up apache, and everytime that I run it, I get

linux:/usr/www/APACHE3/site.toddle # httpd -d /usr/www/APACHE3/site.toddle
no listening sockets available, shutting down
Unable to open logs

Does anyone know what this means? Thanks
 
Old 07-24-2005, 02:11 PM   #2
tomdkat
Member
 
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595

Rep: Reputation: 30
There must be something already running that is listening on the ports Apache wants. Look in httpd.conf and see which port(s) you have Apache configured to listen on and run "netstat -a | more" and see if those ports are already in use.

WIth regard to the log files, check httpd.conf to see where you have Apache logging and make sure the permissions on the logging directory permit writing by the userid Apache is setup to run under, which is also in httpd.conf.

Peace...
 
Old 07-24-2005, 02:54 PM   #3
gravesb
Member
 
Registered: May 2005
Distribution: Suse 9.3, Gentoo
Posts: 87

Original Poster
Rep: Reputation: 15
When you type that command, how do you tell what port something is listening on? I want to use port 80, but I don't see that number on the output.
 
Old 07-24-2005, 03:02 PM   #4
tomdkat
Member
 
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595

Rep: Reputation: 30
The output will look like this:

Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 *:6000 *:* LISTEN

but formatted well. See the "*:6000"? That is in the "local address" column. The number AFTER the colon is the port some application is listening on. So, in your output look for ":80" or ":http" or whatever port you have listed in httpd.conf. If it's the default of "8080", look for a ":8080" in the netstat output.

Here is a thread I found on the Apache mailing list that might also be of help:

http://mail-archives.apache.org/mod_...EPTUNE_MAIL%3e

Google helped me find that but a more thorough search of the Apache mailing list archives and Apache doc might provide better info for you.

Peace....
 
Old 07-24-2005, 03:29 PM   #5
gravesb
Member
 
Registered: May 2005
Distribution: Suse 9.3, Gentoo
Posts: 87

Original Poster
Rep: Reputation: 15
I think that I found the problem This is a line on my netstat output.

tcp 0 0 *:www-http *:* LISTEN

How do I close that service? I don't see a PID. Thanks again
 
Old 07-25-2005, 01:14 AM   #6
tomdkat
Member
 
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595

Rep: Reputation: 30
Ok, that means something else is running that is binding to the same port you want Apache to bind to. Use "ps ax | more" to see what is running that might look like a candidate.

Someone else might have a better suggestion for identifying which daemon or process might be grabbing that port. Also, see if you have "inetd" or "xinetd" running. That's the "Internet Super Server" and might have grabbed port 80 to fire up a some app "on demand".

Peace...
 
Old 08-08-2005, 03:07 AM   #7
gravesb
Member
 
Registered: May 2005
Distribution: Suse 9.3, Gentoo
Posts: 87

Original Poster
Rep: Reputation: 15
Thanks all. I had to add
Listen 80
to my config file. I think this is only required in v.2 of Apache.
 
  


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 issues neeths *BSD 1 02-17-2005 12:55 AM
Apache 2.0.48 issues Malibyte Linux - Software 8 03-10-2004 04:54 PM
Madnrake 9.2 apache issues Saleen Linux - Newbie 0 12-01-2003 01:36 PM
Apache 2.0.47 and Mandrake issues optikool Linux - Software 1 10-07-2003 12:17 AM
Apache Speed Issues contiga Linux - Software 13 07-19-2002 05:21 PM

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

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