1 |
On Wed, Jul 04, 2007 at 10:28:30AM -0400, Penguin Lover David Relson squawked: |
2 |
> After saving your script to /var/www/localhost/cgi-bin/makeindex.perl |
3 |
> and running "chmod +x ...", I pointed firefox at |
4 |
> http://localhost/cgi-bin/makeindex.perl and got the following: |
5 |
> |
6 |
> Internal Server Error |
7 |
> |
8 |
> The server encountered an internal error or misconfiguration and |
9 |
> was unable to complete your request. |
10 |
> |
11 |
> Please contact the server administrator, root@localhost and inform |
12 |
> them of the time the error occurred, and anything you might have |
13 |
> done that may have caused the error. |
14 |
> |
15 |
> More information about this error may be available in the server |
16 |
> error log. |
17 |
> |
18 |
> Looking in /var/log/apache2/error_log I found |
19 |
> |
20 |
> [Wed Jul 04 10:22:06 2007] [error] [client 127.0.0.1] malformed |
21 |
> header from script. Bad header=<head><title>Index of /usr/sha: |
22 |
> makeindex.perl |
23 |
> |
24 |
> |
25 |
> Looking at other simple scripts lead me to add |
26 |
> |
27 |
> print "Content-type: text/html; charset=iso-8859-1\n\n"; |
28 |
> |
29 |
|
30 |
I doubt that his script (which he mentions is to be run in cron) is |
31 |
meant to actually be placed in the cgi-bin directory for apache. |
32 |
|
33 |
It would certainly be annoying to need to have an apache server |
34 |
running just to read documentation. |
35 |
|
36 |
W |
37 |
-- |
38 |
When two egotists meet, it's an I for an I. |
39 |
Sortir en Pantoufles: up 208 days, 15:01 |
40 |
-- |
41 |
gentoo-user@g.o mailing list |