I had a linux box running Slackware 8.1 and the current Apache at that time. I have a bunch of perl scripts that I had running on there just fine. When I got my new box up and running with Red Hat 9 and the new version of Apache, I get that error of premature end of script headers when I try and run the perl scripts. I have tried uploading the files directly from linux box to box and still no go. I know that I have apache configured right and all the permissions configured right.
The strange thing is, when I open the file and then save it and close it. The file runs fine. I tried to run it at the command prompt before I opended it and saved it and it came back ok. But the only way that I can get my server to launch it in the browser is to open it and save it then try again.
I have even tried some commercial scripts off of the internet. I downloaded them with the Red Hat system and then installed them with that system and I get the same problem. It won't open untill I open the file with a editor and save it and then try it.
I am racking my brain with this crap. If anyone has any insight that would be awesome. I am trying to meet a deadline on getting the new server up and 3 sites launched and this is holding me back.
Thanks so much.
-- Chris
The strange thing is, when I open the file and then save it and close it. The file runs fine. I tried to run it at the command prompt before I opended it and saved it and it came back ok. But the only way that I can get my server to launch it in the browser is to open it and save it then try again.
I have even tried some commercial scripts off of the internet. I downloaded them with the Red Hat system and then installed them with that system and I get the same problem. It won't open untill I open the file with a editor and save it and then try it.
I am racking my brain with this crap. If anyone has any insight that would be awesome. I am trying to meet a deadline on getting the new server up and 3 sites launched and this is holding me back.
Thanks so much.
-- Chris