Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Location and contents of cgi-bin

Discussion in 'General Discussion' started by melsworld, Apr 7, 2008.

  1. melsworld

    melsworld Active Member

    Joined:
    Apr 7, 2008
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    51
    Hi everyone,

    Just moving over from Plesk to cPanel and have full root control of the server

    on my Plesk server my documents are located in httpdocs and the cgi-bin folder is outside of httpdocs in /cgi-bin

    I have successfully moved over several sites to cPanel server using the 'copy an account from another server' function but noticed that the cgi files have been placed in 3 locations

    /cgi-bin which is where I would usually expect to find them
    /www/cgi-bin
    /public_html/cgi-bin

    So I am a little bit confused with this and have the following questions

    Q1. Should the cgi scripts be in /www/cgi-bin and /public_html/cgi-bin

    Q2. Depending on the answer to question 1 - when setting up a site manually what folder should documents be ftp'd into likewise what cgi-bin should scripts be ftp'd into

    Thanks - Mel
     
  2. LiNUxG0d

    LiNUxG0d Well-Known Member

    Joined:
    Jun 25, 2003
    Messages:
    206
    Likes Received:
    1
    Trophy Points:
    168
    Location:
    Gatineau, Quebec, Canada
    Hey Mel,

    I think it's safe to say on cPanel architecture, that the default cgi-bin/ is in the public_html/ folder... or:

    /home/user/public_html/cgi-bin/

    The folder "www" is actually a symlink to the public_html/ folder unless it was removed and replaced, which by default it isn't. ;)

    I've never seen a valid /home/user/cgi-bin/ work though as the web server is - by default - issuing the above cg-bin location for all cgi/perl scripts.

    Hope this helps, glad to see you are using cPanel! :)

    Regards,
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. melsworld

    melsworld Active Member

    Joined:
    Apr 7, 2008
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    51

    Thanks for your reply - now I can stop worrying about it and as for cPanel - wish I had moved over ages ago:D

    Mel
     
  4. LiNUxG0d

    LiNUxG0d Well-Known Member

    Joined:
    Jun 25, 2003
    Messages:
    206
    Likes Received:
    1
    Trophy Points:
    168
    Location:
    Gatineau, Quebec, Canada
    Hey Mel,

    I always wondered how Plesk holds up to cPanel... :)

    Glad to help, let us know if you need any more info to quash the learning curve!

    :D
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. melsworld

    melsworld Active Member

    Joined:
    Apr 7, 2008
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    51
    I actually enjoy going into WMH - did I really say that I must have spent too many hours in front of my PC

    Thanks for the learning curve offer - no doubt I will have more questions along the way

    Mel:)
     
  6. LiNUxG0d

    LiNUxG0d Well-Known Member

    Joined:
    Jun 25, 2003
    Messages:
    206
    Likes Received:
    1
    Trophy Points:
    168
    Location:
    Gatineau, Quebec, Canada
    Awesome Mel!

    Godspeed! :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice