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!

Install HTTP/2 - DSO To FCGI install issues?

Discussion in 'EasyApache' started by monkey64, May 3, 2018.

  1. monkey64

    monkey64 Well-Known Member

    Joined:
    Nov 6, 2011
    Messages:
    94
    Likes Received:
    3
    Trophy Points:
    58
    cPanel Access Level:
    Root Administrator
    I am currently running:

    Code:
    mod_mpm_prefork
    mod_mpm_itk
    php70-php
    I want to use the HTTP/2 module but the Apache developers, as of Apache 2.4.27, have disabled HTTP2 when using the prefork MPM. Since I have lots of free RAM, I would like to use Fast CGI as my PHP handler along with the Worker MPM:

    Code:
    mod_mpm_worker
    mod_proxy_fcgi
    mod_http2 
    I have many files and folders set by default to 755 and owned my the cpanel user. If I provision the above will it will be a straight switchover from DSO to FCGI or am I likely to encounter lots of 500/.htaccess and permission errors? If so, are there any scripts which automate the process of changing permissions?
     
  2. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    1,819
    Likes Received:
    134
    Trophy Points:
    118
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @monkey64

    Yes, you are likely to encounter permissions issues if all files/folders are using 755

    We have no native function to do this but we do have a forum post that goes over conversion from DSO to suPHP as far as permissions changes which might prove helpful when you do attempt this.

    Rather than use mod_fcgid which is present in the EA4 experimental repo (please see our documentation here: PHP Handlers - EasyApache 4 - cPanel Documentation ) have you considered using php-fpm which is supported by cPanel?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. monkey64

    monkey64 Well-Known Member

    Joined:
    Nov 6, 2011
    Messages:
    94
    Likes Received:
    3
    Trophy Points:
    58
    cPanel Access Level:
    Root Administrator
    In the end I went with PHP-FPM and the switchover went surprisingly smoothly with no permission / ownership errors. The only issue I encountered was a session permission error whenever a cookie was set in PHP. It's well documented and solved by changing:

    Code:
    session.save_path = "/tmp"
    in the PHP ini editor, then restarting the PHP-FPM service for Apache.

    Thanks!
     
    cPanelLauren likes this.
  4. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    1,819
    Likes Received:
    134
    Trophy Points:
    118
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @monkey64

    Glad to hear it went smoothly. Thanks for updating us on the outcome.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. vlee

    vlee Well-Known Member

    Joined:
    Oct 13, 2005
    Messages:
    348
    Likes Received:
    23
    Trophy Points:
    168
    Location:
    Spokane, Washington
    cPanel Access Level:
    Root Administrator
    Here is my setup below and been running this for for the past few months now with no issues.

    Code:
    mod_http2
    mod_mpm_event
    mod_proxy_fcgi
    mod_suexec
    mod_suphp
    
    Hope this helps
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    cPanelLauren likes this.
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice