Operating Systems > Linux and UNIX

chatroom/CGI/HTML Q's

<< < (3/4) > >>

Master of Reality:
whenever i tried to set-up the CGI for tha chatroom, when i clicked on it from teh browser, it would show the actual cgi file and not run it.

voidmain:
There is a line you have to uncomment  in the httpd.conf called:

AddHandler cgi-script .cgi

And make sure your Perl scripts end in *.cgi.

Master of Reality:
dont i also have to change the ScriptAlias stuff to change the location of my cgi-bin.

Master of Reality:
I made the directory '/var/www/html/cgi-bin' it has the same permissions as /var/www/cgi-bin but my browser says it cant fins the directory or file when trying to access bluechat.cgi which is in the cgi-bin.

voidmain:
I'm not sure why you have a /var/www/html/cgi-bin when you have a /var/www/cgi-bin.  What I normally do is make it so I can run CGI programs from anywhere under my web root.  You can do this in the section in the httpd.conf where the /var/www/html directory is defined.  There should be an "Options" tag.  I usually set it to:

Options All MultiViews ExecCGI

I also set:

AllowOverride All

which will allow you to use ".htaccess" files etc.  You should then be able to put CGI files anywhere under your web root and they will be executed.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version