Hell0,
When I was trying to execute cgi script on apache, I got the contents displayed instead of the file being executed.
Hence I added these lines in the httpd.conf file
<Directory /usr/local/apache/htdocs/somedir>
Options +ExecCGI
</Directory>
The above directive tells Apache to permit the execution of CGI files.
We will also need to tell the server what files are CGI files. The
following AddHandler directive tells the server to treat all files with
the cgi or pl extension as CGI programs:
AddHandler cgi-script cgi pl
However when I restart apache and try executing the cgi script...I get an error which says...
Access forbidden!
You don't have permission to access the requested object. It is either read-protected or not readable by the server.
If you think this is a server error, please contact the webmaster
Error 403
How do I execute CGI Scripts using APACHE?. Is there any better way to do it?
How do I solve the problem?
Thanks!
Karthik.
When I was trying to execute cgi script on apache, I got the contents displayed instead of the file being executed.
Hence I added these lines in the httpd.conf file
<Directory /usr/local/apache/htdocs/somedir>
Options +ExecCGI
</Directory>
The above directive tells Apache to permit the execution of CGI files.
We will also need to tell the server what files are CGI files. The
following AddHandler directive tells the server to treat all files with
the cgi or pl extension as CGI programs:
AddHandler cgi-script cgi pl
However when I restart apache and try executing the cgi script...I get an error which says...
Access forbidden!
You don't have permission to access the requested object. It is either read-protected or not readable by the server.
If you think this is a server error, please contact the webmaster
Error 403
How do I execute CGI Scripts using APACHE?. Is there any better way to do it?
How do I solve the problem?
Thanks!
Karthik.