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:
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.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 */
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.



LinkBack URL
About LinkBacks
Reply With Quote




