[Webinar] Streamline your web hosting managementRegister Today


Configure CGI for Apache

Posted on 1999-11-21
Medium Priority
Last Modified: 2013-12-23
                                 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

                                   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
Question by:mon1
1 Comment

Accepted Solution

kawin earned 20 total points
ID: 2340538
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.


or wherever your perl installed


Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to fix a SonicWall Gateway Anti-Virus firewall blocking automatic updates to apps like Windows, Adobe, Symantec, etc.
In this article I will be showing you how to subnet the easiest way possible for IPv4 (Internet Protocol version 4). This article does not cover IPv6. Keep in mind that subnetting requires lots of practice and time.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

613 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question