<code>
print << END_OF_HTML;
Content-type: text/html;
<HTML>
<head>
<title>About this server</title>
</head>
<body>
<h1>About this server</h1>
<pre>
server name : $ENV{SERVER_NAME}
Listening on port : $ENV{SERVER_PORT}
Server Software : $ENV{SERVER_SOFTWARE}
Server Protocol : $ENV{SERVER_PROTOCOL}
CGI Version : $ENV{GATEWAY_INTERFACE}
</pre>
</body>
</html>
END_OF_HTML</code>
This file is saved as server_info.cgi and put in cgi-bin directory under the path "C:\Program Files\Apache Group\Apache2\cgi-bin" and this path is configured in httpd.conf file in apache server under the scriptAlias parameter.
When I send a request "http://localhost/cgi-bin/server_info.cgi" I get the error message "500 Internal Server Error".
So whats wrong in here ?
I checked the error.log of apache and there I saw following entries
"Tue Mar 03 15:10:42 2009 error client 127.0.0.1 (OS 5)Access is denied. : couldn't create child process: 720005: server_info.cgi
Tue Mar 03 15:10:42 2009 error client 127.0.0.1 (OS 5)Access is denied. : couldn't spawn child process: C:/Program Files/Apache Group/Apache2/cgi-bin/server_info.cgi"
What does these error messages suggest ?
|