Skip to content

Instantly share code, notes, and snippets.

@j-n-c
Created July 28, 2016 09:05
Show Gist options
  • Select an option

  • Save j-n-c/fe3233faa235465e5f3703e7e96a8883 to your computer and use it in GitHub Desktop.

Select an option

Save j-n-c/fe3233faa235465e5f3703e7e96a8883 to your computer and use it in GitHub Desktop.
- Enable running scripts in Apache2
>> a2enmod cgid
>> sudo service apache2 restart
>> sudo nano /etc/apache2/conf-enabled/serve-cgi-bin.conf
-- <IfDefine ENABLE_USR_LIB_CGI_BIN>
ScriptAlias /cgi-bin/ <path_to_scripts_folder>/
<Directory "<path_to_scripts_folder">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
AddHandler cgi-script .cgi .pl .py
Require all granted
</Directory>
</IfDefine>
>> sudo service apache2 restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment