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!

enable http2 but disable mod_ruid2,mod_mpm_prefork,mod_cgi

Discussion in 'EasyApache' started by DjordjeB, Aug 21, 2017.

Tags:
  1. Gojko

    Gojko Well-Known Member

    Joined:
    Nov 24, 2014
    Messages:
    80
    Likes Received:
    7
    Trophy Points:
    8
    Location:
    Macedonia
    cPanel Access Level:
    Root Administrator
    Hello, i want to enable http2 BUT i need to disable mod_mpm_prefork,mod_ruid2,mod_cgi

    This is produce server so i can't playing around with testing.
    What is bast practice with this?
    What is replacement for prefork ruid and cgi?

    I read a lot to replace prefork and someone wrote that will disable htaccess.

    What is bast thing to do?

    Last WHM/cPanel all updated. CentOS 7. If you need any information please tell.
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,758
    Likes Received:
    1,886
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    You can read about some of the configurations others have used when switching from Prefork/Ruid2 on the following thread:

    Prefork and HTTP2

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Gojko

    Gojko Well-Known Member

    Joined:
    Nov 24, 2014
    Messages:
    80
    Likes Received:
    7
    Trophy Points:
    8
    Location:
    Macedonia
    cPanel Access Level:
    Root Administrator
    Thank you, i read it all but i have some concerns like
    "So, I tried it with mod_mpm_event noticed that mod_ruid2 is disabled and I would have make permission changes on directories and files so websites can work properly."

    What he mean about it?

    PHP handlers i have only "cgi" and i have fast cgi module installed.

    if i switch to mpm event is there any other change beside permission?
    that is server with 200+ accounts and more then 250+ domains
    all php versions work on event? i need 5.6,7.0,7.1. 90% websites are wordpress on server
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,758
    Likes Received:
    1,886
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    You should not encounter that same issue if you are not using Mod_Ruid2. Switching to the Event MPM from the Prefork MPM should not lead to changes in the required permission or ownership values. You can read more about each PHP handler at:

    PHP Handlers - EasyApache 4 - cPanel Documentation

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Gojko

    Gojko Well-Known Member

    Joined:
    Nov 24, 2014
    Messages:
    80
    Likes Received:
    7
    Trophy Points:
    8
    Location:
    Macedonia
    cPanel Access Level:
    Root Administrator
    But i'm using ruid2. So when i swich to event i will disable ruid2, what i need to do to change permission or ownership for all accounts?
     
  6. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,758
    Likes Received:
    1,886
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    Can you confirm if you are using PHP-FPM, or the mod_fcgid Apache module? The mod_fcgid Apache module is not compatible with Mod_Ruid2, so you wouldn't be able to have both enabled at the same time.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. linux4me2

    linux4me2 Well-Known Member

    Joined:
    Aug 21, 2015
    Messages:
    201
    Likes Received:
    47
    Trophy Points:
    28
    Location:
    USA
    cPanel Access Level:
    Root Administrator
    Just thought I should mention that if the OP is thinking of disabling Mod_Ruid2 to enable HTTP2, some other symlink race condition protection might be worth thinking about before proceeding if the only protection is currently from Mod_Ruid2.
     
    cPanelMichael likes this.
  8. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,758
    Likes Received:
    1,886
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Good point. Here's a link to the list of alternative options for symlink protection:

    Symlink Race Condition Protection - EasyApache 4 - cPanel Documentation

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. Gojko

    Gojko Well-Known Member

    Joined:
    Nov 24, 2014
    Messages:
    80
    Likes Received:
    7
    Trophy Points:
    8
    Location:
    Macedonia
    cPanel Access Level:
    Root Administrator
    So what i need to do?
    I need to disable mod_cgi?
    turn on php-fpm?
    disable mod_ruid2?
    turn on http2?
    and i still have to do something with permission files/folders because of mod_ruid2?


    cgi1.PNG cgi2.PNG cgi3.PNG
    cgi4.PNG
    cgi5.PNG
     
  10. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,758
    Likes Received:
    1,886
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    Here's a link with more information about each PHP handler (including information about the permission requirements):

    PHP Handlers - EasyApache 4 - cPanel Documentation

    Based on the information you provided, you are using the CGI handler with Mod_Ruid2 enabled. Thus, if you were to enable Mod_Http2, you'd still use the CGI handler but Ruid2 would no longer be enabled. Per the above document:

    I recommend enabling suexec when configuring your new profile in the EasyApache 4 interface so the system still executes PHP applications as the user that owns the VirtualHost that served the request.

    Note that you also have PHP-FPM enabled, so you may want to browse to "WHM >> MultiPHP Manager" to verify if any of your domain names are using PHP-FPM as their handler.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. Gojko

    Gojko Well-Known Member

    Joined:
    Nov 24, 2014
    Messages:
    80
    Likes Received:
    7
    Trophy Points:
    8
    Location:
    Macedonia
    cPanel Access Level:
    Root Administrator
    Thank you for replay. I'm sorry for i'm late for this replay.

    No one use PHP-FPM.
    So what i need to do is:
    Disable mod_ruid2
    Enable suexec
    Eneble http2

    is that right?
    also i read all that stuff before but i don't want to make mistake because it's big problem if domains stop working until next replay on post.
     
  12. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,758
    Likes Received:
    1,886
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    That's correct. Note that should you encounter compatibility issues, you can use "WHM >> EasyApache 4" to uninstall HTTP2 and reinstall Mod_Ruid2 again to ensure your system reverts to the previous configuration.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
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