Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2017-11-08, 01:19:27

Author Topic: PHP 5.5+  (Read 1808 times)

0 Members and 1 Guest are viewing this topic.

Offline starbolt

  • Junior Member
  • *
  • Posts: 19
  • Karma: +0/-0
    • View Profile
PHP 5.5+
« on: 2016-02-06, 13:48:57 »
Hello,

I recently upgraded from Kloxo 6.5 to 7.0 and currently my server runs the latest version. Everything is working fine except for one thing about PHP: this upgraded server won't work with PHP 5.5 or later.

On "WebServer Configure", on PHP Used I have php55m but on PHP Branch it only shows PHP 5.4.

How can I install PHP 5.5 on this server and make it show on the WebServer Configure page? I tried running /script/phpm-installer but doesn't seem to work well.

Code: [Select]
A. Control Panel:               
   - Kloxo-MR: 7.0.0.b-2016020101
   - Web: hiawatha-10.0.0-f.6.mr.el5
   - PHP: php54s-5.4.45-2.w5 (cgi mode)
B. Plateform:
   - OS: CentOS release 5.11 (Final) x86_64
   - Hostname: srv.artisans.com.br
C. Services:
   1. MySQL: MariaDB-server-10.0.23-1
   2. PHP:
      - Branch: php54-cli-5.4.45-1.ius.el5
      - Multiple:
        * php52m-5.2.17-102.mr.el5
        * php53m-5.3.29-1.ius.el5
        * php54m-5.4.45-2.w5
        * php55m-5.5.31-1.w5
        * php56m-
        * php70m-
      - Used: --Use PHP Branch--
   3. Httpd: httpd-2.2.31-1.mr.el5
      - PHP Type: php-fpm_worker
   4. Lighttpd: --uninstalled--
   5. Hiawatha: --unused--
   6. Nginx: nginx-1.9.10-1.el5.ngx
   7. Cache: --uninstalled--
   8. Dns: bind-9.9.7-1.mr.el5
   9. Qmail: qmail-toaster-1.03-1.3.55.mr.el5
      - with: courier-imap-toaster-4.1.2-1.3.18.mr.el5
D. Memory:
                total       used       free     shared    buffers     cached
   Mem:         15939       3893      12046          0        407       2373
   -/+ buffers/cache:       1112      14826
   Swap:          510          0        510
E. Disk Space:
   Filesystem            Size  Used Avail Use% Mounted on
   /dev/sda2             9.6G  5.3G  3.8G  59% /


*** Process Time: 00:00:00:00.810 (dd:hh:mm:ss:xxxxxx) ***

Online MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: PHP 5.5+
« Reply #1 on: 2016-02-06, 14:14:18 »
Choose 'php55m' in 'php used' and it's mean your website will be use php 5.5.

Php-branch mean php install with 'yum install' and only possible 1 version in server. PhpXYm (aka 'multiple php') make possible install more then 1 version in server via 'special install process'.

You can use 'sh /script/phpm-all-install' for install all possible php versions in 'phpXYm' version.

Advantage for phpYXm are:
1. Minimize conflicts between packages in install process
2. Switch between version in 'php used' is on-the-fly
3. Possible every websites/directories use different versions (need 'Enable multiple php as secondary php'; only work in apache and nginx-proxy/hiawatha-proxy at this moment; need modified .htaccess content)
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline starbolt

  • Junior Member
  • *
  • Posts: 19
  • Karma: +0/-0
    • View Profile
Re: PHP 5.5+
« Reply #2 on: 2016-02-06, 15:16:37 »
Hi MrAtWork!

Got it... But how can I change to use php 5.5 on command line too? My crons need to run using PHP 5.5. When I change PHP Used to php 5.5 it works on websites, but the CLI stays as 5.4 (PHP branch).

Online MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: PHP 5.5+
« Reply #3 on: 2016-02-06, 15:26:14 »
Use 'php54m-cli' instead 'php' in your cron.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline starbolt

  • Junior Member
  • *
  • Posts: 19
  • Karma: +0/-0
    • View Profile
Re: PHP 5.5+
« Reply #4 on: 2016-02-06, 20:30:52 »
Thanks Mustafa, worked like a charm!

Offline starbolt

  • Junior Member
  • *
  • Posts: 19
  • Karma: +0/-0
    • View Profile
Re: PHP 5.5+
« Reply #5 on: 2016-02-09, 14:50:28 »
Hi Mustafa,

I have a problem still with the CLI. As per your suggestion I'm using php55 on PHP Used and PHP 5.4 on PHP Branch.

But when I run my cron using the php55m-cli binary, Im getting an error loading the ioncube_loader_lin_5.4.so file. Seems like the php55m cli is trying to use the php.ini file for php 5.4.

How can I load the right modules for the php55m cli?

Thanks

Online MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: PHP 5.5+
« Reply #6 on: 2016-02-09, 15:12:20 »
Go to '/opt/php55m/etc/php.d' and find out something like *ioncube-loader.nonini and then change to *ioncube-loader_used.ini. After that, run 'sh /script/restart-web -y' (unnecessary for cli but php-fpm need it).
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline starbolt

  • Junior Member
  • *
  • Posts: 19
  • Karma: +0/-0
    • View Profile
Re: PHP 5.5+
« Reply #7 on: 2016-02-09, 17:31:53 »
I haven't found that file. I only found ioncube.ini and rename it, but still not working. Look:

[root@srv php.d]# /opt/php55m/usr/bin/php -v
Failed loading /usr/lib64/php/modules/ioncube_loader_lin_5.4.so:  /usr/lib64/php/modules/ioncube_loader_lin_5.4.so: undefined symbol: execute
PHP 5.5.31 (cli) (built: Jan  9 2016 14:32:34)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2015 Zend Technologies

Online MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: PHP 5.5+
« Reply #8 on: 2016-02-10, 00:42:45 »
Inform here 'dir -l /opt/php55m/etc/php.d'. ioncube file is '01-ioncube-loader.nonini'
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline starbolt

  • Junior Member
  • *
  • Posts: 19
  • Karma: +0/-0
    • View Profile
Re: PHP 5.5+
« Reply #9 on: 2016-02-10, 15:19:09 »
I managed to fix this. Thanks

 


Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo

Page created in 0.039 seconds with 17 queries.

web stats analysis
 
Mirror created by MasterkinG32.CoM