- 论坛徽章:
- 0
|
我照着作的怎么也不行?
在命令窗口里面显示是好的:
- C:\Program Files\Apache Software Foundation\Apache2.2\cgi-bin>perl welcome.cgi
- Set-Cookie: CGISESSID=608ecefc35cbee406a1df284d91908e2; path=/; expires=Tue, 06-Apr-2010 06:54:54 GMT
- Date: Tue, 06 Apr 2010 06:24:54 GMT
- Content-Type: text/html; charset=ISO-8859-1
- <html>
- <head>
- <title>welcome</title>
- </head>
- <body>
- <form action = "/cgi-bin/login.cgi" >
- Please enter your username and password.
- <br>
- <br>
- username:<input type="text" name="user"> <br>
- password:<input type="password" name="pass">
- <br>
- <input type="submit"/>
- </form>
- </body>
- </html>
复制代码 可是浏览器里面就不行了, 用了use CGI::Carp qw(warningsToBrowser fatalsToBrowser);也没信息,只是说Internal Server Error,
access.log里面:
127.0.0.1 - - [06/Apr/2010:14:25:27 +0800] "GET /cgi-bin/welcome.cgi HTTP/1.1" 500 540
error.log里面:
[Tue Apr 06 14:25:27 2010] [error] [client 127.0.0.1] (OS 3)The system cannot find the path specified. : couldn't spawn child process: C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin/welcome.cgi
怎么回事?文件名没弄错。。 |
|