Created
July 28, 2016 09:05
-
-
Save j-n-c/fe3233faa235465e5f3703e7e96a8883 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - 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