Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    cPanel Partner NOC cPanel Partner NOC Badge rking's Avatar
    Join Date
    Aug 2005
    Posts
    192

    Default Unable to Install a Fantastico script to an Addon Domain

    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.

  2. #2
    cPanel Partner NOC cPanel Partner NOC Badge rking's Avatar
    Join Date
    Aug 2005
    Posts
    192

    Default

    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...

Similar Threads & Tags
Similar threads

  1. Unable to add an addon domain
    By pecito in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 08-08-2008, 08:21 AM
  2. Unable to add an addon domain
    By todd222222 in forum New User Questions
    Replies: 3
    Last Post: 05-03-2008, 01:04 AM
  3. Addon Script Manager - how to install?
    By jdonoso in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 12-09-2006, 06:14 AM
  4. Addon Script no install in root dir?
    By silicon in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 03-06-2006, 01:40 PM
  5. Addon Domain Script
    By sparek-3 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 11-05-2004, 04:23 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube