Forum Moderators: phranque

Message Too Old, No Replies

apache configuration for cgi scripts

         

apstha14

1:50 am on Jul 27, 2006 (gmt 0)

10+ Year Member



hi ppl

i am trying to learn cgi programming.i tried to to extract the contents of a simple form using perl.i was ok with the perl part ....i found modules to do that...but apache is the one giving problems.when i submit the form it says that it cannot find the cgi-bin directory and my cgi file.i have enabled the ScriptAlias in the httpd.conf file and chmod"dded" 755 my cgi-bin directory also.i am at sea what to do next.i hope you ppl will provide useful insight....

physics

1:58 am on Jul 27, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld.com apstha14!

Did you restart apache (or reboot)?

Also, you could post the relevant parts of your httpd.conf file here (with any specific IPs or domain names edited out).

apstha14

3:12 am on Jul 27, 2006 (gmt 0)

10+ Year Member



thanks for the quick reply and welcome Physics.

yes...i restarted apache but it still doesn't work.
i haven't tampered much with the httpd.conf.the ScriptAlias was commented at first;i decommented it and i added the ExecCGI options.that's it!

ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"

#
# "/var/www/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "/var/www/cgi-bin">
Options ExecCGI
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>