A SHARE OF $50,000 CASH! A SHARE OF $50,000 CASH!
We are aware of some customers receiving a fraudulent email claiming to be VentraIP Australia. Please do not open the link in this email, and mark it as spam immediately. If you have clicked the link in the email and entered your details, please update your VIPControl password immediately. Read More
View all Products Close Menu Menu
Installing and running Perl scripts in cPanel
Updated Friday February 5th 2021 / Category Web Hosting

Installing a Perl Module

  1. Log in to cPanel.
  2. Click on Perl Modules under Software.
  3. Under Find a Perl Module, input your search term.
    cPanel search perl modules
  4. Click Go.

If you then want to install one of the Perl Modules, you can simply click Install next to your desired module.

cPanel Perl Module Install

Before running the script

  • Add the following code to your .htaccess file, to ensure your Perl scripts are run correctly
    Options +ExecCGI
    AddHandler cgi-script .pl
  • Ensure that your Perl script is located in the cgi-bin folder
    You can locate the cgi-bin folder by navigating to the folder your website is in (usually public_html)
  • Make sure your script starts with the following code, this will ensure that the script is run as a Perl script:

Making your script executable

You will need to add special “execute” permissions, you can do this by running the following shell command using the shell built into cPanel or SSH.

chmod +x /path/to/perl/

Running your Perl script

There are two key ways a script can be run:

  • Accessing the script via the web browser:
  • Running the script via the command line
    /usr/bin/perl /path/to/my/perl/



Can’t find the answers you're looking for? Check out these other methods of support!