LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 12-08-2009, 09:34 AM   #1
philwynk
Member
 
Registered: Sep 2007
Posts: 84

Rep: Reputation: 15
httpd not running properly on Fedora 12


Hi, all,

I recently upgraded from Fedora 9 to Fedora 12 (x86_64 version) and I'm having performance problems with httpd, which is the main purpose for this particular machine.

When I tried to start httpd the first time, I encountered problems with the /etc/httpd/conf/httpd.conf file: the modules mod_file_cache.so and mod_mem_cache.so appeared to be missing from the new OS, so I commented out those lines from my previous version of httpd.conf.

Now, when I check the status of httpd, I get the following:

[root@localhost]# service httpd status
httpd dead but subsys locked

I'm not sure what that means. Apache does seem to be running, and queries from outside to my web site are serviced normally most of the time. If I query active processes, I see 12 instances of httpd running:

[root@localhost]# ps -ef | grep httpd
root 1465 1 0 10:04 ? 00:00:00 /usr/sbin/httpd
apache 1509 1465 0 10:05 ? 00:00:00 /usr/sbin/httpd
apache 1511 1465 0 10:05 ? 00:00:01 /usr/sbin/httpd
apache 2325 1465 0 10:16 ? 00:00:00 /usr/sbin/httpd
...

Notice the first entry is assigned to root? That's odd... not sure I've ever seen that before.

At any rate, I've noticed some pretty odd behavior out of the web site: just this morning, the machine performance went to hell. I checked "top" -- it took about 90 seconds for the terminal window to respond, and then refresh time, which is supposed to be around 2 seconds, took more like 30 seconds to a minute. There was no single process eating the cpu, but the httpd processes were sitting at the top, along with a single mysqld process. This condition lasted at least 10 minutes, and then I manually rebooted the machine (e.g. hit the Big Red Switch.)

I suspect this is all related.

Any ideas where I should check?

Thanks for your help in advance.

Phil Weingart
 
Old 12-08-2009, 10:06 AM   #2
philwynk
Member
 
Registered: Sep 2007
Posts: 84

Original Poster
Rep: Reputation: 15
Oh, one more thing...

One more thing...

I'd like to reduce the number of processes httpd spawns. When people hit my server, it seems to generate a whole bunch of httpd processes, like 20 or 25. I think there's a parameter in httpd.conf that controls that, but I don't recall which. Can anybody suggest normal settings for httpd.conf that will tame this process-spawning? Thanks.

PW
 
Old 12-08-2009, 04:34 PM   #3
John VV
Guru
 
Registered: Aug 2005
Posts: 12,912

Rep: Reputation: 1715Reputation: 1715Reputation: 1715Reputation: 1715Reputation: 1715Reputation: 1715Reputation: 1715Reputation: 1715Reputation: 1715Reputation: 1715Reputation: 1715
did you do a FULL reinstall ?
Installing fedora 12 on a freshly formatted drive ?
if not and you managed to run "upgrade"
the upgrade did not work.
 
Old 12-08-2009, 09:39 PM   #4
philwynk
Member
 
Registered: Sep 2007
Posts: 84

Original Poster
Rep: Reputation: 15
Yes, I did a full reinstall, and formatted the drive.

However, I restored some elements from the previous install, and one of those was httpd.conf. Is there a reason why the previous httpd.conf configuration should not work on the new version?
 
  


Reply

Tags
fedora, httpd


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
httpd not running mbanwi Linux - Newbie 4 09-30-2009 03:39 AM
Several httpd are running vishnukumar Linux - Server 11 07-21-2009 07:16 AM
httpd not running ehsantux Linux - Server 7 09-06-2008 06:50 AM
Apache httpd not loading php pages properly. queezythegreat Linux - Networking 0 09-26-2004 03:50 PM
httpd daemon needs frequent restart to work properly sushil_deore Linux - Software 0 09-16-2004 07:35 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration