Now on access the perl file usiing my browser http://servername.domain:port/cgi/printenv.pl
The browser display the "Internal Server Error" page.
On checking the error_log of apache I could see the line "premature end of script headers".
The perl file contain the correct path of perl and has permissions on the files are also correct.
But this is a classic permissions problem. Does the web server user id have read/execute permission for the script?
Exactly what are the permissions?
What happens when you run printenv.pl from the shell?
