Welcome! Log In Create A New Profile

Advanced

php-fpm & nginx: socket or port?

Posted by Evert 
Evert
php-fpm & nginx: socket or port?
March 01, 2011 04:06AM
Hi all,

What is best to use (performance-wise) when fpm & nginx are on the
same box: a socket, or a tcp-port?

Greetings,
Evert
Troll
Re: php-fpm & nginx: socket or port?
March 01, 2011 07:42AM
On 03/01/2011 09:43 AM, Evert wrote:
> Hi all,
>
> What is best to use (performance-wise) when fpm& nginx are on the
> same box: a socket, or a tcp-port?
>
> Greetings,
> Evert
Unix sockets are supposed to be much faster than tcp-port.
But some people had had a couple of problems with them at the beginning
and thus sockets are looked at as something hard to use or instable...
Well, I'm using them without any problem.
Re: php-fpm & nginx: socket or port?
June 06, 2011 10:54PM
Co-ask, I didn't find much difference with accelerator though. If you use shm, you might have problems, but with Unix socket on /tmp or sth. this should be similar.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 134
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready