The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Where to place cPanel CGI scripts?

Discussion in 'cPanel Developers' started by Edude, Apr 25, 2005.

  1. Edude

    Edude Member

    Joined:
    Mar 16, 2005
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello,

    I've been messing with Perl/CGI and was wondering where
    would I place my custom coded .cgi scripts for use within
    cPanel? In WHM it's /usr/local/cpanel/whostmgr/docroot/cgi.

    So far I've tryed placing some in /usr/local/cpanel/base and
    /usr/local/cpanel/base/frontend/theme/ but none of the scripts
    executed, or just printed the contents, so I assume you cannot run any there.

    Any ideas?

    Cheers,
    -Evan
     
  2. RAIS2

    RAIS2 Well-Known Member

    Joined:
    Jul 16, 2004
    Messages:
    186
    Likes Received:
    0
    Trophy Points:
    16
    Although I have not added to cpanel modules, but I think your looking for: /usr/local/cpanel/Cpanel

    I do beleive that where perl/cgi modules go.
     
  3. Edude

    Edude Member

    Joined:
    Mar 16, 2005
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Well I do not want to put in a cPanel module, I want to run a full
    perl/cgi document. But I do not know where to put it in order to execute
    it within cPanel.
     
  4. RAIS2

    RAIS2 Well-Known Member

    Joined:
    Jul 16, 2004
    Messages:
    186
    Likes Received:
    0
    Trophy Points:
    16
    Have you tried /usr/local/cpanel/cgi-sys ?

    Other than those directories, I am not sure where they would go as I mainly develop PHP.
     
  5. Edude

    Edude Member

    Joined:
    Mar 16, 2005
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    /usr/local/cpanel/cgi-sys is mainly for the apache/cpanel redirect scripts, and a repository for the various CGI Center scripts.


    I did find out that you can run cgi scripts from /usr/local/cpanel/base
    or http://www.domain.com:2082/script.cgi.

    Hope it helps someone else.

    Cheers,
    -Evan
     
Loading...

Share This Page