LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 07-22-2004, 09:01 AM   #1
allan_y
Member
 
Registered: May 2004
Location: Canberra
Distribution: Redhat 9
Posts: 32

Rep: Reputation: 15
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
 
Old 07-22-2004, 09:50 AM   #2
iluvatar
Member
 
Registered: Jul 2003
Location: netherlands
Distribution: debian
Posts: 403

Rep: Reputation: 30
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 ~=-.
 
Old 07-22-2004, 09:56 AM   #3
allan_y
Member
 
Registered: May 2004
Location: Canberra
Distribution: Redhat 9
Posts: 32

Original Poster
Rep: Reputation: 15
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
 
Old 07-22-2004, 10:02 AM   #4
iluvatar
Member
 
Registered: Jul 2003
Location: netherlands
Distribution: debian
Posts: 403

Rep: Reputation: 30
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 ~=-.
 
Old 07-22-2004, 11:31 AM   #5
allan_y
Member
 
Registered: May 2004
Location: Canberra
Distribution: Redhat 9
Posts: 32

Original Poster
Rep: Reputation: 15
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
 
Old 07-22-2004, 11:51 AM   #6
allan_y
Member
 
Registered: May 2004
Location: Canberra
Distribution: Redhat 9
Posts: 32

Original Poster
Rep: Reputation: 15
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
 
Old 07-22-2004, 12:02 PM   #7
ozar
Member
 
Registered: May 2004
Location: USA
Distribution: Arch Linux
Posts: 415

Rep: Reputation: 85
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...

Last edited by ozar; 07-22-2004 at 12:11 PM.
 
Old 07-22-2004, 12:26 PM   #8
allan_y
Member
 
Registered: May 2004
Location: Canberra
Distribution: Redhat 9
Posts: 32

Original Poster
Rep: Reputation: 15
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!
 
  


Reply



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
Strange apache trailing / problem - Slack-current, apache 1.3.33 vamp Linux - Networking 1 01-30-2005 07:28 PM
problem with apache 1.3.27 czarherr Linux - Software 2 01-10-2004 11:38 AM
RH9: PHP session problem (or Apache problem) fengcn Red Hat 0 12-01-2003 06:32 PM
perl problem? apache problem? cgi problem? WorldBuilder Linux - Software 1 09-17-2003 07:45 PM
apache benchmarks (apache v13 / apache v20) ; large differences between benchmarking markus1982 Linux - Software 0 02-08-2003 10:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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
Open Source Consulting | Domain Registration