Welcome to Centmin Mod Community
Become a Member

PHP-FPM Multiple domains, php-fpm

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by tjk, Jun 18, 2016.

  1. tjk

    tjk Member

    74
    16
    8
    Jun 27, 2015
    Ratings:
    +25
    Local Time:
    1:02 PM
    Does Centmin Mod create a separate php-fpm instance with user perms for each vhost, for folks hosting multiple domains on 1 server?
     
  2. Jimmy

    Jimmy Premium Member Premium Member

    1,025
    231
    63
    Oct 24, 2015
    East Coast USA
    Ratings:
    +555
    Local Time:
    1:02 PM
    1.13.x
    MariaDB 10.1.x
  3. eva2000

    eva2000 Administrator Staff Member

    28,976
    6,579
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,765
    Local Time:
    3:02 AM
    Nginx 1.13.x
    MariaDB 5.5
    Nope out of box is one php-fpm pool with config files outlined at Centmin Mod Configuration Files - CentminMod.com LEMP Nginx web stack for CentOS

    Beta Branch - Centmin Mod .08 beta03+ Multiple PHP-FPM pools support added | Centmin Mod Community is a way of supporting multiple php-fpm pools with same nginx user/group just for load balanced upstream and/or individual usage in specific location contexts in nginx vhost so you can assign specific php-fpm pools for certain pages i.e. upload/attachments getting their own php-fpm pool and own timeout values - which is what i mainly use multiple php-fpm pools for i.e. admin areas, attachment areas, search areas via location context matches
     
  4. Jimmy

    Jimmy Premium Member Premium Member

    1,025
    231
    63
    Oct 24, 2015
    East Coast USA
    Ratings:
    +555
    Local Time:
    1:02 PM
    1.13.x
    MariaDB 10.1.x
    @eva2000 good to know. I just discovered the pools thread the other day and was trying to find some time to really understand it. So, it's better to assign the pools to something vs. just setting up the pools and leaving them for everyone to use.

    Would it be better to use a pool per site or would not having pools at all do the same thing?
     
  5. tjk

    tjk Member

    74
    16
    8
    Jun 27, 2015
    Ratings:
    +25
    Local Time:
    1:02 PM
    Right, hence my original question, it doesn't support multiple pools with different users, just same user and load balanced pools.

    Thanks!
     
  6. tjk

    tjk Member

    74
    16
    8
    Jun 27, 2015
    Ratings:
    +25
    Local Time:
    1:02 PM
    Pool per site doesn't give you the user isolation and security that it mainly would be used for, just load balanced pools for same user/all sites.
     
    • Informative Informative x 1
  7. eva2000

    eva2000 Administrator Staff Member

    28,976
    6,579
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,765
    Local Time:
    3:02 AM
    Nginx 1.13.x
    MariaDB 5.5
    depends on your objectives.. i use specific php-fpm pools for attachment/uploads or admin so i can set their own specific timeout values longer than the main regular php-fpm pools via their own config files in /usr/local/nginx/conf/phpfpmd directory

    yup this is to just better manage php-fpm usage/load
     
    • Informative Informative x 2
    • Like Like x 1