Author Norm on 11-09-1999 at 16:02 (EST)
|Installed on apache server under bsd.|
following msg in error log (truncated here)
syntax error in file /usr/local/etc/httpd/cgi-bin/udirectory.pl at line
878, next 2 tokens "my ("
syntax error in file ....
.... at line 2490, next 2 tokens "my ("
/usr/local/etc/httpd/cgi-bin/udirectory.pl has too many errors.
[Mon Nov 8 15:23:16 1999] access to
/usr/local/etc/httpd/cgi-bin/udirectory.pl failed for 18.104.22.168,
reason: Premature end of script headers
Where should I look?
|Messages In This Discussion|
| 1. cgi script error|
Author Charlie Edmunds on 11-09-1999 at 16:52 (EST)
What kind of editor did you use to edit and save the script? If it was not saved in 'unix' format I have seen it cause problems. There is a difference between how unix and windows handle line feeds and it can cause all kinds of strange errors.
Microburst Technologies, Inc.
| 2. One More thing to check|
Author Charlie Edmunds on 11-09-1999 at 19:27 (EST)
What version of perl are you using? It should be version 5.
| 3. One More thing to check|
Author Norm on 11-18-1999 at 16:53 (EST)
|Yes, that was the problem. Perl4 and 5 are available and I was pointing the script to 4.|