Click to See Complete Forum and Search --> : apache CGI problems


bolero
09-15-2003, 03:59 PM
I have apache 2.0 and mandrake 9.1 installed.. and im trying to run a Cgi based Message board called yaBB
(www.yabbforum.com)
anyways i set my path to perl right in the script and chmod everything but i always get a Premature end of header in Yabb.cgi in the apache error logs.... and a Internel server error when trying to access itI know perl works as i have tested basic scripts like Hello world and printing servertime on the screen.. but i can never get bigger cgi scripts to work under apache in linux
iv also tried Coranto a news posting and iv set it up a ton of times on other linux servers but i cant get that to work either on mine.. i always usualy get a Premature end of script

anyhelp would be great

thanks

-bolero

blizz
09-16-2003, 05:14 AM
The premature end of script error you are getting COULD be from carriage returns ^M in your cgi file if you are editing your file on windows using notepad/wordpad or other wordprocessor software.

Maybe download a copy of editpad or something similiar to convert your cgi-script from windows to unix format before uploading to your server.