Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

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.

PHP handlers in EasyApache4

Discussion in 'EasyApache' started by vikelidiskostas, Feb 12, 2017.

Tags:
  1. vikelidiskostas

    Joined:
    Sep 4, 2016
    Messages:
    8
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Greece
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello everyone,

    This is my first post here so i would like to thank everyone for sharing knowledge and helping others. Now let's get to the point.
    I am a little bit confused regarding PHP Handlers in EasyApache4. I have a newly installation of cpanel WHM 62.0 (build 10) and as stated here PHP Handlers - EasyApache 4 - cPanel Documentation there are five PHP Handlers to choose from. (CGI, DSO,FPM,FCGId and suPHP).

    What confuses me is the following menu in the MultiPHP Manager:

    multi_php.png


    which actually allow me to select any PHP version and enable or disable PHP-FPM on top of this version. Here are the results of:

    Code:
    /usr/local/cpanel/bin/rebuild_phpconf  --current
    ea-php55 SAPI: suphp
    ea-php56 SAPI: cgi
    ea-php70 SAPI: cgi
    ea-php71 SAPI: cgi
    
    Does this means that i can use ea-php55 (which is configured to run as suphp ) and then enable PHP-FPM? Does this means that i can combine two different handlers in one domain?
     
  2. vacancy

    vacancy Well-Known Member

    Joined:
    Sep 20, 2012
    Messages:
    140
    Likes Received:
    14
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    #2 vacancy, Feb 12, 2017
    Last edited: Feb 12, 2017
  3. Eminds

    Eminds Well-Known Member

    Joined:
    Nov 10, 2016
    Messages:
    211
    Likes Received:
    13
    Trophy Points:
    18
    Location:
    India
    cPanel Access Level:
    Root Administrator
    The multiphp manager and the option that you have speicified allows you how you want to run PHP , it enables you to select the mode.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    PHP-FPM is enabled per domain name, as opposed to as a global handler. Thus, you enable it for the individual domain name and that domain name then uses PHP-FPM as opposed to the default handler associated with the specific PHP version. You may also find the following document helpful:

    MultiPHP Manager for WHM - Documentation - cPanel Documentation

    Thank you.
     
  5. vikelidiskostas

    Joined:
    Sep 4, 2016
    Messages:
    8
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Greece
    cPanel Access Level:
    Root Administrator
    Twitter:
    Thanks everyone for the replies. So just to put it right.

    When PHP-FPM is turned OFF "PHP Version" drop down menu is used for choosing php version (and its assosiated Handler - suPHP or cgi in my case) and when PHP-FPM is turned ON the "PHP Version" drop down menu is used for choosing JUST php version and the handler will always remain PHP-FPM.

    Is that right?
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Yes, that's correct. Also, the default PHP Handlers do not apply to PHP-FPM, so if you wanted to change the default handlers for the versions of PHP on the system, you'd browse to the "PHP Handlers" tab in MultiPHP Manager.

    Thank you.
     
Loading...

Share This Page