LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   httpd won't start (https://www.linuxquestions.org/questions/linux-newbie-8/httpd-won%27t-start-627480/)

charlie2450 03-12-2008 07:12 AM

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

smehra24 03-12-2008 07:15 AM

Quote:

Originally Posted by charlie2450 (Post 3086141)
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

jay73 03-12-2008 07:15 AM

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.

acid_kewpie 03-12-2008 07:20 AM

$1000 says apache IS already running.

charlie2450 03-12-2008 07:34 AM

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

charlie2450 03-12-2008 07:35 AM

Chris

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

Jack

felixc 03-12-2008 07:46 AM

Code:

ps aux | grep httpd

acid_kewpie 03-12-2008 07:47 AM

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.

hua 03-12-2008 07:59 AM

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.

acid_kewpie 03-12-2008 08:01 AM

Quote:

Originally Posted by hua (Post 3086205)
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

charlie2450 03-12-2008 08:24 AM

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

acid_kewpie 03-12-2008 08:32 AM

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.

charlie2450 03-12-2008 08:40 AM

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

acid_kewpie 03-12-2008 08:46 AM

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.

charlie2450 03-12-2008 09:02 AM

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]


All times are GMT -5. The time now is 05:59 AM.