Skip to main content

Install HTTP/2 - DSO To FCGI install issues?

Comments

4 comments

  • cPanelLauren
    Hi @monkey64
    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?

    Yes, you are likely to encounter permissions issues if all files/folders are using 755
    If so, are there any scripts which automate the process of changing permissions?

    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.
    Since I have lots of free RAM, I would like to use Fast CGI as my PHP handler along with the Worker MPM:

    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?
    0
  • monkey64
    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: session.save_path = "/tmp"
    in the PHP ini editor, then restarting the PHP-FPM service for Apache. Thanks!
    0
  • cPanelLauren
    Hi @monkey64 Glad to hear it went smoothly. Thanks for updating us on the outcome.
    0
  • vlee
    Here is my setup below and been running this for for the past few months now with no issues. mod_http2 mod_mpm_event mod_proxy_fcgi mod_suexec mod_suphp
    Hope this helps
    0

Please sign in to leave a comment.