LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 03-14-2005, 05:53 AM   #1
Serbulent
LQ Newbie
 
Registered: Feb 2005
Posts: 8

Rep: Reputation: 0
Apache can't restart


Hi

I m using fedora core 1 and apache 2.0.50. Sometimes apache stops. I find this in error_log

[Sun Mar 13 04:03:21 2005] [notice] SIGHUP received. Attempting to restart
Syntax error on line 157 of /etc/httpd/conf/httpd.conf:
Invalid command '<ifModule', perhaps mis-spelled or defined by a module not included in the server configuration


İf i write "apachectl start" from console it starts normally. And now i realize that when server is running if i write "apachectl restart" it stops but i don't start and gives no error message.

It is very strange i think. and the line 157 in httpd.conf is below;

<ifModule worker.c>
StartServers 2
MaxClients 150
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0
</ifModule>
 
Old 03-15-2005, 07:03 PM   #2
uberNUT69
Member
 
Registered: Jan 2005
Location: Tasmania
Distribution: Xen Debian Lenny/Sid
Posts: 578

Rep: Reputation: 30
does IfModule make any difference?
(capital I)

can you find a module called worker.so anywhere on your system?
 
Old 03-16-2005, 02:29 AM   #3
Serbulent
LQ Newbie
 
Registered: Feb 2005
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks for your help. the problem is syntax error. But it is very interesting that
apachcectl -t says "Syntax OK"
 
  


Reply


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
apache fails to restart nde Linux - Newbie 7 09-13-2005 04:26 PM
how do i apache restart? einstien Linux - General 3 03-30-2005 01:22 PM
using shell_exec to restart apache? fuelinjection Linux - General 1 07-08-2004 12:24 PM
Restart apache on crash brentos Linux - Software 8 06-07-2004 02:41 PM
How do I restart Apache? 360 Linux - Networking 2 08-25-2001 06:26 PM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 09:15 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