Welcome to Centmin Mod Community
Register Now

[Solved] PHP-FPM fails to start on OpenVZ7

Discussion in 'Bug Reports' started by jcat, Mar 29, 2019.

Tags:
  1. jcat

    jcat Member

    153
    22
    18
    Jun 21, 2015
    New Jersey
    Ratings:
    +64
    Local Time:
    1:47 AM
    Please fill in any relevant information that applies to you:
    • CentOS Version: CentOS Linux release 7.6.1810
    • Centmin Mod Version Installed: 123.09beta01
    • PHP Version Installed: 7.2.16
    • When was last time updated Centmin Mod code base ? : fresh installs
    • Persistent Config: Do you have any persistent config file options set in /etc/centminmod/custom_config.inc ? You can check via this command:
      Code:
      NGXDYNAMIC_BROTLI=y
      NGINX_LIBBROTLI=y
      ZSTD_LOGROTATE_NGINX=y
      ZSTD_LOGROTATE_PHPFPM=y
      MARIADB_INSTALLTENTHREE=y
      PHP_BROTLI=y
      PHP_LZFOUR=y
      PHP_LZF=y
      PHP_PGO=y
      PHP_ZSTD=y
      LETSENCRYPT_DETECT='y'
      DUALCERTS='y'
    Code:
    Mar 28 17:40:59 wpo systemd: Starting PHP FastCGI Process Manager...
    Mar 28 17:40:59 wpo systemd: Failed at step NICE spawning /usr/local/sbin/php-fpm: Permission denied
    Mar 28 17:40:59 wpo systemd: php-fpm.service: main process exited, code=exited, status=201/NICE
    Mar 28 17:40:59 wpo systemd: Failed at step NICE spawning /bin/kill: Permission denied
    Mar 28 17:40:59 wpo systemd: php-fpm.service: control process exited, code=exited status=201
    Mar 28 17:40:59 wpo systemd: Failed to start PHP FastCGI Process Manager.
    Mar 28 17:40:59 wpo systemd: Unit php-fpm.service entered failed state.
    Mar 28 17:40:59 wpo systemd: php-fpm.service failed.
    
    If I comment out

    centminmod/centminmod

    it starts up no problem.


    Works fine on openvz6 but no go on openvz7
     
  2. eva2000

    eva2000 Administrator Staff Member

    53,212
    12,113
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,650
    Local Time:
    3:47 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    That is systemd service file setting so only would apply to centos 7. But do you mean openvz6 centos 7 works just openvz7 centos 7 doesn't work ?

    what's output for
    Code (Text):
    virt-what

    on both openvz6 and openvz7 vps systems
     
  3. jcat

    jcat Member

    153
    22
    18
    Jun 21, 2015
    New Jersey
    Ratings:
    +64
    Local Time:
    1:47 AM
    Sorry for not clarifying.

    Its OpenVZ7 and the container is Centos7

    OpenVZ7
    Code:
    # virt-what
    openvz
    lxc
    
    OpenVZ6
    Code:
    # virt-what
    openvz
    
     
  4. eva2000

    eva2000 Administrator Staff Member

    53,212
    12,113
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,650
    Local Time:
    3:47 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  5. eva2000

    eva2000 Administrator Staff Member

    53,212
    12,113
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,650
    Local Time:
    3:47 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Also output for
    Code (Text):
    /usr/bin/systemd-detect-virt
     
  6. jcat

    jcat Member

    153
    22
    18
    Jun 21, 2015
    New Jersey
    Ratings:
    +64
    Local Time:
    1:47 AM
    Both 6 and 7 give:

    Code:
    # /usr/bin/systemd-detect-virt
    openvz
    
    No, not that I am aware of.
     
  7. eva2000

    eva2000 Administrator Staff Member

    53,212
    12,113
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,650
    Local Time:
    3:47 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  8. jcat

    jcat Member

    153
    22
    18
    Jun 21, 2015
    New Jersey
    Ratings:
    +64
    Local Time:
    1:47 AM
    Works for me, thanks!
     
  9. eva2000

    eva2000 Administrator Staff Member

    53,212
    12,113
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,650
    Local Time:
    3:47 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Ok if you or anyone figures out how to detect and differentiate openvz 7 from openvz 6 within a guest VPS, please let us know. Though i guess detecting /proc/user_beancounters and non-2.6.x linux kernel would technically imply openvz 7 i think ?
     
  10. jcat

    jcat Member

    153
    22
    18
    Jun 21, 2015
    New Jersey
    Ratings:
    +64
    Local Time:
    1:47 AM
    Can tell by the nodes kernel since openvz7 is 3.10 base

    Code:
    # uname -r
    3.10.0
    and openvz6 is 2.6

    Code:
    # uname -r
    2.6.32-042stab123.9
     
  11. eva2000

    eva2000 Administrator Staff Member

    53,212
    12,113
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,650
    Local Time:
    3:47 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    yeah figured openvz7 kernel wouldn't be different
     
  12. eva2000

    eva2000 Administrator Staff Member

    53,212
    12,113
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,650
    Local Time:
    3:47 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    FYI, if folks are using OpenVZ 7 VPS and CentOS 7 and can't start php-fpm because of above issue, you may need to edit /etc/systemd/system/php-fpm.service.d/limit.conf to remove the line
    Code (Text):
    Nice=-10

    then restart php-fpm service
    Code (Text):
    systemctl daemon-reload
    systemctl restart php-fpm