Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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...
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?
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...
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...
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!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.