CGI Installation and Server Paths

NOTE: These are general guidelines for installing Perl Scripts. Refer to the readme file that came with your specific script for more information.

To install your Perl scripts, follow these steps:

  1. Open the script files with an editor such as Notepad and make sure that the server paths are correctly entered (See server paths below.)

  2. Upload the script files to your server in ASCII mode. The script will not work if you upload the files in BINARY mode. You need to place the script files in the public_html sub-directory named "cgi-bin".

  3. Change the permissions for your script files. Most scripts require that you make them executable. Many FTP applications allow you to change a file to executable by right-clicking the file on the remote system and clicking CHMOD (Refer to the readme file that came with the script for more information on CHMOD settings.)

Server Paths:

Path to Perl: /usr/bin/perl

Path to PHP: /usr/bin/php

Path to Sendmail: /usr/sbin/sendmail

Path to Date: /bin/date

Path to Account: /home/username/public_html

Replace username with your actual account username.

  • 123 Users Found This Useful
Was this answer helpful?

Related Articles

How do I test Python to make sure it is working for my account?

The following will allow you to create a test script to ensure Python is working on your account...

How do I parse PHP in HTML pages?

If you wish parse PHP in your HTML pages you need to add the following line you the .htaccess...

How do I use the Ioncube loaders?

The Ioncube loaders are installed and ready for use so you don't need to do anything to use them.

Is PHP ran as an Apache module or as CGI?

We run suPHP on our servers, so PHP is running as CGI.

Can I run PHP scripts anywhere on my web space?

You can run PHP scripts anywhere on your web space with the exception of the "cgi-bin".