Home > PERL, Ubuntu 8.x Server > Perl web support on Ubuntu 8.10 Server

Perl web support on Ubuntu 8.10 Server

I had this project where we need to add PERL support in a website folder called cgi-bin. Here is how I got it working and what changes I need to to make.

Install PERL if not already installed.

apt-get install perl

Apache configuration: load the following in the apache mods-enabled

cd /etc/apache2/mod-enabled
ln -s ../mods-available/perl.conf
ln -s ../mods-available/perl.load

Website configuration:

<VirtualHost *:80>
        ServerName www.YOURHOST.com
        ServerAdmin name@YOURHOST.com
        DocumentRoot "/home/USER/WEB_root"
        DirectoryIndex index.html index.php default.php index.htm
        ErrorLog /var/log/apache2/YOURHOST_error_log
# information in here
        ScriptAlias /cgi-bin/ /home/USER/WEB_root/cgi-bin/
        <Directory /home/USER/WEB_root/cgi-bin/>
                Options ExecCGI
                AddHandler cgi-script cgi pl
        </Directory>
# Rest of your information
</VirtualHost>

  1. No comments yet.
  1. No trackbacks yet.

Spam Protection by WP-SpamFree