I have tried everything!! I get an 500 internal server-error when trying to run a cgi script. Both mod_perl and cgi is checked in Plesk. In my error_log it says: Premature end of script headers I have made a test script: test.cgi #!/usr/bin/perl print "hello world\n"; When I try to run the script via ssh on the server: ./test.cgi It prints hello world. So the script works FINE! The owner is right and the group is right. It has 755 permissions. The folder /var/log/httpd exists on the system. I AM GOING OUT OF MY MIND!!!