LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-12-2008, 07:12 AM   #1
charlie2450
LQ Newbie
 
Registered: Mar 2008
Posts: 12

Rep: Reputation: 0
httpd won't start


Please can anyone help. I have seen many questions on this subject, but I try there solutions, I fix my problems, my system crashes, I re-install, and I am back to the same problem, but forgetting how I fixed the solution the previous time. But everytime i fix the problem, it was fixed in a different way than the previous. That's why it's confusing Would be most gratefull if someone would kindly post me a very simple solution that I will keep handy this time.

The problem is that I cannot start httpd. it will not start. The message i get is;

Address already in use: make_sock: could not bind to address ....:80
no listening sockets available, shutting down
Unable to open logs



Thanks for help

Jack
 
Old 03-12-2008, 07:15 AM   #2
smehra24
Member
 
Registered: Jan 2008
Location: mumbai
Distribution: red hat
Posts: 31

Rep: Reputation: 15
Quote:
Originally Posted by charlie2450 View Post
Please can anyone help. I have seen many questions on this subject, but I try there solutions, I fix my problems, my system crashes, I re-install, and I am back to the same problem, but forgetting how I fixed the solution the previous time. But everytime i fix the problem, it was fixed in a different way than the previous. That's why it's confusing Would be most gratefull if someone would kindly post me a very simple solution that I will keep handy this time.

The problem is that I cannot start httpd. it will not start. The message i get is;

Address already in use: make_sock: could not bind to address ....:80
no listening sockets available, shutting down
Unable to open logs



Thanks for help

Jack
Code:
service httpd start
 
Old 03-12-2008, 07:15 AM   #3
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
Quote:
Address already in use:
A port can be listened on by only one server. If 80 is already reserved, then obviously it's not going to work not matter what you do. Open your httpd.conf and try setting a different port. Or look in /etc/services to find out what is running on port 80.
 
Old 03-12-2008, 07:20 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
$1000 says apache IS already running.
 
Old 03-12-2008, 07:34 AM   #5
charlie2450
LQ Newbie
 
Registered: Mar 2008
Posts: 12

Original Poster
Rep: Reputation: 0
Have tried setting a different port in httpd.conf, but no luck. My SElinux comes up telling me;

SELinux is preventing the httpd from binding to port 83

83 is my new port I set in httpd.conf.

I placed SELinux in permmisive mode, but results are same.

Thnx

Jack
 
Old 03-12-2008, 07:35 AM   #6
charlie2450
LQ Newbie
 
Registered: Mar 2008
Posts: 12

Original Poster
Rep: Reputation: 0
Chris

How would I know if Apache is already running. How can I shut it down if it is

Jack
 
Old 03-12-2008, 07:46 AM   #7
felixc
Member
 
Registered: Jul 2005
Distribution: Debian
Posts: 94

Rep: Reputation: Disabled
Code:
ps aux | grep httpd
 
Old 03-12-2008, 07:47 AM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
well you want to start it. why would you want to shut it down?

"pidof httpd" will show the pid's of any apache processes.
 
Old 03-12-2008, 07:59 AM   #9
hua
Member
 
Registered: Oct 2006
Location: Slovak Republic
Distribution: Slackware 14.0, 14.1, current
Posts: 417

Rep: Reputation: 52
What happens when you try:

/etc/init.d/apache2 restart (or try status instead restart - that will show the state of the httpd server)

If still the same, go to YAST > System > System Services and check out your services.
 
Old 03-12-2008, 08:01 AM   #10
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
Quote:
Originally Posted by hua View Post
What happens when you try:

/etc/init.d/apache2 restart (or try status instead restart - that will show the state of the httpd server)

If still the same, go to YAST > System > System Services and check out your services.
i always try to avoid those commands as i'm bound to pick the wrong service name... httpd, httpd2, apache, apache2.... i always get it wrong
 
Old 03-12-2008, 08:24 AM   #11
charlie2450
LQ Newbie
 
Registered: Mar 2008
Posts: 12

Original Poster
Rep: Reputation: 0
I thought shutting it down and restarting may work, but it did'nt.

Also tried;

/etc/init.d/apache2 restart

but it came back and said no such directory

Thanks for help guys, but still no luck. I am at a loss at what else to do. I am not re-installing. Did that yesterday and the day before

More input would be much appreciated

Jack
 
Old 03-12-2008, 08:32 AM   #12
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
haha, see exactly...

why on earth would you reinstall anythign ever? deserve all you get if you think that's *EVER* the solution imho...

anyway, have you just tried connecting to the web server? use it.

doesn't help that you've not even told us what distro you are using.
 
Old 03-12-2008, 08:40 AM   #13
charlie2450
LQ Newbie
 
Registered: Mar 2008
Posts: 12

Original Poster
Rep: Reputation: 0
Hey Chris

Go easy, I new to Linux, I only recently migrated from Windows.

Anyway I am using Fedora Core 8. If that's what you mean by distro

I only re-installed when there was no hope. IE, I could no longer boot up, because I probably deleted something I should have not

Regards

Jack
 
Old 03-12-2008, 08:46 AM   #14
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
ok, well have you tried using it? in the gnome menus on the desktop there is access to the system-config-services till, which will let you switch things like apache on and off on demand easily.
 
Old 03-12-2008, 09:02 AM   #15
charlie2450
LQ Newbie
 
Registered: Mar 2008
Posts: 12

Original Poster
Rep: Reputation: 0
tried that. Here's the error that comes back when I go through the services gui

httpd failed. The error was: Starting httpd: [Wed Mar 12 10:00:37 2008] [warn] module php5_module is already loaded, skipping
[FAILED]
 
  


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
httpd won't start jim.thornton Linux - Newbie 2 01-06-2008 02:57 PM
Failed to start apache :Starting httpd: Syntax error on line 1027 of /etc/httpd/conf/ payjoe Linux - Newbie 3 09-21-2007 07:24 AM
need help with httpd start MaX-PaYnE Linux - Newbie 6 11-29-2006 11:48 PM
cant start httpd mag_um Linux - Software 2 05-27-2005 08:20 AM
httpd will not start :: buddy Linux - General 9 12-31-2002 12:45 PM


All times are GMT -5. The time now is 03:59 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration