I am running Ubuntu 16.04 as a virtual machine. I have Apache2 2.4.18 installed.
I have a folder with cgi scripts that I want to use. To do that I placed a symlink to that folder in /usr/lib/cgi-bin.
When I call the script from firefox localhost/cgi-bin/linkName/script.cgi I get 403 forbidden error.
When I copy the script.cgi to /usr/lib/cgi-bin and call it with localhost/cgi-bin/script.cgi, it runs but gives a software error since it lacks the surrounding files and folders.
I have chmod 777 both the link and the folder it links to but I still get the error.
What else can I do other than coping all the files and folders into /usr/lib/cgi-bin?
Require all grantedwas dropped. Also you need tosystemctl restart apache2.service. – pa4080 Dec 01 '16 at 09:02NonefromOptionsdirective. – pa4080 Dec 01 '16 at 09:06Options +ExecCGI. – pa4080 Dec 01 '16 at 09:14/usr/lib/cgi-bin– Gadi Armony Dec 01 '16 at 13:49