Install and Enable CGI
sudo -s
apt-get install apache2
a2enmod cgi
vim /etc/apache2/sites-available/default-ssl.conf
ServerAdmin admin@example.com ServerName test.example.com DocumentRoot /var/www/cgi #ScriptAlias / /var/www/cgi/ <Directory "/var/www/cgi"> Options +ExecCGI DirectoryIndex index.html </Directory> AddHandler cgi-script .cgi
service apache2 restart