Where should I put my Perl scripts?

We advise our customers to setup any Perl scripts (*.pl, *.cgi files) to be executed from the cgi-bin directory under their account. The main purpose of this is simply because:

- As /cgi-bin is a common default location used to store Perl scripts many free scripts will be setup to run in that path by default.

- Users of Microsoft FrontPage should note that storing scripts in the cgi-bin will decrease any chance of FrontPage making unwanted permission setting changes.

  • 5 Users Found This Useful
Was this answer helpful?

Related Articles

Is it possible to have a CGI-Bin directory with CGI/Perl script access under my httpdocs directory?

Unfortunately this is not possible; CGI scripts can only be executed outside the public directory...

I am attempting to execute a CGI script in my account and I receive a 500 Internal Server Error

If you are encountering errors after you have uploaded your CGI script in either .cgi or .pl...

What is the path to perl?

The path to Perl on all of our servers is: #!/usr/bin/perl Note that this is the common...

What is the path to my cgi-bin directory?

The full path to your CGI-Bin directory is: /home/httpd/vhosts/domain.com/cgi-bin

Unable to delete files created by Perl scripts

You may find that you are unable to modify or delete files or folders which were created by a...