Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Please Save Me From Insanity!!!

by huck (Prior)
on Feb 09, 2018 at 00:44 UTC ( [id://1208766]=note: print w/replies, xml ) Need Help??


in reply to Please Save Me From Insanity!!!

Two things via http://support.hostgator.com/articles/specialized-help/cgi-troubleshooting

First what did you set to 755? the file, the directory? BOTH? it has to be BOTH at 755. Setting the directory permissions to 755 should always be sufficient. If you do set any directories to rwxrwxrwx, then any Perl scripts located inside of this directory will not execute!

Second you show #!/usr/local/bin/perl The first line of your program needs to be the correct path to where perl is installed on your server. On all servers, this path is correct:
#!/usr/bin/perl

Replies are listed 'Best First'.
Re^2: Please Save Me From Insanity!!!
by Happy-the-monk (Canon) on Feb 09, 2018 at 13:55 UTC

    On all servers, this path is correct:
    #!/usr/bin/perl

    I see you want to help and think that is great, unfortunately that statement is off.
    #!/usr/bin/perl would be a nice passpartout to find perl on all unixish computers,
    but alas you cannot rely on it.

    Cheers, Sören

    Créateur des bugs mobiles - let loose once, run everywhere.
    (hooked on the Perl Programming language)

      Happy-the-monk, huck was quoting (hence the URL and italics) from the "Incorrect Path to PERL" section of the linked hostgator support page. Given that hostgator claims all their servers use that specific perl path, I believe bennierounder could rely on that fact on the hostgator-based website being discussed in this thread. In general, you cannot rely on that, but on hostgator, you should be able to (until they change their setup and documentation).

        To be fair, I was very close to posting something very similar as Happy-the-monk did, until I went to the site and read through it.

        huck was quoting (hence the URL and italics) from the "Incorrect Path to PERL" section of the linked hostgator support page.

        Thank you and stevieb for clarifying this.

        Cheers, Sören

        Créateur des bugs mobiles - let loose once, run everywhere.
        (hooked on the Perl Programming language)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1208766]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2024-04-25 16:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found