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.

Unable to Install a Fantastico script to an Addon Domain

Discussion in 'General Discussion' started by acenetryan, Jan 24, 2008.

  1. acenetryan

    acenetryan Well-Known Member
    PartnerNOC

    Joined:
    Aug 21, 2005
    Messages:
    197
    Likes Received:
    1
    Trophy Points:
    18
    We have a client who is unable to install a script to an addon domain. I have not yet checked if this case is true for all addon domains or just this user, but I do know the error does not present itself when installed on a main domain.

    Upon trying to install a script through Fantastico, the following error is displayed in the cPanel error log:

    sh: ot: No such file or directory

    Additionally, we see the following error on the 3rd step of the installation process:

    Install SMF (3/3)

    1) File: ot /home/USER/public_html/ADDON/test/Settings.php [ERROR! ]
    2) File: ot /home/USER/public_html/ADDON/test/data.sql [ERROR! ]

    You can see that this example is during an SMF installation, though I've verified it happens with other scripts. I can see from the HTML source that the hidden variable userrootpath and scriptpath are already passing the incorrect value "ot /home/..." from autoinstallcheck.php to autoinstallsmfdo.php. I traced through the code of autoinstallcheck.php:

    Code:
    $userroot = "";
    $scriptpath = "";
    $installing_in_root = 0;
    $thiserror = "";
    $no_more = 0;
    //
    $enc_cpanel_domain = "<cpanel print="DOMAIN">";
    $enc_cpanel_homedir = "<cpanel print="$homedir">";
    $extracted_path = "";
    
    /*  COMMENT NUMBER ONE */
    if (is_file($fantasticopath.'/includes/enc_check.inc.php'))
    {
        include($fantasticopath.'/includes/enc_check.inc.php');
    }
    /* COMMENT NUMBER TWO */
    
    At COMMENT NUMBER ONE's point, the variable is still empty. At COMMENT NUMBER TWO's point $scriptpath now contains the faulty "ot /home/..." value.

    I'm so close to the answer, I can taste it!

    pico /usr/local/cpanel/3rdparty/fantastico//includes/enc_check.inc.php

    BOO! Zend Encoded!

    So this long story boils down to a simple question:

    From where does enc_check.inc.php pull the values it uses to populate $userroot and $scriptpath?

    I have checked the httpd.conf and the user's /var/cpanel/users/ file.
     
    #1 acenetryan, Jan 24, 2008
    Last edited: Jan 24, 2008
  2. acenetryan

    acenetryan Well-Known Member
    PartnerNOC

    Joined:
    Aug 21, 2005
    Messages:
    197
    Likes Received:
    1
    Trophy Points:
    18
    Ugh, disregard this. After all that, I neglected to notice that the included file resided in the 3rdparty/fantastico/includes/ directory, which is obviously a Netenberg-written script.

    Moving over to the netenberg forums...
     
    #2 acenetryan, Jan 24, 2008
    Last edited: Jan 24, 2008
Loading...

Share This Page