MRatWork Forum by Mustafa Ramadhan

Sawo Project - Kloxo-MR Discussions => Kloxo-MR Technical Helps => Topic started by: zokkie on 2017-03-08, 15:14:33

Title: I can't use PHP56
Post by: zokkie on 2017-03-08, 15:14:33
Hi Mustafa,

Since the last update of PHP7.1 I can not change PHP through php used to php56. PHP Branch can't change also. Here is my sysinfo:

A. Control Panel:
   - Kloxo-MR: 7.0.0.c-2017030201
   - Web: hiawatha-10.5.0-f.2.mr.el6.x86_64
   - PHP: php54s-5.4.45-1.ius.centos6 (fpm mode)
B. Plateform:
   - OS: CentOS release 6.8 (Final) x86_64
   - Hostname:
C. Services:
   1. MySQL: MariaDB-server-10.0.29-1.el6.x86_64
   2. PHP:
      - Installed:
        - Branch: php71w-cli-7.1.2-1.w6.x86_64
        - Multiple:
          * php54m-5.4.45-1.ius.centos6
          * php55m-5.5.38-1.ius.centos6
          * php56m-5.6.30-1.ius.el6
          * php70m-7.0.16-1.ius.el6
          * php71m-7.1.2-1.ius.el6
      - Used: --PHP Branch--
      - Multiple: disable
   3. Web Used: apache
     - Hiawatha: hiawatha-10.5.0-f.2.mr.el6.x86_64
     - Lighttpd: lighttpd-1.4.45-1.el6.x86_64
     - Nginx: nginx-1.11.10-1.el6.ngx.x86_64
     - Apache: httpd24u-2.4.25-3.ius.el6.x86_64
       - PHP Type: php-fpm_event
       - Secondary PHP: off
   4. WebCache: none
     - ATS: --uninstalled--
     - Squid: --uninstalled--
     - Varnish: --uninstalled--
   5. Dns: bind
     - Bind: bind-9.9.7-1.mr.el6.x86_64
     - DJBDns: --uninstalled--
     - NSD: --uninstalled--
     - PowerDNS: --uninstalled--
     - Yadifa: --uninstalled--
   6. Mail: qmail-toaster-1.03-1.3.55.mr.el6.x86_64
      - pop3/imap4: courier-imap-toaster-4.1.2-1.3.20.mr.el6.x86_64
      - smtp: qmail-toaster-1.03-1.3.55.mr.el6.x86_64
      - spam: bogofilter-1.2.4-1.el6.x86_64
   7. Stats: webalizer
D. Memory:
             total       used       free     shared    buffers     cached
Mem:          2048       1423        624          5          0        899
-/+ buffers/cache:        524       1523
Swap:         2048          1       2046
E. Disk Space:
Filesystem      Size  Used Avail Use% Mounted on
/dev/simfs      115G  8.2G  101G   8% /

Stopping php56m-fpm (PHP Used):                            [FAILED]
Starting php56m-fpm (PHP Used): [08-Mar-2017 18:34:42] ERROR: An another FPM instance seems to already listen on /opt/configs/php-fpm/sock/php-admin.sock
[08-Mar-2017 18:34:42] ERROR: FPM initialization failed


Thanks.
Title: Re: I can't use PHP56
Post by: MRatWork on 2017-03-08, 18:36:21
Update with 'yum clean all; yum update -y; sh /script/cleanup'.
Title: Re: I can't use PHP56
Post by: zokkie on 2017-03-09, 08:15:44
I had to return to Apache 2.2 and problem is solved and after with 'sh /script/cleanup'.

Title: Re: I can't use PHP56
Post by: MRatWork on 2017-03-09, 08:36:04
No different between apache 2.2 and 2.4 for handling php-fpm.

It's php-fpm issue for restart process. If found this issue, try 'pkill -9 php-fpm; sh /script/restart; sh /script/restart-web'.
Title: Re: I can't use PHP56
Post by: zokkie on 2017-03-09, 10:38:37
OK, Mustafa. Thanks. Solved.