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.

PHP Internal not working properly?

Discussion in 'General Discussion' started by sahostking, Sep 24, 2014.

  1. sahostking

    sahostking Well-Known Member

    Joined:
    May 15, 2012
    Messages:
    300
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Cape Town, South Africa
    cPanel Access Level:
    Root Administrator
    Hi all,

    Any ideas on this? Ran easy apache with 2.4 and php 5.4. How to fix this?

    [/usr/local/cpanel/3rdparty/bin]# /usr/local/cpanel/3rdparty/bin/php -v


    Failed loading /usr/local/cpanel/3rdparty/php/54/ioncube/ioncube_loader_lin_5.4.so: /usr/local/cpanel/3rdparty/php/54/ioncube/ioncube_loader_lin_5.4.so: undefined symbol: zend_new_interned_string
    PHP 5.2.17 (cgi) (built: Sep 26 2012 09:16:20)
    Copyright (c) 1997-2010 The PHP Group
    Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,738
    Likes Received:
    661
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  3. sahostking

    sahostking Well-Known Member

    Joined:
    May 15, 2012
    Messages:
    300
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Cape Town, South Africa
    cPanel Access Level:
    Root Administrator
    root@lin01 [~]# /usr/local/cpanel/cpanel -V
    11.44.1 (build 18)
    root@lin01 [~]# ls -la /usr/local/cpanel/3rdparty/bin/php
    -rwxr-xr-x 3 root root 20382927 Sep 26 2012 /usr/local/cpanel/3rdparty/bin/php*
    root@lin01 [~]#
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,738
    Likes Received:
    661
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    That file should be a symbolic link by default. EX:

    Code:
     [~]# ls -la /usr/local/cpanel/3rdparty/bin/php
    lrwxrwxrwx 1 root root 41 May 19 11:52 /usr/local/cpanel/3rdparty/bin/php -> /usr/local/cpanel/3rdparty/php/54/bin/php*
    Does "/usr/local/cpanel/3rdparty/php/54/bin/php" exist on your system? Please also see:

    PHP Binary - cPanel Documentation

    Thank you.
     
  5. sahostking

    sahostking Well-Known Member

    Joined:
    May 15, 2012
    Messages:
    300
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Cape Town, South Africa
    cPanel Access Level:
    Root Administrator
    Yip


    root@lin01 [~]# /usr/local/cpanel/3rdparty/php/54/bin/php -v
    PHP 5.4.23 (cli) (built: Mar 31 2014 15:38:57)
    Copyright (c) 1997-2013 The PHP Group
    Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
    with the ionCube PHP Loader v4.5.2, Copyright (c) 2002-2014, by ionCube Ltd.
     
  6. sahostking

    sahostking Well-Known Member

    Joined:
    May 15, 2012
    Messages:
    300
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Cape Town, South Africa
    cPanel Access Level:
    Root Administrator
    ok I deleted those 2 files of php and php-cgi as they were giving me 5.2.17 instead of 5.4 and made them both symbolic links pointing to :
    /usr/local/cpanel/3rdparty/php/54/bin/php
    /usr/local/cpanel/3rdparty/php/54/bin/php-cgi

    Hope this is correct :)
     
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,738
    Likes Received:
    661
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page