LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Apache stopped working (https://www.linuxquestions.org/questions/slackware-14/apache-stopped-working-492431/)

badhat70 10-14-2006 05:08 PM

Apache stopped working
 
Here is what I am using:

Slack 10
Apache 1.3.*

My webserver has been up and running for quite a while.. 6 months or more. All of a sudden yesterday my sites didn't work and I logged in and apache stopped running. When I try to restart apache it says that it started ok, no errors in the logs, but it definitely didn't start. I haven't made any changes to the configs or done any updates lately. Has anyone ran into something like this and have any idea where I should start looking or what I might do to get it running again?

trickykid 10-14-2006 06:41 PM

See any httpd processes in a ps -fax output?

Try doing a:

/etc/rc.d/rc.httpd stop

Make sure no httpd processes are running. If they are, kill them. Then do a:

/usr/sbin/apachectl configtest

Make sure it comes back with a Syntax OK. If it does, then restart apache with:

/etc/rc.d/rc.httpd start

badhat70 10-14-2006 08:02 PM

I have done all of that. I even checked the logs. The config file is fine, it says it started when I do apachectl start, it just doesn't actually start it just says it did.

en3r0 02-08-2007 04:55 PM

I am having the same exact problem. This came from no where, no config files were edited at all. Using slack 10 as well.

This is really inconvenient, any suggestions?


God bless,
-en3r0

en3r0 02-08-2007 05:10 PM

Update*

It started working again, but all I did was start it like I had tried a million other times.

badhat70 02-09-2007 12:38 AM

I never did get it working. I never had this problem with other distro's. I know that sounds weird but it has to be related somehow because I have been using apache for years but on Gentoo.

RienParhan 02-16-2007 10:06 AM

I have exactly the same problem, I can't find any errors in my logfiles. It just won't start anymore whatever I try.:scratch:

duryodhan 02-16-2007 11:45 AM

Why don't you all try using XAMPP?? I find it really simple to use... www.apachefriends.org

badhat70 02-16-2007 11:06 PM

duryodhan: crack kills. And everyone would benefit if things would stay on topic here.

H_TeXMeX_H 02-17-2007 12:41 AM

Have you stayed current with all the security updates ?
http://www.slackware.com/security/

duryodhan 02-17-2007 03:19 AM

Quote:

duryodhan: crack kills. And everyone would benefit if things would stay on topic here.
hmm ... en3r0 had said that he had gotten it working. I was just telling him that ,next time, he could try using XAMPP.

From the site :
Quote:

Many people know from their own experience that it's not easy to install an Apache web server and it gets harder if you want to add MySQL, PHP and Perl. XAMPP is an easy to install Apache distribution containing MySQL, PHP and Perl. XAMPP is really very easy to install and to use - just download, extract and start.

I think this is certainly not OT. This is just an example of another way to get Apache working. Anyways Slackware doesn't come with the latest Apache... it would really help you if you get XAMP, and hell getting MySQL PHP and apache working together is HARD on Slackware.

So I very respectfully state : WTF?

badhat70 02-17-2007 11:28 PM

I suppose it could be viewed that way but I personally wouldn't use xampp. I already resolved my problem by going back with Gentoo. I just hoped in the past that I would get some true feedback and useful help with my problems with Slack since I was actually giving it a chance. I think that if Slackware maybe had its own forums then maybe.. just maybe there would be better overall support. Looking back I just picked the wrong place to seek support. I will stay away from here now. ;)

H_TeXMeX_H 02-18-2007 12:59 AM

whatever, man

Tomtherab 02-19-2007 03:47 AM

To anyone else having the same problem, make sure there are no stale lock and pid files preventing apache from running.

Take a peek in /var/{lock,run} for apache http entries.

RienParhan 02-19-2007 04:15 AM

Deleting the pid file did work for 10 seconds or so, after that httpd stopped again. I installed xampp as suggested and now everything works again.


All times are GMT -5. The time now is 12:07 AM.