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.

Question

Discussion in 'General Discussion' started by Kolpakov, Aug 15, 2006.

  1. Kolpakov

    Kolpakov Member

    Joined:
    Aug 15, 2006
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Hello! There are certain scripts on PHP. How it is possible to deduce on them the link from cPanel and where it is necessary to place scripts for this purpose?
    Scripts should be accessible to the user.

    Thanks.
     
  2. Kolpakov

    Kolpakov Member

    Joined:
    Aug 15, 2006
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Для русских:
    Есть скрипты на php. Как можно поставить на них ссылку из cPanel и куда для этого нужно залить скрипты? Скрипты должны быть доступны пользователю.

    Спасибо.
     
  3. webignition

    webignition Well-Known Member

    Joined:
    Jan 22, 2005
    Messages:
    1,880
    Likes Received:
    0
    Trophy Points:
    36
    I'm not really sure what you mean, so a little clarification might be nice.

    However, placing scripts in /usr/local/cpanel/base/3rdparty will make them available to all users via https://hostname.example.com:2083/3rdparty/. This might be a good option as it keeps these scripts separate from cPanel's bits and pieces.
     
  4. Kolpakov

    Kolpakov Member

    Joined:
    Aug 15, 2006
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    ОК, you have answered one question.

    The second question:
    How to deduce the link to scripts to the cPanel main page.
     
  5. webignition

    webignition Well-Known Member

    Joined:
    Jan 22, 2005
    Messages:
    1,880
    Likes Received:
    0
    Trophy Points:
    36
    Can you give an example?
     
  6. Kolpakov

    Kolpakov Member

    Joined:
    Aug 15, 2006
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Example:
    There is a script: <? php echo " Hello World!" ?>
    The name of a file test.php

    I place him in /usr/local/cpanel/base/3rdparty
    Further it is necessary to put the link from the main page cPanel. For example, after link to Fantastico.

    And necessary to display "Hello World" in the current template cPanel.
    How it make?
     
  7. webignition

    webignition Well-Known Member

    Joined:
    Jan 22, 2005
    Messages:
    1,880
    Likes Received:
    0
    Trophy Points:
    36
    /usr/local/cpanel/base/3rdparty/test.php can be browsed to via https://hostname.example.com:2083/3rdparty/test.php.

    As for adding a link such as is present for Fantastico, take a look at /usr/local/cpanel/base/frontend/<theme name>/cells, for example /usr/local/cpanel/base/frontend/x2/cells. If you already have an addon such as Fantastico, you should be able to see what needs to be done.
     
  8. Kolpakov

    Kolpakov Member

    Joined:
    Aug 15, 2006
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Many thanks :)
     
Loading...

Share This Page