LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-25-2005, 06:39 PM   #1
The_Messiah
Member
 
Registered: Jan 2004
Distribution: Slackware 10.1
Posts: 119

Rep: Reputation: 15
Apache 2.0 Help


Well, I've recently decide to completly leave windows behind, so now I'm doing things to help expand my knowledge with linux, amongst other things.

I've just downloaded apache 2.0 and did the following commands.

#./configre
#make
#make install

That got it ready to go (I think so anyway)

The apache docs say to alter the httpd.conf file but I don't know anything about it, so if someone could help me out with things like, what to change...things like that.

Another thing, I tried the next step in the apache docs which is to run this command

#./apachectl start

And got this error in return...

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


If anyone could help me out with what I'm doing wrong, things I should do, things I should know, any advise really, It'd be greatly appreciated.

By the way, if anyone is wondering I'm using slackware 9.1 and 2.4.22 kernel.

Regards,
The_Messiah
 
Old 03-25-2005, 08:17 PM   #2
The_Messiah
Member
 
Registered: Jan 2004
Distribution: Slackware 10.1
Posts: 119

Original Poster
Rep: Reputation: 15
~::BuMp::~

Someone...anyone...
 
Old 03-26-2005, 04:07 AM   #3
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Take a look at this guide.
 
Old 03-26-2005, 04:26 AM   #4
vous
Member
 
Registered: Mar 2003
Location: Macondo
Distribution: Mandrake 9.1, 10.1, SuSE 8.1 pro, 10.1, Red Hat 8.0/9.0
Posts: 380

Rep: Reputation: 30
You got that error because the socket is already in use. That means your apache tried to bind to port 80 and there was another application using it. Perhaps your distro came with a pre-installed http server...and that is more and more the norm so it doesn't surprise me that you get that error.

So far you are going in the right direction...trying to get started with Linux is perhaps the coolest IT experience that you'll ever have...even though it is full of these: ????

But the reward is well worth it!

Going back to your issue you can do 2 things:

1) Kill the process running on port 80 and start your web server again.

2) Make apache listen to another port, like 81 or 7777 or whatever you like....just remember any port under 1024 requires root privileges.

If you do start apache on port 81, remember that you will need to access it via your browser this way:

http://localhost:81

Cheers, and I hope this helped :-)
 
Old 03-26-2005, 04:37 AM   #5
MeasureYouGive
LQ Newbie
 
Registered: Feb 2004
Posts: 3

Rep: Reputation: 0
i have the same problem... apache isnt able to bind to port 80 and so it must be that another process is already listening there... how do I know what else could be doing that??! my distro must have come with a pre-installed http server right?

i am running ubuntu linux 4.10 (debian based) and have apache version 2.0.50 installed.

another note: if i access my webpage from within my internal private network, it works... but reports that it is apache 1.3 that is serving the file.

from the internet (external from my private network - which has appropriate port forwarding to allow HTTP requests) all I get is request timed out errors.

[EDIT]: aditional note: i tried to make apache2 listen to another port... changed port.conf to read "Listen 81" but still no response (request timed out) when accessing it from outside my private network.

I know that I have port forwarding activated and working because I can successfully ssh or ftp to my server...

Last edited by MeasureYouGive; 03-26-2005 at 04:41 AM.
 
  


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
Mail from Apache being rejected - Cannot route to sender apache@localhost.localdomain jimwillsher Linux - Networking 2 01-19-2006 12:41 AM
Apache 1.3.33 (debian built) and Apache SSL does not respond to the proper ports lqorg_user Linux - Networking 0 11-06-2005 04:11 PM
Strange apache trailing / problem - Slack-current, apache 1.3.33 vamp Linux - Networking 1 01-30-2005 07:28 PM
Apache Webserver 403 Forbidden Errors (User not in apache group?) Mankind75 Mandriva 4 07-08-2004 05:30 AM
apache benchmarks (apache v13 / apache v20) ; large differences between benchmarking markus1982 Linux - Software 0 02-08-2003 10:53 AM

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

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