Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: where to place the .pl fro cgi script

by jhourcle (Prior)
on Oct 25, 2006 at 12:02 UTC ( #580553=note: print w/ replies, xml ) Need Help??


in reply to Re: where to place the .pl fro cgi script
in thread where to place the .pl fro cgi script

I've managed/supported quite a few servers over the years (dating back to Netscape Server 2, and AOL's NaviServer), and for this sort of question, it's best not to assume anything about their server configuration.

The system may have all items ending in '.cgi' mapped to mod_cgi in apache, which allows them to place the file anywhere that the webserver can see it, provided it has the correct extension and permissions.

If they're using CGIwrap (which I suggest for multi-user systems with cgi access), then the cgi-bin directory should not be in public_html, as it may allow folks to read your scripts if you don't have the permissions set correctly. (and in this case, set correctly is not 0755, it's 0500).

I would assume that whatever server is either using virtual hosts, or is not multi-use, based on the URL that was given, but know that there are many, many different configurations for such things, and so not to guess the directories. (eg, MacOS X places CGIs in /Library/Webserver/CGI-Executables, even though it maps to http://host/cgi-bin/

...

So, my suggestion would be -- if you're using an ISP or hosting service -- contact them. They're the only ones who would know the configuration of their system. If you're hosting your own system, we'll need more information -- is it a default install? If so, what OS?


Comment on Re^2: where to place the .pl fro cgi script

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://580553]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (13)
As of 2014-08-28 14:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (263 votes), past polls