Apache Module — Ruid2
Last modified: 2025 February 19
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_cachemod_cache_diskmod_fcgidmod_lsapimod_memcachemod_mpm_eventmod_mpm_itkmod_mpm_workermod_suphpmod_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_fcgidApache module. If you enablemod_ruid2while usingmod_fcgid, the system will change your PHP Hander to suPHP. If you enable themod_ruid2Apache 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).