Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


problem after updating php version in kloxo
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

problem after updating php version in kloxo

I updated my php version in kloxo from version 5.2 to version 5.3 the update was successfully the problem is site that are developed in wordpress and jommla are down since their index is php. can you pls help?

«1

Comments

  • rokokrokok Member
    edited June 2016
  • noamannoaman Member

    @ktwala149 said:
    I updated my php version in kloxo from version 5.2 to version 5.3 the update was successfully the problem is site that are developed in wordpress and jommla are down since their index is php. can you pls help?

    wp and joomla core should nt be affected it should be the plugins... My first opinion

  • MadMad Member
    edited June 2016

    You should check if there were plugins/modules that require previous versions.
    In such case disable them temporarily and try again.

  • i disabled all plugins it didnt work here is the website url www.smartmarket.co.za

  • even the login page for cpanel crashed

  • ktwala149 said: I updated my php version in kloxo

    @ktwala149 said:
    even the login page for cpanel crashed

    So which are you using?

  • im using the ip address to access cpanel when i use cp.smartmarketmarket.co.za i can't access the cpanel

  • AlexanderMAlexanderM Member, Top Host, Host Rep
    edited June 2016

    Whats the output of php - v on the server? How did you update the PHP?

    You need to edit some Kloxo code so it better detects the PHP's version. Edit
    In /usr/local/lxlabs/kloxo/httpdocs/htmllib/lib/lib.php

    Change

    function find_php_version() { global $global_dontlogshell; $global_dontlogshell = true; $ret = lxshell_output("rpm", "-q", "php"); $ver = substr($ret, strlen("php-"), 3); $global_dontlogshell = false; return $ver; }

    to:

    function find_php_version() { global $global_dontlogshell; $global_dontlogshell = true; $ret = shell_exec('php -r \'echo phpversion();\' 2>nul'); $ver = substr($ret, 0, 3); $global_dontlogshell = false; return $ver; }

  • PHP 5.3.3 (cli) (built: Oct 31 2014 09:52:36)
    Copyright (c) 1997-2010 The PHP Group
    Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies

  • AlexanderMAlexanderM Member, Top Host, Host Rep

    @ktwala149 said:
    PHP 5.3.3 (cli) (built: Oct 31 2014 09:52:36)
    Copyright (c) 1997-2010 The PHP Group
    Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies

    Did you edit the file per my post?

  • try smartmarketmarket.co.za/cpanel

  • edited June 2016

    @AlexanderM said:
    Whats the output of php - v on the server? How did you update the PHP?

    You need to edit some Kloxo code so it better detects the PHP's version. Edit
    In /usr/local/lxlabs/kloxo/httpdocs/htmllib/lib/lib.php

    Change

    function find_php_version() { global $global_dontlogshell; $global_dontlogshell = true; $ret = lxshell_output("rpm", "-q", "php"); $ver = substr($ret, strlen("php-"), 3); $global_dontlogshell = false; return $ver; }

    to:

    function find_php_version() { global $global_dontlogshell; $global_dontlogshell = true; $ret = shell_exec('php -r \'echo phpversion();\' 2>nul'); $ver = substr($ret, 0, 3); $global_dontlogshell = false; return $ver; }

    Kloxo-MR using "php -v|grep 'PHP'|grep '(built:'|awk '{print $2}'" instead "rpm -q php" or "php -r 'echo phpversion();'".

    It's because 'phpversion()' not work in 'multiple php' model in Kloxo-MR.

  • I'm trying to edit that file the problem is after clicking ssh terminal i get this message a plugin is needed to display this content.how can i access this root usr/local/lxlabs/kloxo/httpdocs/htmllib/lib/lib.php?

  • which tool can i use?

  • File manager in Kloxo panel.

  • its empty

  • its only Maildir

  • winscp or filezilla, couple of 'em out there

  • AlexanderMAlexanderM Member, Top Host, Host Rep

    @ktwala149 said:
    I'm trying to edit that file the problem is after clicking ssh terminal i get this message a plugin is needed to display this content.how can i access this root usr/local/lxlabs/kloxo/httpdocs/htmllib/lib/lib.php?

    You're best to edit it in SSH with nano or VI

    Alexander

    Thanked by 1ktwala149
  • how do i install nano in kloxo

  • @ktwala149 said:
    how do i install nano in kloxo

    yum install nano -y

    Thanked by 1ktwala149
  • Loaded plugins: fastestmirror, protectbase, replace
    Loading mirror speeds from cached hostfile
    * addons: www.ftp.saix.net
    * base: www.ftp.saix.net
    * epel: ftp.nluug.nl
    * extras: www.ftp.saix.net
    * updates: centos.joinweb.co.il
    http://centos.alt.ru/repository/centos/5/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404: Not Found
    Trying other mirror.
    0 packages excluded due to repository protections
    Setting up Install Process
    Resolving Dependencies
    --> Running transaction check
    ---> Package nano.x86_64 0:1.3.12-1.1 set to be updated
    --> Finished Dependency Resolution

    Dependencies Resolved

    ================================================================================

    Package Arch Version Repository Size

    Installing:
    nano x86_64 1.3.12-1.1 base 482 k

    Transaction Summary

    Install 1 Package(s)
    Upgrade 0 Package(s)

    Total download size: 482 k
    Downloading Packages:
    Running rpm_check_debug
    Running Transaction Test
    Finished Transaction Test
    Transaction Test Succeeded
    Running Transaction

    Installing : nano 1/1

    Installed:
    nano.x86_64 0:1.3.12-1.1

    Complete

  • so how do i open it nano ?

  • sh: nano//usr/local/lxlabs/kloxo/httpdocs/htmllib/lib/lib.php: No such file or directory

  • Error opening terminal: unknown.

  • pls help me

  • Try: nano /usr/local/lxlabs/kloxo/httpdocs/htmllib/lib/lib.php

    There are many docs on the net on how to use nano. I suggest you get used to looking for basic things such as this.

  • RockIslander said: nano /usr/local/lxlabs/kloxo/httpdocs/htmllib/lib/lib.php

    when i try that i get thes message "Error opening terminal: unknown"
    "

  • @ktwala149 like I said use winscp/filezilla log in as root, search for files from there

  • edited June 2016

    @ktwala149 What are you using to SSH into the server?

Sign In or Register to comment.