How to disable mod_ruid2 in order to install php-fpm mode

djmostek

New member
Joined
Nov 14, 2014
Messages
7
According to the guide from: http://help.directadmin.com/item.php?id=459 I try to switch from mod_php (with mod_ruid2) to php-fpm. When I changed php1 mod to php-fpm by typing
Code:
./build set php1_mode php-fpm
I tried then to build new php by typing
Code:
 ./build php n
The result:
Code:
apache webserver configuration option is not compatible with php-fpm, lsphp or p
hp-fastcgi PHP mode with mod_ruid2 enabled.

I must add that I have erased "LoadModule ruid2_module /usr/lib/apache/mod_ruid2.so" line from
/etc/httpd/conf/extra/httpd-phpmodules.conf file which is included in the main Apache HTTP server configuration file located in /etc/httpd/conf/httpd.conf.

What am I doing wrong?
 
Glad to hear such a quick response ;)

And of course I did not change the value in options.conf - now changed and work
Code:
 ./build php n
worked.

Thank you.

PS. So can I be sure that after completing this procedure http://help.directadmin.com/item.php?id=459 the custombuild will do everything for me and I will have my apache with php-fpm working from now on?
 
Glad to hear such a quick response ;)

And of course I did not change the value in options.conf - now changed and work
Code:
 ./build php n
worked.

Thank you.

PS. So can I be sure that after completing this procedure http://help.directadmin.com/item.php?id=459 the custombuild will do everything for me and I will have my apache with php-fpm working from now on?

Unfortunately my site which uses Wordpress CMS went down when changed from mod_php to php-fpm :( (there's blank white page instead of site)
 
Regarding the config files yes, CB does everything for you.

Regarding WP site, you should check log for the domain in /var/log/httpd/domains/DOMAIN.error.log

Regards
 
I changed from php-fpm to fastcgi and WP works correctly. However, looking in other site log file enabled me, by coincidence, to resolve other issue regarding page display but on Presta CMS :)
 
Search results points to this thread, but above might not work. To disable mod_ruid2 you'll need to enter this:

./build set mod_ruid2 no
./build rewrite_confs
 
Back
Top