LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-28-2010, 06:22 PM   #1
gvaught
Member
 
Registered: Sep 2003
Location: MidWest
Distribution: Debian GNU/Linux 8 (jessie)
Posts: 199

Rep: Reputation: 30
Question Newbie (to Apache) having configuration issues


I have the following in my httpd.conf file
Code:
#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses.
#
#Listen 12.34.56.78:80
Listen 80
And when I try to start the server, I get the following
Code:
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
I did have an Apache web server up and running about 6 or 7 years ago - but seem to have lost everything I learned then. Anybody?

 
Old 11-28-2010, 06:42 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Something is already listening on port 80 ("Address already in use"). Stop it.

Is it Apache? Try stopping it, then starting it. Is it something else? Do you have another Web server installed? Do you have no idea what it is? Run as root "lsof -i TCP:80". Then stop/disable that process and start your new Apache.
 
Old 11-28-2010, 10:16 PM   #3
gvaught
Member
 
Registered: Sep 2003
Location: MidWest
Distribution: Debian GNU/Linux 8 (jessie)
Posts: 199

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by AlucardZero View Post
Something is already listening on port 80 ("Address already in use"). Stop it.

Is it Apache? Try stopping it, then starting it. Is it something else? Do you have another Web server installed? Do you have no idea what it is? Run as root "lsof -i TCP:80". Then stop/disable that process and start your new Apache.
In answer to your questions:
(1) yes, it's Apache
(2) I haven't installed another web server
(3) I have no idea what else it would be
(4) according to the response from that command, Apache is running

I finally killed the process and went looking for the apachectl file that is supposed to control the server daemon - and I found apache2ctl in addition. So, now I'm really confused. I guess I've got it installed twice, maybe two different versions, and they're fighting over control? So, I guess I'll remove the build/install that I did this afternoon and see what that does for me.

Suggestions?
 
Old 11-29-2010, 12:00 AM   #4
gvaught
Member
 
Registered: Sep 2003
Location: MidWest
Distribution: Debian GNU/Linux 8 (jessie)
Posts: 199

Original Poster
Rep: Reputation: 30
Okay, I removed the manually installed files and it appears that I've got a version of Apache running on my server, already. The httpd.conf file was empty, so I copied the one from the manual install. It looks like it's all working fine - it's just not the latest.

Now, my next issue is somewhat confusing, as well - but that's another thread. I believe that would be appropriate.
 
Old 11-29-2010, 08:26 AM   #5
gvaught
Member
 
Registered: Sep 2003
Location: MidWest
Distribution: Debian GNU/Linux 8 (jessie)
Posts: 199

Original Poster
Rep: Reputation: 30
Great. Now I'm back where I was last night. Not being able to start the server - and it's the one installed by the package manager!

lsof -i TCP:80 gives me nothing. The only thing on that port was my Firefox instance - nothing to stop.

INSTALL_PATH/apache2/apache2ctl -k start is giving the (98) error again.

Does anyone have more suggestions?

Thanks.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Migrating Apache 1.3 configuration files to Apache 2 kaplan71 Linux - Software 0 03-28-2007 12:05 PM
Configuration issues JonathanWexler Linux - Kernel 3 01-01-2007 02:54 PM
Newbie Configuration of Apache Server tspeicher Linux - Newbie 26 05-06-2005 01:41 AM
Apache vhost issues (client denied by server configuration) bpk Linux - Software 8 02-16-2005 08:02 PM
Apache 2 configuration issues sitemaster Linux - Newbie 1 06-23-2003 10:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:22 PM.

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