
Reet folks, question time for you perl types out there with a bit o'Apache.....(I know this isn't the place but no bugger else is being any help so far)
Now that I'm broadbanded up to buggery and flying along I'm pissing about with CGI scripts for a new counter for BinaryDinosaurs.....everything I try I get 'premature end of script errors' despite having everything 755'd and running nicely from the CLI. Shell type scripts work nicely (ie the default test script with Apache 2) but nowt else does......
Anyone? Cal? Rob? <offers beer> :)
( ,
Sat 13 Apr 2002, 22:55,
archived)
Now that I'm broadbanded up to buggery and flying along I'm pissing about with CGI scripts for a new counter for BinaryDinosaurs.....everything I try I get 'premature end of script errors' despite having everything 755'd and running nicely from the CLI. Shell type scripts work nicely (ie the default test script with Apache 2) but nowt else does......
Anyone? Cal? Rob? <offers beer> :)

FTP'd it somewhere? Using Binary mode instead of ASCII? That would produce NASTY funny characters instead of CR/LF combinations, leading to...
TOTAL CATASTROPHIC PERLDOWN!
( ,
Sat 13 Apr 2002, 23:34,
archived)
TOTAL CATASTROPHIC PERLDOWN!

the server sitting a couple of feet from my right foot! Should've mentioned that first - I'm trying to host everything from here <indicates roomful of shite round /me>...now just watch Demon's 'wires only' ADSL service have blockages on port 80 too.....
( ,
Sat 13 Apr 2002, 23:46,
archived)

Unfortunately/Fortunately/Discuss :) Up until 5 or 6 years ago I kept WELL away from peecees and stayed with the Big Stuff, then they assimilated me, kicking and screaming into the world of Winduhs 3.11. Woo. Not.
( ,
Sun 14 Apr 2002, 16:39,
archived)

If the latter, feel free to send me a copy of the script to lardball at mentzie dot org dot uk
Coupla things to check.
Is the script being called as the user that runs apache, does that user have write perms as well as x perms, is the script in unix mode, or does it have ^M after #!/usr/local/bin/perl
That will fuck it up too.
If stuck, drop me a line.
( ,
Sun 14 Apr 2002, 8:45,
archived)
Coupla things to check.
Is the script being called as the user that runs apache, does that user have write perms as well as x perms, is the script in unix mode, or does it have ^M after #!/usr/local/bin/perl
That will fuck it up too.
If stuck, drop me a line.