1

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?

8
  • Try +FollowSymLinks instead of +SymLinksIfOwnerMatch Commented Nov 15, 2015 at 9:51
  • @Froggiz It still seems to not work. Commented Nov 15, 2015 at 10:00
  • What does it say in the Apache error log when you try this? Commented Nov 15, 2015 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? Commented Nov 15, 2015 at 10:12
  • Is files owner www-data or some other user? You can find with "ls -l" command. Also check "systemctl status apache2" Commented Jul 8, 2021 at 9:08

1 Answer 1

0

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

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.