mod_ruid2 is an apache module, so it does not prevent you from having 2 instances of PHP installed, however, only one of them could be installed as a module of apache (phpX_mode=mod_php), the second mode of PHP must be suPHP, because FastCGI, PHP-FPM and LSPHP aren't supported in mod_ruid2 environment.