F
F
farafontov2012-08-21 00:14:42
Yii
farafontov, 2012-08-21 00:14:42

How to remove getaddrinfo failed error when accessing memcached?

Here is the error, hetzner ubuntu server 10.04

MemcachePool::get(): php_network_getaddresses: getaddrinfo failed: Name or service not known

On a home test, the same thing with ubuntu 12.04
On my win7 memcached machine in a virtual machine (ubuntu) it works fine
. As I understand it, in ubunt you need to add somewhere so that the IP address resolves normally?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Sundukov, 2012-08-21
@alekciy

Yes, the problem is resolving. There are several possible options. The most likely - as I understand it, php is stuffed into a chroot? Then: php-fpm+chroot = getaddrinfo failed
PS Don't forget to restart php after making changes.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question