apache problem
hi,
I'm trying to get apache working on my machine which has red hat 9 installed. It seems quite straight forward and i have managed to get it working. However, i have since been playing around with PHP and mysql and managed to screw things up. I can no longer view the default web page (index.html) from anywhere. My first thought was to restart apache but when i do it says httpd is not running. i can start apache with the confirmation message, but stopping apache gets the same message. Another thing, there seems to be 2 instances of the httpd.conf file. one located in /usr/local/apache/conf and one in /etc/httpd/conf and they both have different rootdocument settings. i have changed these and still no luck. Its getting to the point where i want to uninstall apache mysql and php and start fresh, but somehow i don't think its will be as easy as that. So before i go to such drastic measures does anyone have any ideas? thanks |
first of all, apache can check for syntax errors or problematic configurations in the config file. this is done with "apachectl configtest". maybe there's some configuration problem. if it gives any error you don't understand post it here...
it seems httpd is not started, as it can't find it when trying to stop it. this could also mean there's a problem with the config file. aren't there any errors on "apachectl start" ? about the multiple configuration files, mine is /etc/apache/httpd.conf, but that's on slackware... don't know how apache is configured on a redhat system... greetz, .-=~ iluvatar ~=-. |
i have used the configtest and there was no problem. also, when starting apache, it seems to run ok, no errors.
i ran the command rpm -qa and greped apache and there isn't anything returned. could i have possibly uninstalled apache somehow? how does that explain starting apache with no problems? thanks again |
hmmm if "apachectl start" says it's all ok, you should find the httpd processes with
ps aux | grep httpd if this doesn't list any httpd processes, something's wrong.... I don't know about rpm, I never use it.... but if there are no processes, you might want to re-install... greetz, .-=~ iluvatar ~=-. |
i did use ps -aux and there were a lot of http processes going on. this doesn't make sense to me becuase i don't see any other indication that it is working
|
i did use ps -aux and there were a lot of http processes going on. this doesn't make sense to me becuase i don't see any other indication that it is working
|
The same thing was happening with Apache on my box about a year ago. Couldn't figure it out for a while, but after adding additional RAM, no more shutdown.
Just another idea to throw your way. Let us know! :) Oops... I posted this response in the wrong Apache thread... :o |
well. i uninstalled apache, php and mysql. then reinstalled it all again. quite tedius...
but i still have the same problem! i can start apache with no problem and then to test it i would stop it but it will say httpd not running when clearly i have just started it! |
All times are GMT -5. The time now is 11:42 PM. |