memcache issue

Yanxin Z. lists at ruby-forum.com
Thu May 5 19:52:43 MSD 2011


Hello,
I am using PHP to connect to memcache.

I connect memcache service in the PHP code as follows:
 $memcache = new Memcache;
 $memcache->connect('127.0.0.1', 11211); //connect to memcached server


Then when I connect to NGX server, I got 500 or 502 error.

However, if I run the memcache using php test.php directly, I can
connect to memcache server successfully.

I am using php-fpm.

Does anyone encounter the similar issue before?

Thanks,
Yanxin

-- 
Posted via http://www.ruby-forum.com/.



More information about the nginx mailing list