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>
        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
# Rest of your information


Popular posts from this blog

Console over SSH (ONTAP)

Brocade Zone Setup

OpenSolaris ZFS Setup