Welcome to WebmasterWorld Guest from 54.197.116.116

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

Apache fails to start how to debug

   
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)

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



have you specified a LoadModule Directive in the server config?
http://httpd.apache.org/docs/current/mod/mod_so.html#loadmodule
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)

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



have you checked the server error log for messages when you start the server?
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>
11:07 pm on Jul 31, 2011 (gmt 0)

WebmasterWorld Administrator brotherhood_of_lan is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



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
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.
11:00 pm on Aug 1, 2011 (gmt 0)

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



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

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



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]