Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

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

by davorg (Chancellor)
on Oct 25, 2006 at 09:33 UTC ( #580522=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

but the precise answer to your question is that hello.pl must be placed in the directory cgi-bin

Er... no. The precise answer is that hello.pl must be placed in whatever directory the configuration of the web server has mapped to the URL /cgi-bin/. This is often a directory called cgi-bin but without examining the web server configuration files you can't be 100% sure. It's possible that it's not mapped onto any directory at all.

Typically this will be found in the public_html directory

Well, only on servers that have user directories enabled. And even then only on ones that allow individual users to have cgi-bin directories. That's pretty rare in my experience.

--
<http://dave.org.uk>

"The first rule of Perl club is you do not talk about Perl club."
-- Chip Salzenberg


Comment on Re^2: where to place the .pl for cgi script
Re^3: where to place the .pl fro cgi script
by jonnyfolk (Vicar) on Oct 25, 2006 at 10:11 UTC

    davorg, you have to get out more. If you go to any of the millions of web hosting sites on the internet you will have trouble finding one that doesn't provide a cgi-bin.

    I had the feeling the the OP was looking for a pointer and if my reply helped then that's good and if not tant pis!

      Having spent five years supporting a set of CGI programs that non-programmers try to install on a wide range of web hosting packages, I'm well aware of how common the standard configuration is. I'm also aware of a significant proportion of web hosting companies who seem to delight in giving customers the weirdest configurations possible.

      Far too often I've confused someone by giving them the standard answer which didn't apply in their circumstances, so I've learnt that the only reasonable answer to give is "you need to ask the person who configured your web server". Your experience obviously differs from mine.

      --
      <http://dave.org.uk>

      "The first rule of Perl club is you do not talk about Perl club."
      -- Chip Salzenberg

        My comment was purely about the idea that it is rare to find cgi-bin for individual users.

        I respect your knowledge and experience, and the help that you give to others on these boards

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2014-12-26 01:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (163 votes), past polls