I'm having trouble running CGI scripts on my Apache server. I want to
install and run a cgi counter, but I couldn't get it to work. So, in order
to do some testing, I'm loading a guestbook.html file that just allows you
to enter your name, email address and a message. The file then calls a
guestbook.cgi file which parses the data entered into the form and sends it
to me in an e-mail.
Whenever the cgi script is called, I get the following error:
Forbidden:
You don't have permission to access /var/www/cgi-bin/guestbook.cgi
on this server.
In my browser's URL window I have:
http://www.myservername.com/var/www/cgi-bin/guestbook.cgi so it's looking
for the script in the directory in which it is located.
I've used chmod to set the permissions to 755 on the cgi-bin directory.
What am I missing?
I'm an Apache newbie, so please consider that when you respond.
Thanks in advance for any help that you provide.
Best regards,
Bill