There is how to configure your test server on Ubuntu (tested with Lubuntu 15.10). Example if the git repository has been cloned into /home/fred/regepe
- In
/etc/apache2/apache2.conf, add
<Directory /home/fred/regepe/lamp-test/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>- Create
/etc/apache2/sites-enabled/regepe.conf
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /home/fred/regepe/lamp-test/www
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<IfModule mod_alias.c>
<IfModule mod_cgi.c>
Define ENABLE_USR_LIB_CGI_BIN
</IfModule>
<IfModule mod_cgid.c>
Define ENABLE_USR_LIB_CGI_BIN
</IfModule>
<IfDefine ENABLE_USR_LIB_CGI_BIN>
ScriptAlias /cgi-bin/ /home/fred/regepe/lamp-test/cgi-bin/
<Directory "/home/fred/regepe/lamp-test/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Require all granted
</Directory>
</IfDefine>
</IfModule>
</VirtualHost>-
Remove the file
/etc/apache2/conf-enabled/javascript-common.conf -
Then activate the host and restart apache:
sudo a2ensite regepe
sudo service apache2 restart- Put right permissions on
cgi-binfolder
chmod +x `grep "#\!/usr/bin/python" lamp-test/cgi-bin/*.py -l`