You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/etc/apache2 /var/www/html /usr/lib/cgi-bin -> moved to /var/www/cgi-bin because of permission errors
Welp
403 Forbidden -> fix this
Config apache2.conf
AddHandler cgi-script .cgi .py -> Add this to the <Directory /> thing LoadModule cgid_module modules/mod_cgid.so -> Add this also
Also needs to be added to the config file:
ScriptAlias /cgi-bin/ /var/www/cgi-bin/
<Directory "/var/www/cgi-bin">
#Options All
AllowOverride All
AddHandler cgi-script .cgi .d .py
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
On mods
Copy all cgi.\*, cgid.\* from mods-available to mods-enabled
Remeber to do sudo chmod a+rwx on the files