Monday, December 22, 2008

Perl File Formatting Error

(2)No such file or directory: exec of '/var/www/html/index.pl' failed
Premature end of script headers: index.pl

You can resolve this problem by changing the file's format, use an editor(Notepad++ - Format>Convert to UNIX Format)

Also make sure that the file is executable(755 will do) and the script is using the correct path to the perl binary. You can issue the command "whereis perl" to check on this.

No comments:

Post a Comment