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-05-29, 05:41:20

Author Topic: KloxoMR 7 php-fpm ERROR: No pool defined, kloxo-phpcgi Cannot allocate memory  (Read 219 times)

0 Members and 1 Guest are viewing this topic.

Offline postcd

  • Junior Member
  • *
  • Posts: 23
  • Karma: +0/-0
    • View Profile
Hello,

i faced some "minor error" during install KloxoMR 7

CentOS release 6.8 (Final)
Linux vps.centos6.tld 2.6.32-042stab093.5 #1 SMP Wed Sep 10 17:39:49 MSK 2014 i686 i686 i386 GNU/Linux

Quote
Installed:
  kloxomr7.noarch 0:7.0.0.c-2017031002.mr

This is 512MB RAM VPS and there was memory related error after installation:
Quote
Stopping kloxo-phpcgi: /etc/rc.d/init.d/functions: fork: Cannot allocate memory
                                                           [  OK  ]
Starting kloxo-phpcgi ('php56s' in 'fpm' mode): /opt/php56s/usr/sbin/php-fpm: error while loading shared libraries: libz.so.1: failed to map segment from shared object: Cannot allocate memory
                                                           [FAILED]

but this one got fixed by adding more ram (768MB). THis was issue with my server, Kloxo need much less memory.

Other "errors" that appeared during install:

Quote
cp: cannot stat `/opt/configs/php-fpm/conf/php/php-fpm.d/default.conf': No such file or directory
- Enable for all php-fpm (branch and multiple phps)
-- Enable for php56s-fpm
=== END 'php56s' install ===

Quote
Packages skipped because of dependency problems:
    httpd-2.2.31-1.mr.el6.i386 from mratwork-release-version-arch
    httpd-tools-2.2.31-1.mr.el6.i386 from mratwork-release-version-arch
    php56u-5.6.30-1.ius.centos6.i686 from mratwork-ius-stable

Quote
Stopping php-fpm (PHP Used):                               [FAILED]
Starting php-fpm (PHP Used): [16-Mar-2017 05:42:42] ERROR: No pool defined. at least one pool section must be specified in config file
[16-Mar-2017 05:42:42] ERROR: failed to post process the configuration
[16-Mar-2017 05:42:42] ERROR: FPM initialization failed
                                                           [FAILED]

dir -l /opt/configs/php-fpm/conf/php
Quote
total 4
-rw-r--r-- 1 root root    0 Mar 12 14:06 php-fpm.conf
drwxr-xr-x 2 root root 4096 Mar 12 14:01 php-fpm.d

files in that directory was all empty.

sh /script/fixphp
Quote
Fixing php.ini/php-fpm.conf/php.fcgi/.htaccess
- '/etc/php.ini' at 'localhost'
- Fix 'extension_dir' path in php.ini at 'localhost'
- '/etc/php-fpm.d/default.conf' at 'localhost'
- '/home/kloxo/client/php.fcgi' at 'localhost'

sh /script/restart-php-fpm -y
Quote
Stopping php-fpm (PHP Used):                               [  OK  ]
Starting php-fpm (PHP Used):                               [  OK  ]

Why the php-fpm not worked right away and can this be prevent in future or it is rare case?
« Last Edit: 2017-03-16, 14:42:38 by postcd »

Online MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 14,498
  • Karma: +105/-8
  • Gender: Male
    • View Profile
    • MRatWork Forum
Many change in latest version. Example, in previous version kloxo service is kloxo but in latest separated to kloxo-web, kloxo-php and kloxo-wrap. The same ways for multiple php service.

The reason is related to implementing to CentOS 7 where not possible kloxo service in 1 file.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

 


Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo

Page created in 0.04 seconds with 18 queries.

web stats analysis