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 |
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-22-2004, 04:36 PM
|
#1
|
LQ Newbie
Registered: Mar 2003
Posts: 26
Rep:
|
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
|
|
|
10-22-2004, 04:57 PM
|
#2
|
Member
Registered: Aug 2004
Location: New York
Distribution: --------- Gentoo-2004.2 [2.6.8] Redhat-9 [2.6.6]
Posts: 545
Rep:
|
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 05:05 PM.
|
|
|
10-22-2004, 06:45 PM
|
#3
|
Member
Registered: Nov 2003
Location: Belgium
Distribution: Slackware
Posts: 184
Rep:
|
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
|
|
|
10-22-2004, 06:48 PM
|
#4
|
Member
Registered: Jul 2003
Location: Olympia WA
Distribution: Gentoo Kernel 2.6.8-gentoo-r3; AMD Athlon XP 2200+
Posts: 63
Rep:
|
using ipv6? how's that work for ya?
|
|
|
10-22-2004, 07:03 PM
|
#5
|
Member
Registered: Nov 2003
Location: Belgium
Distribution: Slackware
Posts: 184
Rep:
|
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
|
|
|
10-22-2004, 08:21 PM
|
#6
|
LQ Newbie
Registered: Mar 2003
Posts: 26
Original Poster
Rep:
|
Nothing shows anything listening to port 80. Using ps -aux dosn't show httpd running.
|
|
|
10-22-2004, 09:09 PM
|
#7
|
Member
Registered: Aug 2004
Location: New York
Distribution: --------- Gentoo-2004.2 [2.6.8] Redhat-9 [2.6.6]
Posts: 545
Rep:
|
check ur httpd.conf to see what ip-add it is actually trying to bind to...
|
|
|
10-23-2004, 10:21 AM
|
#8
|
LQ Newbie
Registered: Mar 2003
Posts: 26
Original Poster
Rep:
|
I got it. For some reason I put 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 10:28 AM.
|
|
|
10-28-2004, 03:36 PM
|
#9
|
Member
Registered: Jul 2003
Location: Olympia WA
Distribution: Gentoo Kernel 2.6.8-gentoo-r3; AMD Athlon XP 2200+
Posts: 63
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 12:41 PM.
|
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
|
|