Perl 500 internal server error

software development

#1

I have a perl hello world programme which executes fine from the command line. I wont post the code as it’s a simple script and it’s working fine.

However, when I follow the url http://mydomain.com/script.pl I get a 500 internal server error. I have chmod the file/directory in accordance with http://wiki.dreamhost.com/index.php/Suexec Is there an apache configuration I have overlooked? I had understood cgi scripts run from any directory at DreamHost. Perhaps it’s because I am trying to access the file directly?


#2

Thanks, I had searched the wiki but not seen that page before. The script wouldn’t work because I wrote it in crimson editor using the windows format for line feeds. I’m using the unix style line feeds now and all is well :slight_smile: