patrik
Verified User
- Joined
- Sep 6, 2006
- Messages
- 128
A user tries to run a perl script in her cgi-bin directory but we only get Internal Server Error (classical perl/cgi error message).
Her error_log says this:
What does it mean by "failed to open log file"?? Which log file? It certainly writes to the vhost's error_log.
I need some help on this. It's strange that it runs in /var/www/cgi-bin but not in the user's own cgi-bin directory.
Her error_log says this:
[Mon Dec 18 11:42:45 2006] [error] [client 85.227.160.115] File does not exist: /home/web26224/domains/mingeltraffen.se/public_html/500.shtml
failed to open log file
fopen: No such file or directory
[Mon Dec 18 11:42:45 2006] [error] [client 85.227.160.115] Premature end of script headers: /home/web26224/domains/mingeltraffen.se/public_html/cgi-bin/formmail.pl
What does it mean by "failed to open log file"?? Which log file? It certainly writes to the vhost's error_log.
- The cgi-bin directory is executable
- The script is owned by the user and has 755 perm
- .htaccess in cgi-bin contains Options +ExecCGI
- The shebang looks like this #!/usr/local/bin/perl -wT
- The script can be run in the terminal, either directly or by invoking perl
- The script runs well in /var/www/cgi-bin (http://[HOSTNAME]/cgi-bin/formmail.pl)
I need some help on this. It's strange that it runs in /var/www/cgi-bin but not in the user's own cgi-bin directory.