PHP5.5 (mod_php + mod_ruid2) + PHP5.3 (suPHP) Fail

shadowq

Verified User
Joined
Dec 5, 2010
Messages
79
Hi,

I'm using CB 2.0 with PHP 5.5 (mod_php with mod_ruid2) and PHP 5.3 (suphp). I don't really care how the second PHP is running. I tried with mod_php, but was met with limitation. I tried with fpm, but was met with error.

options.conf settings:
Code:
#PHP Settings
php1_release=5.5
php1_mode=mod_php
php2_release=5.3
php2_mode=suphp

When using the PHP Version selector in DA, it doesn't do anything (like mentioned at http://forum.directadmin.com/showthread.php?t=49116). When using a .htaccess file, I get a suphp error.
Code:
 Directory /home is not owned by USER
(Where USER is the DA username).

I cannot figure out why it is wanting /home to be owned by that user. Any help?
I removed any custom httpd templates at /usr/local/directadmin/data/templates/custom/ and rewrote conf files with no luck.
I have the latest DA version.
I have rebuilt using CB ./build all.

Thanks in advance,
Jarrod.
 
It must be mod_ruid2 causing the problems for suPHP, please try turning mod_ruid2 off.
 
Hi smtalk,

Thanks- you're correct. Disabling mod_ruid2 makes suphp work correctly. What impact will this have on users using mod_php, now without mod_ruid2?

Cheers,
Jarrod.
 
mod_php would run under apache permissions, so I'd suggest using suPHP as both PHP modes or give PHP-FPM or PHP-FastCGI a try :)
 
Thanks smtalk.

I'm trying out FastCGI. I don't think it's configured correctly though. My opcache isn't caching anything (aside from the gui php file, and phpinfo file that I'm checking details with). Nothing else is being cached. Does that mean by apache processors aren't persistent?

Thanks,
Jarrod.
 
It might be /etc/httpd/conf/extra/httpd-fcgid.conf related problem, may you give PHP-FPM a try just to say if the caching works fine on the system with it?
 
Hi smtalk,

I've been using PHP-FPM now, and am quite happy with the performance (and it's utilising the caching system nicely).

Thanks for all your help!

Jarrod.
 
Back
Top