I have a file index.pl in cgi-bin folder, and it works fine on the terminal. But when I execute it on the web browser, I got the Internal Server Error. I checked the error_log file, and it said: Premature end of script header: index.pl. Can anyone help me solve this issue?