Mod_Ruid2 alternative when using multiple PHP versions

DionWales

Verified User
Joined
Mar 9, 2011
Messages
13
Hi,

I'm running mod_ruid2 with only one PHP version. But I have a few sites that are running better on PHP 7, so I would like to have that as a second option. I read a lot on this forum and found out that mod_ruid2 ans two PHP versions aren`t working.

What is the best handler to choose for PHP 5.6 and which for PHP 7.1? How about security? In the past you had suPHP which is EOL. Now mod_ruid2 is not working with multiple PHP setup, how to keep it secure?
 
You have to go with PHP-FPM, that way you'll be able to use multiple PHP versions and keep the functionality you had with mod_ruid2

Best regards
 
Allright, so I have to disable mod_ruid, define 2 PHP versions and use for both php-fpm?
Anything else I have to be aware of?
 
Code:
I wanted to enable mod_ruid2 for only a few domains and did the following:

Build mod_ruid2.so:
# ./build set mod_ruid2 yes
# ./build mod_ruid2
# ./build set mod_ruid2 no
# ./build rewrite_confs

Add this to /etc/httpd/conf/extra/httpd-includes.conf:
LoadModule ruid2_module /usr/lib/apache/mod_ruid2.so
# ./build rewrite_confs

Add this to the Custom HTTPD Configuration for the chosen domains:
Code:
	<IfModule mod_ruid2.c>
		<Directory |DOCROOT|>
			RMode config
			RUidGid |USER| |GROUP|
			RGroups apache access
			#RGroups @none
		</Directory>
	</IfModule>
In all other domains the php1 and php2 configs remained as in options.conf
 
Last edited:
Back
Top