PHP-FPM+ Apache (CB2) Error 500 on some sites and scripts

rnc

Verified User
Joined
Jun 8, 2013
Messages
72
Hi,
i have and issue and ,y searches about this specefic issue end to nowhere . so i m creating this topic

i have a server with PHP-FPM(5.5)+apache ( Second PHP as Fastcgi (5.4)
This server have opcache and modsecurity enabled

and i get error 500 or server unavailable on piwik Installation ( under a subdomain of main Domain )

here is my httpd log:
[Mon Jul 13 18:11:11.853022 2015] [proxy_fcgi:error] [pid 2163:tid 139868143245056] (104)Connection reset by peer: [client 5.x.x.x:46487] AH01075: Error dispatching request to : , referer: https://piwik.domain.com/index.php?module=CoreHome&action=index&idSite=6&period=day&date=today

i know this is must of the time related to fcgi timeout
but i dont know where to set time out correctly as php fpm work as separated service with php

please answer
thanks
 
Last edited:
You can set timeout in php.ini

/usr/local/php55/lib/php.ini

seach

default_socket_timeout

change to what you want

then restart service

I wonder why you do not use both of PHP version php-fpm
 
You can set timeout in php.ini

/usr/local/php55/lib/php.ini

seach

default_socket_timeout

change to what you want

then restart service

I wonder why you do not use both of PHP version php-fpm

Hello thanks
i will try that and update this topic
about both version PHP-FPm as i know custombuild 2 is not designed to work that way

do you think is this ok to have both mode as PHP-FPM !?

and about the mode do you think php-fpm is best mode to using with Apache or nginx_apache ?
 
Hello thanks
i will try that and update this topic
about both version PHP-FPm as i know custombuild 2 is not designed to work that way

do you think is this ok to have both mode as PHP-FPM !?

and about the mode do you think php-fpm is best mode to using with Apache or nginx_apache ?

What's made you think that custombuild 2 didn't designed for 2 versions of PHP with php-fpm ?

I used it in 2 servers and it work very well.

What is custombuild didn't designed for is mod_php and php-fpm or mod_php and fastcgi. you should read the FAQ again.

http://forum.directadmin.com/showthread.php?t=44743
 
Back
Top