The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Confused about easyapache4 and fpm

Discussion in 'EasyApache' started by doropezaTSV, Sep 6, 2016.

Tags:
Thread Status:
Not open for further replies.
  1. doropezaTSV

    doropezaTSV Member

    Joined:
    Nov 17, 2015
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Venezuela
    cPanel Access Level:
    Root Administrator
    Hello,

    We have a new server with centos7 and easyapache4, We compiled it with the following packages:

    Code:
    [LIST]
    [*]ea-apache24
    [*]ea-apache24-config
    [*]ea-apache24-config-runtime
    [*]ea-apache24-mod_asis
    [*]ea-apache24-mod_auth_digest
    [*]ea-apache24-mod_authnz_ldap
    [*]ea-apache24-mod_authz_owner
    [*]ea-apache24-mod_bwlimited
    [*]ea-apache24-mod_cache
    [*]ea-apache24-mod_cgi
    [*]ea-apache24-mod_deflate
    [*]ea-apache24-mod_env
    [*]ea-apache24-mod_expires
    [*]ea-apache24-mod_headers
    [*]ea-apache24-mod_ldap
    [*]ea-apache24-mod_mpm_prefork
    [*]ea-apache24-mod_proxy
    [*]ea-apache24-mod_proxy_fcgi
    [*]ea-apache24-mod_proxy_http
    [*]ea-apache24-mod_security2
    [*]ea-apache24-mod_ssl
    [*]ea-apache24-mod_suphp
    [*]ea-apache24-mod_unique_id
    [*]ea-apache24-mod_version
    [*]ea-apache24-tools
    [*]ea-apr
    [*]ea-apr-util
    [*]ea-apr-util-ldap
    [*]ea-cpanel-tools
    [*]ea-documentroot
    [*]ea-libmcrypt
    [*]ea-php-cli
    [*]ea-php56
    [*]ea-php56-libc-client
    [*]ea-php56-pear
    [*]ea-php56-php
    [*]ea-php56-php-bcmath
    [*]ea-php56-php-calendar
    [*]ea-php56-php-cli
    [*]ea-php56-php-common
    [*]ea-php56-php-curl
    [*]ea-php56-php-devel
    [*]ea-php56-php-exif
    [*]ea-php56-php-fileinfo
    [*]ea-php56-php-fpm
    [*]ea-php56-php-ftp
    [*]ea-php56-php-gd
    [*]ea-php56-php-gettext
    [*]ea-php56-php-iconv
    [*]ea-php56-php-imap
    [*]ea-php56-php-intl
    [*]ea-php56-php-ioncube
    [*]ea-php56-php-mbstring
    [*]ea-php56-php-mcrypt
    [*]ea-php56-php-mysqlnd
    [*]ea-php56-php-pdo
    [*]ea-php56-php-pgsql
    [*]ea-php56-php-posix
    [*]ea-php56-php-pspell
    [*]ea-php56-php-soap
    [*]ea-php56-php-sockets
    [*]ea-php56-php-xml
    [*]ea-php56-php-xmlrpc
    [*]ea-php56-php-zendguard
    [*]ea-php56-php-zip
    [*]ea-php56-runtime
    [*]ea-profiles-cpanel
    [/LIST]
    
    But in "MultiPHP Manager" there isn't a fastcgi option in handlers tab. Why?.

    Also I have found this documentation Configure PHP-FPM with User Pools for EasyApache 4 - cPanel Knowledge Base - cPanel Documentation and its shows an alert with this...
    and the WHM version in my server is 58, so where is the last version?

    And for last, if I want to use the php-fpm I have to create and configure all users, dirs, domains, spools, etc. describen on the docs by hand? (for 300+ users).
     
    #1 doropezaTSV, Sep 6, 2016
    Last edited by a moderator: Sep 12, 2016
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    While it's still possible to follow those instructions, it's highly discouraged because the changes you must make are not compatible with the actual FPM support in cPanel version 60. You can follow the progress for official FPM support at:

    Enhance FPM support

    An additional feature request is open for mod_fcgid at:

    EasyApache 4 mod_fcgid

    Thank you.
     
  3. kdean

    kdean Well-Known Member

    Joined:
    Oct 19, 2012
    Messages:
    262
    Likes Received:
    12
    Trophy Points:
    18
    Location:
    Orlando, FL
    cPanel Access Level:
    Root Administrator
    So, if one has been running FPM over the last few versions using the previous method, will that completely break when updating to 60? ...or will it continue to work but just require some manual removals of the user.conf and userdata fpm.conf files before activating the newer method on a user by user basis?

    Also, the current instructions use the following in the fpm.conf files:

    Code:
    <IfModule proxy_fcgi_module>
     ProxyPassMatch "^/(.*\.php(/.*)?)$" "unix:/home/<user>/run/php70-fpm.sock|fcgi://localhost/home/<user>/public_html/
     DirectoryIndex index.php
     </IfModule>
    
    but I used the following that was recommended offsite for the latter Apache 2.4 versions:

    Code:
    <IfModule proxy_fcgi_module>
     <FilesMatch \.php$>
       SetHandler "proxy:unix:/home/<user>/run/php70-fpm.sock|fcgi://localhost"
     </FilesMatch>
    </IfModule>
    
    ... and it did prove to work a lot better and more compatible.

    Do you know what method will be used in 60? ...because the ProxyPassMatch method is pretty useless for me since it breaks sites such as wordpress multi-site installs, messes with directory indexes disallowing previously working methods. The SetHandler method doesn't have those problems.
     
  4. hrace009

    hrace009 Well-Known Member

    Joined:
    Dec 24, 2013
    Messages:
    68
    Likes Received:
    8
    Trophy Points:
    8
    Location:
    Root
    cPanel Access Level:
    Root Administrator
    Twitter:
    me to little bit confuse with
    Code:
    ProxyPassMatch "^/(.*\.php(/.*)?)$" "unix:/home/<user>/run/php70-fpm.sock|fcgi://localhost/home/<user>/public_html/
    and
    Code:
    SetHandler "proxy:unix:/home/<user>/run/php70-fpm.sock|fcgi://localhost"
    witch one is the correct way?
    most common tutorial i look at google, they often use
    Code:
    fcgi://localhost
    but cPanel giving different way. perhaps cPanel can give explanation to use :)
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    For anyone viewing this thread for the first time, continued discussion of this topic is available under the comments section at:

    Enhance FPM support

    Please open a new thread to report additional issues.

    Thank you.
     
Loading...
Thread Status:
Not open for further replies.

Share This Page