111 is just the ECONNREFUSED error code value from underlying socket
Apologies if you've tried or thought of these top-of-head ideas already...
a - is memcached really running? on port 11211?
b - can you telnet to it? can you telnet as the same user as your
websvr/php, on the same box?
c - if a is yes and b is no, you might have weird firewall rules?
and your error is
> Memcache::connect() [memcache.connect]: Server 127.0.0.1 (tcp 11211)
> failed with: Connection refused (111)
so already there is a problem. you have the server listening on
10.0.0.40 and you are trying to connect to 127.0.0.1. If you have a
specific address you are listening on you need to use that in your php
code to connect to, or if you mean to listen on all addresses use -l
this of course still doesn't help resolve weather or not you have
When you're getting started with memcached, it might be a good idea to
start it without the -d option the first time. We daemonize really early
(maybe this is fixable...) so a startup error isn't always printed when
you use -d.
By removing the daemonize option it'll run in the foreground. So you can
see why it doesn't start, but you'll have to remember to restart it with
-d once you're sure it works.