0

I am trying to run a cgi script using apache but when I input in the browser https://localhost/cgi-bin/(anything) it says "You don't have permission to access /cgi-bin/(anything) on this server. I have added

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
    AllowOverride None
    Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
    Order allow,deny
    Allow from all
</Directory>

And have also to my knowledge put the right permissions on the files. Is there anything else missing?

  • Try +FollowSymLinks instead of +SymLinksIfOwnerMatch – Froggiz Nov 15 '15 at 9:51
  • @Froggiz It still seems to not work. – hahahakebab Nov 15 '15 at 10:00
  • What does it say in the Apache error log when you try this? – Paul Haldane Nov 15 '15 at 10:04
  • @PaulHaldane I cant find my error log files. I think it may be due to the fact that when i netstat -a I cannot see the server being run. Is there a guide somewhere to help me through the setup? – hahahakebab Nov 15 '15 at 10:12
0

You can find information on the official web site: https://httpd.apache.org/docs/2.2/howto/cgi.html

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.