plesk perl error premature end of script headers

From WebHostingNeeds.com
Jump to: navigation, search

On Plesk server, perl script is not working, it shows error

[Thu Feb 14 15:54:29 2008] [error] [client 59.98.40.204] Premature end of script headers: test.cgi

This error can happen if perl script is not in UNIX format. Upload the script in ASCII mode will fix that.

In this case problem was cased due to suEXEC. The permission of perl files was wrong.

chown -R USERNAME:psacln cgi-bin/*