[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problems with Apache running perl scripts
Probably your script forgot to print :
Content-type: image/gif\n\n - try to run it from shell and make sure that
the output contains those 2 lines. Also check that the script is
executable by the user under which server is running.
P.S.: Counters need some dir/file with write access of the server user to
store the count - make sure you make/chmoded/chowned one.
On Sun, 25 Apr 1999, Oded Arbel wrote:
|hello .
|I need some help with setting up SSI on apache to run perl scripts.
|I've tried to put a simple counter script in my cgi-bin directory, and tried
|to make it work from my index.shtml file.
|when I access it through a web browser, it doesn't seem to be executed, and
|i get this text in httpd's error.log :
|[Sun Apr 25 21:41:03 1999] access to /home/httpd/cgi-bin/ncounter.pl failed
|for
|my.ip.here, reason: Premature end of script headers
|
|I looked up the apache FAQ, but it was no help . i didn't understand what
|the problem was or how to fix it ..
|can any one give me a hint ?
|
|Oded
|--
|----------------------------------------------------
|The man who does not read good books has no advantage over the man who
|cannot read them.
| -- Mark Twain
|
|
|
|
Leonid Igolnik aka LiM