What’s the correct path to perl?

Before a CGI script will work, certain modifications must be made. Certain paths must be specified in some scripts. After the "#", in the first line of the perl script, the path to perl must be specified. Normally,  “/usr/bin/perl" should suffice for this path. Below is a printout of a "whereis perl" query from our system. 

perl: /usr/bin/perl

  • 7 Users Found This Useful
Was this answer helpful?

Related Articles

What is CGI?

CGI (“Common Gateway Interface") includes programs that run on servers so as to enhance the...

Do you allow CGI to run on your servers?

We do allow running of CGI scripts on our servers; however, they must conform to our acceptable...

What is the path to send mail?

Another program that needs to be specified in many scripts is sendmail. This is located at...

What is the exact physical path to your root directory on the web-server?

  The path to your root directory is: /home/username/ Obviously, substitute "username" with...

Why doesn't my CGI work?

Make sure, when you upload the CGI file, that you DO NOT upload it in binary mode - rather, use...