Redis with NginX #274

Closed
VidhyaKumar opened this Issue Nov 19, 2012 · 3 comments

Projects

None yet

4 participants

@VidhyaKumar

Having problems connecting PHP with Redis using NginX + PHP-FPM, "Server went away" response returned when using php-redis extension. Any possible solutions?

Server Specs:

CentOS 6

NginX 1.2.5

PHP 5.4.8 (cli) (built: Oct 18 2012 10:59:19)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies
with eAccelerator v1.0-dev, Copyright (c) 2004-2012 eAccelerator, by eAccelerator
with the ionCube PHP Loader v4.2.2, Copyright (c) 2002-2012, by ionCube Ltd.

@AugustHell

There seems to be a too low timeout or maybe the default is no timeout at all (haven't browsed the code).
That works for me with my nginx:
$redis->connect('127.0.0.1',6379,30);
where 30 = 30s timeout

@michael-grunder
Member

Hey guys,

We actually use phpredis with nginx and php-fmp for every production server we have, so I don't think there are issues specifically with these things working together.

Have you tried the suggestion made by @AugustHell?

@fotografi

No description provided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment