Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

perl cgi-bin folder missing

by ansh batra (Friar)
on Jun 17, 2013 at 09:17 UTC ( #1039309=perlquestion: print w/replies, xml ) Need Help??
ansh batra has asked for the wisdom of the Perl Monks concerning the following question:

hi monks

i am new to perl cgi and facing problem in running helloworld program.
i have got apache installed on my machine and cgi-bin folder and httpd.conf file are missing .
please let me know how can i run my cgi script.
i am using windows machine and apache is installed on D drive whereas perl is on C drive. i dont have admin rights on C drive

Replies are listed 'Best First'.
Re: perl cgi-bin folder missing
by domje (Novice) on Jun 17, 2013 at 09:32 UTC
    Howdy! First of all, have a read at on the Apache documentation here: The default installation should have a cgi-bin located _somewhere_ that makes sense. Double check that. If all else fails you can force it (if Apache is loading the module, which I'd reckon it is) with an htaccess directive, though that is not very wise. Under your document root make a cgi-bin folder, then create a file called .htaccess and drop this in:
    Options +ExecCGI SetHandler cgi-script
    This tells Apache that anything in this directory is a cgi-script. Alternatively you can specify only certain files to run as cgi (which is usually better) as such:
    SetHandler cgi-script .cgi .pl
    and so on...HTH. --dom
Re: perl cgi-bin folder missing
by Anonymous Monk on Jun 17, 2013 at 09:28 UTC
Re: perl cgi-bin folder missing
by space_monk (Chaplain) on Jun 17, 2013 at 14:02 UTC

    I'm very surprised that you are missing an httpd.conf and a cgi-bin directory as these should be created by a standard Apache install on Windows. Did you build Apache yourself, or did you get hold of a binary such as WampServer? What version of Apache is it?

    If you spot any bugs in my solutions, it's because I've deliberately left them in as an exercise for the reader! :-)
Re: perl cgi-bin folder missing
by lee_crites (Scribe) on Jun 17, 2013 at 17:05 UTC



    My first thoughts are two possibilities for the "problem."

    1. Apache was not completely/properly installed. Perhaps there was an error in the installation process.
    2. Apache was installed properly, but the location of the conf file(s) and such are different than the documentation you are looking at.

    Which OS/distro are you working with? That makes a lot of difference. I have clients on a variety of distros, and can tell you from first hand experience, they are not always set up the same.

    Lee Crites

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1039309]
Approved by marto
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2018-11-16 03:53 GMT
Find Nodes?
    Voting Booth?
    My code is most likely broken because:

    Results (193 votes). Check out past polls.

    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!