Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

perl cgi-bin folder missing

by ansh batra (Friar)
on Jun 17, 2013 at 09:17 UTC ( [id://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: http://httpd.apache.org/docs/current/howto/cgi.html 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 mod_cgi.so 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

    missing???

    Ansh;

    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
    lee@xpeerant.com

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2024-04-20 01:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found