MRatWork Forum by Mustafa Ramadhan

Sawo Project - Kloxo-MR Discussions => Kloxo-MR Technical Helps => Topic started by: I<3Kloxo on 2017-09-07, 20:09:16

Title: Installing the GD Library for PHP
Post by: I<3Kloxo on 2017-09-07, 20:09:16
Hi,

I want to install the third part script and I can not continue with the installation because what I do not have 'GD extension for PHP '. I leave the picture to see.

(https://image.prntscr.com/image/3SrfdKrzSpOOY68Rf0QcLQ.png)


How to install 'GD Library for PHP' for Kloxo-MR ?

This is my sysinfo:

Code: [Select]
[root@server ~]# sh /script/sysinfo
A. Control Panel:
   - Kloxo-MR: 7.0.0.c-2017081502
   - Web: hiawatha-10.6.0-f.1.mr.el6.x86_64
   - PHP: php56s - 5.6.31-1.ius.centos6 (fpm mode)
B. Plateform:
   - OS: CentOS release 6.9 (Final) x86_64
   - Hostname: xxxxx.com
C. Services:
   1. MySQL: MariaDB-server-10.0.32-1.el6.x86_64
   2. PHP:
      - Installed:
        - Branch: php56u-cli-5.6.31-1.ius.centos6.x86_64
      - Used: --PHP Branch--
      - Multiple: disable
   3. Web Used: apache
     - Hiawatha: hiawatha-10.6.0-f.1.mr.el6.x86_64
     - Lighttpd: lighttpd-1.4.45-1.el6.x86_64
     - Nginx: nginx-1.13.4-1.el6.ngx.x86_64
     - Apache: httpd24u-2.4.27-1.ius.centos6.x86_64
       - PHP Type: php-fpm_event
       - Secondary PHP: off
   4. WebCache: none
     - ATS: --uninstalled--
     - Squid: --uninstalled--
     - Varnish: --uninstalled--
   5. Dns: nsd
     - Bind: bind-9.9.9-1.mr.el6.x86_64
     - DJBDns: djbdns-1.05-17.4.mr.el6.x86_64
     - NSD: nsd-4.1.16-1.el6.x86_64
     - PowerDNS: pdns-4.0.3-1.el6.MIND.x86_64
     - Yadifa: yadifa-2.2.5-1.mr.el6.x86_64
   6. Mail: qmail-toaster-1.03-1.3.57.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.57.mr.el6.x86_64
      - spam: bogofilter-1.2.4-1.el6.x86_64
   7. FTP: pure-ftpd
      - pure-ftpd: pure-ftpd-1.0.37-1.mr.el6.x86_64
   8. Stats: awstats
      - awstats: kloxomr-stats-awstats-7.6-1.mr.noarch

Title: Re: Installing the GD Library for PHP
Post by: MRatWork on 2017-09-08, 02:55:54
Inform here 'php -m; php56m-cli -m'
Title: Re: Installing the GD Library for PHP
Post by: idove on 2017-09-08, 10:36:41
Sorry to jumping into this post.

Yesterday, I do have the same problem, I've installed with:

Code: [Select]
yum install php56u-gd

But after restart of httpd with
systemctl restart httpd.service
it didn't work. I try phpinfo and it wasn't listed in Additional .ini files parsed?
After 30min, it start to work from itself, and it was listed in phpinfo in Additional .ini files parsed    :).

Today I get similar error, but only with imap, so I've installed
yum install php56-imap,
restart httpod didn't help.
Restart whole server and it works.

What I'm missing here? What else need to be restarted to add this extensions to php, httpd restart didn't help.
Tnx.

Title: Re: Installing the GD Library for PHP
Post by: MRatWork on 2017-09-08, 11:57:21
php56 != php56u
Title: Re: Installing the GD Library for PHP
Post by: idove on 2017-09-08, 14:00:35
php56 != php56u

Uh, didn't know that.
So what's the difference? I didn't know that is possible to install php56_gd, I was thinking php56u_gd is default.
Sorry to bumping in this thread ;(.
Title: Re: Installing the GD Library for PHP
Post by: I<3Kloxo on 2017-09-08, 15:50:56
Hi,

I solved the problem in the way 'sh /script/restart-all'
I know that GD library for php comes by default in the Kloxo-MR panel, for this reason I did not know why the script does not recognize it.   :)

Seems it stop to work from itself.