Cheek Posted December 20, 2004 Posted December 20, 2004 Hi, I've done some work in perl before, and i opened my hosting account with TCH so i could further play around with it. I had a script that i had downloaded and been trying to understand and modify. I uploaded the script and tried to execute it, and i kept getting errors. Through troubleshooting, i went back to a script i knew should work... and it still doesnt. I seem to be missing something, and cannot get anything to work. The debug script i was trying to test with is a simple hello world script. #!/usr/bin/perl print "Content-type: text/html\n\n"; print "<H1>Hello World</H1>\n"; and it gives me the error: [Mon Dec 20 14:08:01 2004] [error] [client 68.123.5.66] Premature end of script headers: /home/nickhea/public_html/cgi-bin/hw.pl I've made sure to upload it in ASCII, and converted the file to UNIX line breaks, and made sure it was CHMODed to 755 (as was suggested on various websites about this error--Still nothing). Any tips on what the issue might be? Thanks, Nick Quote
TCH-Don Posted December 20, 2004 Posted December 20, 2004 Welcome to the Family Nick and your new home! Hang in there, I am sure ther are still some family members here that use perl yet. Most have moved on to php, but should be able to help. Give it some time for them to check in. We really are like family here. So if you need anything, just ask your new family! We love to help Quote
Cheek Posted December 20, 2004 Author Posted December 20, 2004 Thanks By the way, i'm very impressed with TCH and its hard working support staff. From what i've read on the forums, and the VERY prompt replies to my few inquiries thus far, I have never seen any company with better support--I'm not sure its possible. Im sold on TCH for as long as I have hosting, and any reccomendations will be going straight to you--no question. Quote
TCH-Rob Posted December 20, 2004 Posted December 20, 2004 Nick, Welcome to the forums and welcome home. Quote
newhorizonz Posted December 20, 2004 Posted December 20, 2004 Hi Nick I work extensively with Perl and have had similar problems. Generally I upload to TCH using SmartFTP with ASCII transfer set as default. However I have found that if I upload using the TCH control panel file upload I invariably get this error which means that it hasn't uploaded in ASCII. To get round this use the File Manager from your control panel - edit the script then immediately save it again and see if that works. I don't believe uploading scripts to TCH servers using the control panel really works properly. Download a copy of SmartFTP and upload using that. Quote
Cheek Posted December 20, 2004 Author Posted December 20, 2004 I actually use CuteFTP pro... I sent that it using that. Well. I seemed to have fixed it, playing around with the perl code. I didnt really change anything, it just kind of started working suddenly. *shrug* Quote
TCH-Bruce Posted December 20, 2004 Posted December 20, 2004 Welcome to the family, Nick I use CuteFTP to upload my perl scripts. Are you sure you uploaded in ASCII? You can add the .pl extension to the text file extensions? Sometimes I have problems with forcing ASCII mode unless I add them to the text extension list. Quote
borfast Posted December 23, 2004 Posted December 23, 2004 Welcome to the family, Nick. I have nothing to add about this issue apart from what has already been said, so I'll just say that if you need anything, you know where to post Welcome aboard Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.