Results 1 to 7 of 7
  1. #1
    5 Star Lounger
    Join Date
    May 2001
    Location
    Allen, Texas, USA
    Posts
    727
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Where should the cgi-bin go?

    have signed up for a new hosting company. Our cgi-bin used to be behind the public directory. The new hosting company said that it should be in the public_html area.

    Does it matter? Pros cons?

    --KZ

  2. #2
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Where should the cgi-bin go?

    I don't know what a public_html area is. <img src=/S/laugh.gif border=0 alt=laugh width=15 height=15> It makes me think that those accessing the site must get directed to a "virtual root folder" that matches public_html or are you saying the virtual root is /public ?? I'm not sure it really matters, but it does sound as though the web server might have its own idiosyncracies. You could just try it both ways and see what happens...

  3. #3
    2 Star Lounger
    Join Date
    Aug 2004
    Location
    Withyham, Sussex, England
    Posts
    121
    Thanks
    2
    Thanked 1 Time in 1 Post

    Re: Where should the cgi-bin go?

    If this is a shared server from your host you will probably find that the normal cgi-bin will not work due to restrictive server permissions, you wil probably have the option to create a scgi-bin and this is generally in the public_html area. I am assuming this is a linux server.

  4. #4
    5 Star Lounger
    Join Date
    May 2001
    Location
    Allen, Texas, USA
    Posts
    727
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Re: Where should the cgi-bin go?

    The old server had the cgi-bin behind the root dir. The new one is in the public area. That does work fine . Just curious as to any pros/cons. From whast I understand, it's better to have it in the public area.

    --KZ

  5. #5
    2 Star Lounger
    Join Date
    Aug 2004
    Location
    Withyham, Sussex, England
    Posts
    121
    Thanks
    2
    Thanked 1 Time in 1 Post

    Re: Where should the cgi-bin go?

    Anything that is outside of the public_html area is inherantly safer, people or scripts browsing your website cant access anything outside the public area (in theory) only calls from within the website should be able to access folders outside the public area.

  6. #6
    5 Star Lounger
    Join Date
    May 2001
    Location
    Allen, Texas, USA
    Posts
    727
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Re: Where should the cgi-bin go?

    I agree with that from what I've been told, but why would most hosting companies make the cgi-bin in the public area?

    --KZ

  7. #7
    2 Star Lounger
    Join Date
    Aug 2004
    Location
    Withyham, Sussex, England
    Posts
    121
    Thanks
    2
    Thanked 1 Time in 1 Post

    Re: Where should the cgi-bin go?

    If your hosting company is typical, then the cgi-bin you have is in fact just an alias and you will not be able to run scripts that require root permissions on the server, this way the scripts that run cant alter the server configuration. This is what they care about, they dont mind where you run your scripts for your website. The scripts that run in your cgi-bin will require the permission of "user" which is the name you login to the server with and in theory nobody can run a malicious script if they dont know your user name and password.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •