PHP-FPM and Mod_Ruid2 with PHP7.1

Active8

Verified User
Joined
Jul 13, 2013
Messages
1,762
I have read lot of post about php-fpm in combinations with mod_ruid2 , old post says you cant use, new post says its ok

Made a test vps with php7.1 with php-fpm with mod_ruid2 everything seems ok but im not sure, installed WP on it and it works as it should, but im still in doubt if the mod_ruid2 is then necessary , im coming from mod_php and mod_ruid2 was very handy also for write permissions on files and directorys

Can some one enlight me about this ?
 
You do not need mod_ruid2 when using php-fpm.

The purpose of mod_ruid2 is to allow run of scripts with the users permission when Apache is using mod_php. In that mode Apache is ran with root and child processes are being setuid-ed to the proper user so they can't touch other user files.

The php-fpm is completely different approach. With php-fpm the apache does not compile php scripts - everything is done by external binary (called php-fpm). Therefore there is absolutely no need for mod_ruid2 when you are using php-fpm.
 
Back
Top