homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
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

 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?



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

have you specified a LoadModule Directive in the server config?

sir wally lewis

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

Yes httpd.conf has my directive in it.


 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

 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,


<title>400 Bad Request</title>
<h1>Bad Request</h1>
<p>Your browser sent a request that this server could not understand.<br />
Request header field is missing ':' separator.<br />
HTTP/1.1 200 OK</pre>

brotherhood of LAN

 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

 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] 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.


 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?


 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

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

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


 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