Apache Module — Ruid2

Last modified: August 23, 2024


The mod_ruid2 Apache module is a per-request module that allows a domain’s HTTP requests to run as the owner of that domain. This module is similar to suEXEC and suPHP, but it applies to all HTTP requests.

The EasyApache 4 Default profile installs this module by default with the mod_cgid Apache module.


Requirements

This module does not possess any specific requirements.

Compatibility

The mod_ruid2 Apache module uses a complex security model and may introduce security issues if it is used with some other modules.

When you use this module, EasyApache disables the following Apache modules:

  • mod_cache
  • mod_cache_disk
  • mod_fcgid
  • mod_lsapi
  • mod_memcache
  • mod_mpm_event
  • mod_mpm_itk
  • mod_mpm_worker
  • mod_suphp
  • mod_userdir

Other considerations

If you use the mod_ruid2 Apache module, you must understand the following caveats:

  • This module works with all PHP Handlers except the mod_fcgid Apache module. If you enable mod_ruid2 while using mod_fcgid, the system will change your PHP Hander to suPHP. If you enable the mod_ruid2 Apache module, your PHP handler will not change unless you use the FCGId PHP handler.
  • We recommend that you use this module if you use the CGI or DSO PHP handlers.
  • For security reasons, the system disables the POSIX PHP extension when you use mod_ruid2.

How to install or uninstall the module

You can install and uninstall the mod_ruid2 Apache module in WHM’s EasyApache 4 interface (WHM » Home » Software » EasyApache 4).