Results 1 to 5 of 5

Thread: Problem to install PHP script .I need HELP

  1. #1
    Join Date
    Jan 2009
    Posts
    6

    Question Problem to install PHP script .I need HELP

    Hello
    I have problem to install PHP script

    When I Had cpanel hosting I had no problem to install any PHP
    now I moved my website to directadmin and lot of problems to install any scripts
    .I am trying to install my

    Web directory

    Was working in cpanel host

    http://enomal.com/

    When I follow my install link is like this
    http://enomal.com:2222/CMD_FILE_MANA...tall/index.php
    is not finding root to installer

    In Cpanel my link was
    http://enomal.com/install/index.php

    And no problem I could run install process
    any IDEA to fix this
    Last edited by semco; 01-09-2009 at 09:13 PM.

  2. #2
    Join Date
    Jun 2003
    Location
    California
    Posts
    26,119
    Where did you install the installer (what is the complete path of the installer files)?

    Note that I had to rename your thread (PHP is not BHP) so people could find it and understand what it's about) and move it; it's really a user issue.

    Jeff
    +1 951 643-5345
    Third-Party DirectAdmin administration and support
    Dedicated Servers, Dedicated Reseller Accounts
    NoBaloney Internet Services div. Qnito Incorporated
    848 North Rainbow Blvd., Suite #3789
    Las Vegas, NV 89107-1103

  3. #3
    Join Date
    Jan 2009
    Posts
    6

    Question

    I installed in public_htm/install folder/install index.php

    instead installer I got file ?

    @package PHPLinkDirectory # @version 3.3.0 # ################################################################################ */ require_once '../include/config.php'; require_once 'include/version.php'; require_once 'include/functions.php'; require_once 'install/config.php'; require_once 'libs/intsmarty/intsmarty.class.php'; require_once 'libs/smarty/SmartyValidate.class.php'; require_once 'libs/adodb/adodb.inc.php'; //Detect web-server software define ('IS_APACHE', ( strstr($_SERVER['SERVER_SOFTWARE'], 'Apache') || strstr($_SERVER['SERVER_SOFTWARE'], 'LiteSpeed') ) ? 1 : 0); define ('IS_IIS' , strstr ($_SERVER['SERVER_SOFTWARE'], 'Microsoft-IIS') ? 1 : 0); $fn = INSTALL_PATH.'temp/templates'; if (!is_writable ($fn)) @ chmod ($fn, 0777); if (!is_writable ($fn)) { exit ("The installer cannot start!\n
    \n Please make sure that the folder ".$fn." is writeable by the user the webserver runs under."); } //Create dummy variable to test if session variables are supported session_start(); $_SESSION['sessionTest'] = 1; session_write_close(); session_start(); $step = (!empty ($_REQUEST['step']) && preg_match ('`^[\d]+$`', $_REQUEST['step']) ? intval ($_REQUEST['step']) : 1); $step = ($step < 1 || $step > 6 ? 1 : $step); //Do not allow more/less steps than default $language = (!empty ($_SESSION['language']) ? $_SESSION['language'] : 'en'); $clear_all = 0; //Determine core templates folder $core_tpl = (defined ('CORE_TEMPLATES') && CORE_TEMPLATES != '' ? CORE_TEMPLATES : 'Core'); if (!is_dir ('../templates/'.$core_tpl) || !is_dir ('../templates/'.$core_tpl.'/install')) exit ( "The installer cannot find it's template files!\n
    Please make sure that the folders templates/{$core_tpl}/ and templates/{$core_tpl}/install/ are available and readable by the user the webserver runs under."); $tpl = new IntSmarty($language); $tpl->template_dir = '../templates/'.$core_tpl; $tpl->compile_dir = '../temp/templates'; $tpl->cache_dir = '../temp/cache'; $tpl->compile_check = false; $path = request_uri(); $path_parts = pathinfo ($path); $path_parts['dirname'] = preg_replace ('`/install[\.]*`i', '', $path_parts['dirname']); define ('DOC_ROOT', $path_parts['dirname']); define ('INSTALL_ROOT', DOC_ROOT.'/install'); define ('TEMPLATE_PATH' , 'templates/admin'); define ('FULL_TEMPLATE_PATH', DOC_ROOT.'/templates/admin'); if (!$_SESSION['nologin'] && !isset ($_SESSION['phpld']['adminpanel']['id']) && defined ('DB_DRIVER') && defined ('DB_HOST')) { $db = ADONewConnection(DB_DRIVER); if($db->Connect(DB_HOST, DB_USER, DB_PASSWORD, DB_NAME)) { $check = $db->GetOne("SELECT COUNT(*) FROM `{$tables['user']['name']}` WHERE `LEVEL` = '1' AND `ACTIVE` = '1'"); if (!empty ($check)) { $_SESSION['return'] = DOC_ROOT.'/install/index.php'; http_redirect(DOC_ROOT.'/admin/login.php'); } else $_SESSION['nologin'] = true; } } else $_SESSION['nologin'] = true; //Assign fatal error tracker $fatal = 0; switch ($step) { //SELECT LANGUAGE case 1 : $tpl->assign('languages', select_lang()); $tpl->assign('btn_next', 1); $tpl->assign('title', _L('Select Language')); if (empty ($_POST['submit'])) { //Clear the entire template cache $tpl->clear_all_cache(); //Clear all compiled template files $tpl->clear_compiled_tpl(); } elseif (!empty ($_POST['submit']) && !empty ($_POST['language'])) { //Store language preferences $_SESSION['language'] = (!empty ($_POST['language']) ? $_POST['language'] : 'en'); //Redirect to next step $step++; http_redirect(INSTALL_ROOT.'/index.php?step='.$step); } $tpl->assign($_POST); break; //CHECK REQUIREMENTS case 2 : //Check requirements $requirements = check_requirements(); //Check for important requirements foreach ($requirements as $key => $req) { if (isset ($req['fatal']) && $req['fatal']) { //Found at least one fatal error $fatal = 1; } } $tpl->assign('req', $requirements); if ($fatal != 1) { $tpl->assign('btn_next', 1); } $tpl->assign('btn_back', 1); $tpl->assign('fatal', $fatal); $tpl->assign('title', _L('Welcome')); if (!empty ($_POST['submit'])) { $step++; http_redirect(INSTALL_ROOT.'/index.php?step='.$step); } elseif (!empty ($_POST['back'])) { $step--; http_redirect(INSTALL_ROOT.'/index.php?step='.$step); } break; //INSTALL/UPDATE DATABASE & CONFIGURATION case 3 : //This step needs more resources //Try increase them tweak_memory_limit(64);//64Mb memory tweak_time_limit(450);//7.5 minutes $tpl->assign('db_drivers', $db_drivers); $tpl->assign('btn_next', 1); $tpl->assign('btn_back', 1); $tpl->assignLang('title', _L('Database Settings')); if (empty ($_POST['submit']) && empty ($_POST['back'])) { $_SESSION['values'] = array ('db_driver' => 'mysql'); $_SESSION['values']['db_driver'] = 'mysql'; $_SESSION['values']['db_host'] = (defined ('DB_HOST') ? DB_HOST : ''); $_SESSION['values']['db_name'] = (defined ('DB_NAME') ? DB_NAME : ''); $_SESSION['values']['db_user'] = (defined ('DB_USER') ? DB_USER : ''); $_SESSION['values']['db_password'] = (defined ('DB_PASSWORD') ? DB_PASSWORD : ''); SmartyValidate :: connect($tpl, true); SmartyValidate :: register_form('install', true); SmartyValidate :: register_validator('v_db_host' , 'db_host' , 'notEmpty' , false, false, 'trim', 'install'); SmartyValidate :: register_validator('v_db_name' , 'db_name' , 'notEmpty' , false, false, 'trim', 'install'); SmartyValidate :: register_validator('v_db_user' , 'db_user' , 'notEmpty' , false, false, 'trim', 'install'); SmartyValidate :: register_validator('v_db_password', 'db_password', 'dummyValid', true , false, 'trim', 'install'); } elseif (!empty ($_POST['submit'])) { SmartyValidate :: connect($tpl); if (SmartyValidate :: is_valid($_POST, 'install')) { $db_details = array (); $db_details['db_driver'] = 'mysql'; $db_details['db_host'] = (!empty ($_POST['db_host']) ? $_POST['db_host'] : ''); $db_details['db_name'] = (!empty ($_POST['db_name']) ?

    I copy some of it ,for you to see

    In Cpanel i got straight link to installer
    and look like this
    http://enomal.com/install/index.php
    in Your panel link look like this
    http://enomal.com:2222/CMD_FILE_MANA...tall/index.php
    Click oon link you will see the path
    that confuse everything ,
    my website is use as reseller account run tow panels
    user and reseller

    Thanks
    Why my post is removed from
    General Technical Discussion & Troubleshooting directory?
    Last edited by semco; 01-10-2009 at 12:44 AM.

  4. #4
    Join Date
    Jan 2009
    Posts
    6

    New things happend

    Hello
    something new
    If I change permission to 777

    the message is like this

    Please make sure that the folders templates/Core/ and templates/Core/install/ are available and readable by the user the webserver runs under.

    If I change permission to 755

    The installer cannot start!

    Please make sure that the folder /home/cemco18/domains/enomal.com/public_html
    /temp/templates is writeable by the user the webserver runs under.

    I follow install instruction and

    permission for files are 777

    Any help ? any one? make me smile again
    Last edited by semco; 01-10-2009 at 12:51 AM.

  5. #5
    Join Date
    Mar 2005
    Posts
    5,283
    In Cpanel i got straight link to installer
    and look like this
    http://enomal.com/install/index.php
    in Your panel link look like this
    http://enomal.com:2222/CMD_FILE_MANA...tall/index.php
    Why are you trying to run the install program from the File Manager? That is probably the problem. You need to run the install program from http://enomal.com/install/index.php

    Right now you have a permissions problem.
    Floyd Morrissette Little Creek Hosting
    Web Hosting Solutions. Virtual Private Servers
    DirectAdmin Administration and Support
    Our focus is on quality customer support

Similar Threads

  1. Horde Webmail Edition install script
    By fusionictnl in forum How-To Guides
    Replies: 38
    Last Post: 04-20-2015, 12:12 PM
  2. Ubuntu (32 and 64 bit) DA install script rewrite
    By sfxdana in forum Operating System (OS) Related Discussion
    Replies: 2
    Last Post: 03-19-2009, 11:35 AM
  3. AWStats 6.1 - easy install/remove script here.
    By Miky in forum How-To Guides
    Replies: 43
    Last Post: 07-01-2008, 11:22 AM
  4. New Install Script
    By hostanet in forum FreeBSD 4.x
    Replies: 1
    Last Post: 09-24-2003, 04:06 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •