webserver configuration option is not compatible with php-fpm or php-fastcgi ...

JohnyByk

Verified User
Joined
Mar 7, 2012
Messages
248
I updated today DA (build updade).

After build versions i see:
Code:
apache webserver configuration option is not compatible with php-fpm or php-fastcgi PHP mode with mod_ruid2 enabled.

my options.conf:
Code:
...
php1_release=5.3
php2_release=5.4
php1_mode=mod_php
php2_mode=suphp
mod_ruid2=yes
...

How to solve this problem?

Regards
 
Hello,

We received several reports about suPHP failing with mod_ruid2, so we added an additional check for it. The output has been fixed, and now suPHP is included into the sentence. I would recommend switching the PHP mode from mod_php to any other, or setting php2_release=no.

Thank you!
 
Unfortunately fastcgi and php-fpm cause a lot of problems (evidenced by the many topics on this forum). I had a lot of problems with fastcgi and did not get help on any issue.

We will use mod_php without PHP5.4 (php_release_2 = no). Maybe someday fastcgi or php-fpm will be caused fewer problems.

Thanks for your help
 
Have you tried php-fpm with the latest version of CustomBuild and DirectAdmin with no custom templates in /usr/local/directadmin/data/templates/custom ? It's a final implementation, and there are no plans to change the configuration anymore, because we've found it to be quite reliable on several of our boxes :) For FastCGI only the following is needed https://issues.apache.org/bugzilla/show_bug.cgi?id=37564, but PHP-FPM is superior. Please let me know if you're waiting for answers to any of your threads, I may have missed them in the past.
 
We have some problems with php-fpm and FastCGI. May all have been repaired?

Fastcgi:
1. http://forum.directadmin.com/showthread.php?t=45939
2. No custom php.ini. I know that php-fpm have custom php-fpm53 and php-fpm54 conf files but they disappearing after rewrites configurations

FastCGI:
http://forum.directadmin.com/showthread.php?t=45967

Code:
[Wed Mar 20 08:26:14.985289 2013] [fcgid:warn] [pid 3969:tid 47828724770560] (104)Connection reset by peer: [client 123.125.71.98:48116] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function

Code:
[Wed Mar 20 08:11:02.000388 2013] [fcgid:warn] [pid 3856:tid 47139203254016] (9)Bad file descriptor: [client 83.26.153.216:3338] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function, referer: http://www.traders-co.ru/
Code:
[Tue Mar 19 20:01:13.250010 2013] [fcgid:warn] [pid 6052:tid 47156042962688] (32)Broken pipe: [client 178.183.247.29:49972] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function, referer: http://www.traders-co.ru/

I have no idea how to solve these problems. When they appear, the client sees a blank page.

We want use php-fpm. It's faster and safer but we can't do that without resolve the problems.
RLimitNPROC work's with FastCGI and php-fpm?

Regards

Regards
 
Last edited:
I don't see any reports about php-fpm in your post, just php-fastcgi. For webapps to work with fastcgi you need to run "./build rewrite_confs", which rewrites your httpd-alias.conf file and redirects aliases to hostname (you don't need that with php-fpm). About #2, custom php.ini is available for php-fastgi, it needs to be placed in /usr/local/directadmin/data/users/user/php/php.ini. May I know the problems with php-fpm? Because we're running it on a few huge production boxes with no problems now.
 
I try again php-fpm. How can i run custom php-fpm.conf for each user (php-fpm)?

Regards
 
Hi,

does it mean that the following configuration is not anymore supported?

php1_release=5.5
php2_release=5.3
php1_mode=mod_php
php2_mode=suphp
php2_mode=suphp
htscanner=yes
php_ini=yes
php_timezone=CET
#Possible values - production or development
php_ini_type=production
ioncube=yes
x-mail-header=yes
zend=no
apache_ver=2.4
mod_ruid2=yes
secure_htaccess=no
harden-symlinks-patch=yes
use_hostname_for_alias=auto
 
Hi,

does it mean that the following configuration is not anymore supported?

php1_release=5.5
php2_release=5.3
php1_mode=mod_php
php2_mode=suphp
php2_mode=suphp
htscanner=yes
php_ini=yes
php_timezone=CET
#Possible values - production or development
php_ini_type=production
ioncube=yes
x-mail-header=yes
zend=no
apache_ver=2.4
mod_ruid2=yes
secure_htaccess=no
harden-symlinks-patch=yes
use_hostname_for_alias=auto

I think it must be:

php1_release=5.5
php2_release=5.3
php1_mode=suphp
php2_mode=suphp
 
I repeat my question:
Is possible to run custom php-fpm53.conf or php-fpm54.conf?

Regards
 
Yes, it is possible, and John is going to add a way to customize them directly from DA admin zone. Please mail support [@] directadmin.com, he should reply when is that going to happen in DA pre-release. For now you should customize them from terminal. Another great way for customizing that for hosts/directories might be http://php.net/manual/en/ini.sections.php. "HOST=" block is probably what you're looking for.
 
Yes, it is possible, and John is going to add a way to customize them directly from DA admin zone. Please mail support [@] directadmin.com, he should reply when is that going to happen in DA pre-release. For now you should customize them from terminal. Another great way for customizing that for hosts/directories might be http://php.net/manual/en/ini.sections.php. "HOST=" block is probably what you're looking for.
smtalk, are you talking about customize /usr/local/directadmin/data/users/*/php/php-fpm55.conf or /usr/local/php55/etc/php-fpm.conf or both?
 
I can't use fastcgi beacuse have lot bugs for me (Connection reset by peer, Bad file descriptor, Broken pipe).

I want use php-fpm but i must know how can i edit these files manually? Where they are? Changes do not dissapear after build rewrite_confs? Files are in /usr/local/directadmin/data/users/*/php or another place? I don't need edit custom files directly from DA.

Regards
 
Last edited:
Back
Top