Jump to content

Recommended Posts

Posted

I'm in the process of migrating a website to TCH from another hosting service. I have a bunch of Perl scripts that were working perfectly on the other host, but I'm having trouble getting them running on TCH. When I check the error log in cPanel it says:

 

"Premature end of script headers: <path to script file>"

 

I'm wondering if the shebang line that points to the perl interpreter is different on TCH. On the old host

 

#!/usr/bin/perl5

 

worked. Does it need to be something different on TCH? I'm I barking up the wrong tree? I've never seen this error message before.

 

Thanks in advance for any help!

Posted

The path to perl should be /usr/bin/perl, but you can verify this is correct for your server/account by looking at the "Path to PERL" under "General server information" in your CPanel.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...