Welcome to Centmin Mod Community
Register Now

PHP-FPM New Install php error

Discussion in 'Bug Reports' started by gabel, Jul 4, 2019.

  1. gabel

    gabel Member

    68
    38
    18
    Jan 7, 2016
    Ratings:
    +64
    Local Time:
    4:15 PM
    1.9.9
    MariaDB 10
    Please fill in any relevant information that applies to you:
    • CentOS Version: CentOS 7 64bit
    • Centmin Mod Version Installed: i.e. 123.09beta01
    • Nginx Version Installed: i.e. 1.17.1
    • PHP Version Installed: i.e. 7.2.19
    Installed centmin on a CT i just created on a new Proxmox server, everything went smoothly except the fact that php seems to be having issues.

    Code:
    etup virtual.conf
    Adding /usr/local/nginx/conf/include_opcache.conf include entry
    
    service nginx reload
    /etc/init.d/nginx: line 2: ulimit: open files: cannot modify limit: Operation not permitted
    Reloading nginx configuration (via systemctl):  Job for nginx.service invalid.
    [FAILED]
    sysctl: cannot stat /proc/sys/net/core/somaxconn: No such file or directory
    inc/phpsededit.inc: line 139: /16: syntax error: operand expected (error token is "/16")
    
    Created command shortcuts:
    * type cmdir to change to Centmin Mod install directory
      at /usr/local/src/centminmod
    * type centmin call and run centmin.sh
      at /usr/local/src/centminmod/centmin.sh
    
    ---------------------------------------------------------------------------
    Total Curl Installer YUM or DNF Time: 776.1368 seconds
    Total YUM Time: 27.570545139 seconds
    Total YUM or DNF + Source Download Time: 54.8337
    Total Nginx First Time Install Time: 237.2754
    Total PHP First Time Install Time: 231.3653
    Download From Github Time: 1.4827
    Total Time Other eg. source compiles: 138.9766
    Total Centmin Mod Install Time: 662.4509
    ---------------------------------------------------------------------------
    Total Install Time (curl yum + cm install + zip download): 1440.0704 seconds
    ---------------------------------------------------------------------------
    2 Intel(R) Xeon(R) E-2136 CPU @ 3.30GHz
    1 4261.951 1 4273.852
    ---------------------------------------------------------------------------
    
    Code:
    # virt-what
    lxc
    
    Did a little research, found this thread [Solved] - PHP-FPM fails to start on OpenVZ7 and commenting out NICE as it was done there seems to have resolved it. I tried to run php-systemd.sh before commenting it out, but that didn't cut it so I had to manually go in and do it.

    Still getting an error when restarting services so I will have a look at that but later as i have to move the files to this new VPS :D
    Code:
    ]# nprestart
    /etc/init.d/nginx: line 2: ulimit: open files: cannot modify limit: Operation not permitted
    Restarting nginx (via systemctl):                          [  OK  ]
    Restarting php-fpm (via systemctl) [  OK  ]
    
    P.S @eva2000 can hook you up with a new one if you want to have a look :)

     
  2. eva2000

    eva2000 Administrator Staff Member

    55,234
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,831
    Local Time:
    1:15 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    you're using OpenVZ6 or OpenVZ7 virtualisation or KVM or LXC container ? i'm not familiar with Promox but definitely that error suggests you're using LXC which isn't fully supported in Centmin Mod unless you're host is configured properly for it. I've only tested Centmin Mod 123.09beta01 on ssdnodes with Ubuntu and LXD containers of CentOS 7 which worked somewhat

    did that fix it for you too ? if not that I'd say your LXC contain setup isn't compatible
     
  3. gabel

    gabel Member

    68
    38
    18
    Jan 7, 2016
    Ratings:
    +64
    Local Time:
    4:15 PM
    1.9.9
    MariaDB 10
    nope seems that didn't fix it properly as there are more things that didn't work, csf for example, wasn't installed properly so I had to reinstall but then got more errors.
     
  4. eva2000

    eva2000 Administrator Staff Member

    55,234
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,831
    Local Time:
    1:15 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    ok your LXC config isn't compatible then - use KVM ;)
     
  5. gabel

    gabel Member

    68
    38
    18
    Jan 7, 2016
    Ratings:
    +64
    Local Time:
    4:15 PM
    1.9.9
    MariaDB 10
    yup trying to see if i can get LXC configured properly to get it working as that would be better for me, if not then kvm.
     
  6. eva2000

    eva2000 Administrator Staff Member

    55,234
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,831
    Local Time:
    1:15 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    I'd only tested with LXD containers not LXC and even then LXD depends on how the web host configures host side. CentOS 7 won't work 100% on LXD/LXC without extra config steps on host side.
     
  7. gabel

    gabel Member

    68
    38
    18
    Jan 7, 2016
    Ratings:
    +64
    Local Time:
    4:15 PM
    1.9.9
    MariaDB 10
    went the KVM route, faster and fewer headaches. At least know i know centmin and LXC is a no no for now :D

    hope this thread would be useful others in case they try centmin on LXC containers.

    As always thanks @eva2000 for your time and help.
     
  8. eva2000

    eva2000 Administrator Staff Member

    55,234
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,831
    Local Time:
    1:15 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    You're welcome :)
     
  9. jcat

    jcat Member

    153
    22
    18
    Jun 21, 2015
    New Jersey
    Ratings:
    +64
    Local Time:
    11:15 AM
    Is LXD still a no go? :unsure:
     
  10. eva2000

    eva2000 Administrator Staff Member

    55,234
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,831
    Local Time:
    1:15 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    @jcat LXD is highly dependent on how the LXD host and containers are configured
     
  11. jcat

    jcat Member

    153
    22
    18
    Jun 21, 2015
    New Jersey
    Ratings:
    +64
    Local Time:
    11:15 AM
    Gotcha, we are looking into a replacement for ovz and our main concern would be centminmod compatibility.
     
  12. eva2000

    eva2000 Administrator Staff Member

    55,234
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,831
    Local Time:
    1:15 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    I only see KVM as a viable choice really - with alot of newer cpu models coming out + meltdown/spectre like vulnerabilities that keep raising their ugly heads etc, then being able to always use some form of latest Linux kernel to get the most out of performance of new cpu models and patch up vulnerabilities would be key.