homepage Welcome to WebmasterWorld Guest from 54.204.77.26
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
Apache fails to start how to debug
sir wally lewis




msg:4344346
 5:09 am on Jul 27, 2011 (gmt 0)

I wrote a module in using "freepascal" now apache fails to start.
saying specified module cannot be found.
the module is in the correct place. \modules\..

I am using Apache 2.2.19 on windows XP.

How can I find out what is happening?

 

phranque




msg:4345611
 11:29 pm on Jul 29, 2011 (gmt 0)

have you specified a LoadModule Directive in the server config?
http://httpd.apache.org/docs/current/mod/mod_so.html#loadmodule

sir wally lewis




msg:4345996
 10:19 pm on Jul 31, 2011 (gmt 0)

Yes httpd.conf has my directive in it.

phranque




msg:4345998
 10:37 pm on Jul 31, 2011 (gmt 0)

have you checked the server error log for messages when you start the server?

sir wally lewis




msg:4346004
 10:56 pm on Jul 31, 2011 (gmt 0)

Actually I have got past the original problem of apache not starting. by updating to the latest development snapshot of lazarus.
Now apache works the first time i call it. but the second time I call it i get the below response. I have googled this, and it seems this may have to do with me using windows XP. I am hoping( crossing my fingers ) that when my network staff give me a linux machine. The problem will just go away.

Kind Regards,

Robert.


<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>400 Bad Request</title>
</head><body>
<h1>Bad Request</h1>
<p>Your browser sent a request that this server could not understand.<br />
Request header field is missing ':' separator.<br />
<pre>
HTTP/1.1 200 OK</pre>
</p>
</body></html>

brotherhood of LAN




msg:4346006
 11:07 pm on Jul 31, 2011 (gmt 0)

As phranque pointed out the Apache error log will likely give you a more verbose description of what is causing problems. Typically it resides at /var/log/apache2/error.log

sir wally lewis




msg:4346055
 2:00 am on Aug 1, 2011 (gmt 0)

This is the error in error.log

[Fri Jul 29 10:04:48 2011] [error] [client 127.0.0.1] request failed: error reading the headers

As I said I am hoping this is an XP specific problem.

I shall keep the listed posted on progress.

phranque




msg:4346407
 11:00 pm on Aug 1, 2011 (gmt 0)

have you tried Live HTTP Headers or a similar browser plugin to inspect the entire HTTP Request including all headers and cookies?
do you see the same error when similar requests are made from different browsers?

LynX4DBA




msg:4347320
 6:39 pm on Aug 3, 2011 (gmt 0)

add %{error-notes}n to your log format string in your Dev/Test environment only .

sir wally lewis




msg:4347450
 10:57 pm on Aug 3, 2011 (gmt 0)

Apache writes the error log.
What section of httpd.conf to update for this?

phranque




msg:4347487
 1:21 am on Aug 4, 2011 (gmt 0)

you cannot customize the error log but you can customize the access log using the LogFormat and CustomLog directives:
http://httpd.apache.org/docs/current/mod/mod_log_config.html [httpd.apache.org]

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved