Skip to main content

mod_ruid2 with php-fpm

Comments

3 comments

  • cPanelMichael
    Hello, Yes, you can use PHP-FPM with Mod_Ruid2 and the "Jail Apache Virtual Hosts using mod_ruid2 and cPanel" jailshell." option in "WHM >> Tweak Settings". Thank you.
    0
  • linuxman1
    Hello, Yes, you can use PHP-FPM with Mod_Ruid2 an the "Jail Apache Virtual Hosts using mod_ruid2 and cPanel" jailshell." option in "WHM >> Tweak Settings". Thank you.

    But what will be the benefits? will Jail Apache protect the server's file system from attacks coming via Virtual hosts PHP compromised sites when we use Jail Apache with anything but DSO? As I read once on Cpanel docs that we must use Jail Apache, mod_ruid2 with DSO to gain benefits, also I tried it my self, through PHP on a compromized web site I could browse the whole /etc although the Jail Apache was active with ruid2, and Cpanel Advisor says every thing is fine, but when I used DSO+openbase_dir protection, the tries failed to reach anything out side the home of the user. So I wish to use PHP-FPM on Cpanel instead of DSO, but only because of this security issue, I can't, do you have any advice?
    0
  • cPanelMichael
    Hello, To clarify from my last response, you can have PHP-FPM installed on the server along with DSO/Ruid2. That said, while you can have both readily available for use with your accounts, you can't actually use PHP-FPM and Ruid2 at the same time for a domain name. You'd have to use one or the other for each domain name (e.g. enabling PHP-FPM for a domain name disables DSO/Ruid2 for that domain name). If you are open to using CloudLinux, there's a thread here you may find helpful: Cloudlinux, EA4 and PHP Handlers. Impossible Triangle? Thank you.
    0

Please sign in to leave a comment.