1 |
"Kevin O'Gorman" <kogorman@×××××.com> writes: |
2 |
|
3 |
> I don't get much help from the logs. The access log shows that the |
4 |
> request got an error code, |
5 |
> 64.166.164.49 - - [15/Feb/2009:15:46:32 -0800] "GET /hex-bin/board |
6 |
> HTTP/1.1" 500 542 |
7 |
> |
8 |
> and all that the error log says is: |
9 |
> [Sun Feb 15 15:46:32 2009] [error] [client 64.166.164.49] Premature |
10 |
> end of script headers: board |
11 |
> |
12 |
> |
13 |
> Any idea how to debug this, or any intuitions about what I neglected to do? |
14 |
|
15 |
Well a few things come to mind. Test the script by hand first. |
16 |
Check the permissions are 755 or the like. |
17 |
|
18 |
Test a very simple cgi that is known to work. |
19 |
|
20 |
Here is a simple one... make sure it has chmod 755 |
21 |
------- 8< snip -------- ------- 8< snip -------- |
22 |
#!/usr/bin/perl |
23 |
print "Content-type: text/html\n\n"; |
24 |
|
25 |
print "REMOTE_ADDR = $ENV{REMOTE_ADDR}<BR> \n"; |