Making Perl Script Run from Any Folder

In Apache web server, by default perl script run from cgi-bin folder only.
 
cgi-bin is a special directory that is spefified in httpd.conf
 
ScriptAlias /cgi-bin/ “/home/cgi-bin/”
 
In this cgi-bin you can run any scripts, perl or even binary executables.
 
In cpanel servers, you can run Perl script with .pl or .cgi file extension from any folder. This is a great feature as you can run perl scripts from any folder.
 
To make your web server run perl script from any folder, add following line to your httpd.conf file and restart the webserver.
 
AddHandler cgi-script .cgi .pl
 

Related posts:

  1. Can’t locate DBI.pm in @INC Perl Script Error
  2. Stop Nobody Spamers Using PHP and Perl Scipts
  3. Apache Allow Folder Browsing
  4. NetFreeHost.com script installation service
  5. ASP.NET script showing error message
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>