You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by yongjian xu <i3...@hotmail.com> on 2002/03/08 05:17:55 UTC

config/10077: httpd server never starts automatically as it was before!

>Number:         10077
>Category:       config
>Synopsis:       httpd server never starts automatically as it was before!
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Thu Mar 07 20:20:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     i3dmaster@hotmail.com
>Release:        1.3.12
>Organization:
apache
>Environment:
System: Linux turk-xu 2.2.16 #1 SMP Wed Nov 8 10:57:03 GMT 2000 s390 unknown.
Server version: Apache/1.3.12 (Unix)  (SuSE/Linux) 
Server built:   Nov  3 2000 03:26:07
SuSE Linux 7.0 (kernel 2.2.16)
>Description:
2 weeks ago,the Apache http still worked ok. But in the last week, the system was crashed with unknown reason and rebooted. However, httpd server has not been started automatically again since then. So I added the command '/usr/sbin/httpd -f /etc/httpd/httpd.conf -D MODULES -D PERL -D DAV -D PHP' into 'etc/inittab' file and rebooted the system again. But the server still could not work properly. Later, I found it was not the way to start the httpd server at boot time, so I commented that command and typed '/etc/rc.d/apache start' to start it manually. But it showed this:

turk-xu:/etc/httpd # /etc/rc.d/apache start 
Starting service httpd/etc/rc.d/apache: line 138:  2364 Segmentation fault      /usr/sbin/httpd -t -f /etc/httpd/httpd.conf $MODULES >/dev/null 2>&1
: syntax error in httpd.conf                                          failed

Then I did this:

turk-xu:/etc/httpd # /usr/sbin/httpd -t
Syntax OK

It really confused me. I did the check and it gave me no error but when I wanted to start the server, it showed up the syntex error. Why?
I have never maken any changes on 'etc/rc.d/apache' and '/etc/httpd/httpd.conf'files before. If I can not start it like this way how to start the http server automatically with standalone servertype.
>How-To-Repeat:
Give the reason why this could happen and the way how to fix it or
give me a another way to start the httpd server automatically.
>Fix:
Sorry, I have no idea.
>Release-Note:
>Audit-Trail:
>Unformatted:
 [In order for any reply to be added to the PR database, you need]
 [to include <ap...@Apache.Org> in the Cc line and make sure the]
 [subject line starts with the report component and number, with ]
 [or without any 'Re:' prefixes (such as "general/1098:" or      ]
 ["Re: general/1098:").  If the subject doesn't match this       ]
 [pattern, your message will be misfiled and ignored.  The       ]
 ["apbugs" address is not added to the Cc line of messages from  ]
 [the database automatically because of the potential for mail   ]
 [loops.  If you do not include this Cc, your reply may be ig-   ]
 [nored unless you are responding to an explicit request from a  ]
 [developer.  Reply only with text; DO NOT SEND ATTACHMENTS!     ]