6:12 AM

Perl/CGI

1. What is the path to Perl on Linux platform?

/usr/bin/perl
In most CGI scripts the standard path line is therefore #!/usr/bin/perl
What is the path to sendmail on Linux platform?

This may differ from server to server, try one of following:

/usr/lib/sendmail
or
/usr/sbin/sendmail

How do I set permissions for my CGI scripts?

To set permissions for your CGI scripts, you can change them using your FTP program. Typically, permissions are changed to let the web server read, write, or execute CGI scripts.

To set permissions using most FTP programs, select the file or folder you wish to change and right-click 'change file attributes.' Alternatively you can use Plesk file manager.

Most scripts require permissions to be set to chmod 755.

Where do I place my CGI/Perl scripts?

You can run and create your own CGI/Perl scripts and upload it to any location on your web account. Some customers prefer to upload their CGI/PERL scripts to their own cgi-bin directory. The 'cgi-bin' directory has already been created for you and is beside the 'httpdocs' directory. All CGI/Perl scripts should be uploaded in ASCII mode.

To have the domain run the scripts simply access them by browsing to http://www.yourdomain.com/cgi-bin/scriptname.cgi.

0 comments:

Post a Comment