Configure CGI for Apache

                                 i am working with UNIXWARE 2.0.1  
                                   recently i configured apache 1.3.1 for my server(web server) . It is working fine.. i installed Perl
                                   5.003 also . that also working fine..
                                   Now i written some simple scripts in perl . if i am running these scripts through browser, i am not
                                   getting the actual output. i am getting the full html code.

                                   where i want to keep thses cgi files....
                                   how to configure CGI for Apache server
                                   my access.conf file is like this
                                   <Directory /httpd/apache_1.3.1/htdocs>
                                   <Directory httpd/apache_1.3.1/cgi-bin>
                                   AllowOverride None
                                   Options None
                                   </Directory>

                                   also srm.conf
                                   ScriptAlias /cgi-bin/ httpd/apache_1.3.1/cgi-bin/
                                   AddHandler cgi-script .cgi

                                   any other configuration i have to made inorder to run my CGI..

                                   where i want to keep thses cgi files..... if i am keeping all my cgi files in  /httpd/apache!.3.1/cgi-bin
                                   directroy., how i can call these file..
                                   eg : http://nitpu.chd.nic.in/abc.cgi  , ie nitpu.chd.nic.in is my web server
mon1Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

kawinCommented:
Hi,
Your access.conf
<Directory httpd/apache_1.3.1/cgibin> is incorrect
it must be
<Directory /httpd/apache_1.3.1/cgibin>

then put your script file in that directory, change permission to 755

and don't forget to put header on your perl script.

#!/usr/bin/perl

or wherever your perl installed


0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Networking

From novice to tech pro — start learning today.