1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How do I find absolute path to CGI-BIN?

Discussion in 'PHP & Perl' started by fun4uoc, Nov 19, 2008.

  1. fun4uoc

    fun4uoc Jr. VIP Jr. VIP Premium Member

    Joined:
    Dec 25, 2007
    Messages:
    1,199
    Likes Received:
    1,041
    Location:
    ☆ ♔ ☆ ♔ ☆ ♔ ☆
    This is driving me crazy and google revealed nothing. How do I find the absolute path to the cgi-bin via ssh? I have a VPS with root access and have a script that requires I know the absolute path. Any help is appreciated.
     
  2. Grizzy

    Grizzy Senior Member

    Joined:
    Nov 11, 2008
    Messages:
    919
    Likes Received:
    999
    If your running a linux or unix os you could try typing 'locate /cgi-bin/' in the command line and see what you get as output. If it comes back with nothing at all type 'updatedb' and then try the locate command again.
     
    • Thanks Thanks x 1
  3. fun4uoc

    fun4uoc Jr. VIP Jr. VIP Premium Member

    Joined:
    Dec 25, 2007
    Messages:
    1,199
    Likes Received:
    1,041
    Location:
    ☆ ♔ ☆ ♔ ☆ ♔ ☆
    Thanks, it worked after the dbupdate.