mapleleaf Posted May 23, 2010 Share Posted May 23, 2010 I installed Memcache locally and I see it in phpinfo but it fails to connect <?php $memcache = new Memcache; $memcache->connect('localhost', 11211) or die ("Could not connect"); ?> In my php.ini it is enabled. What did I miss in the set up process. I restarted the server. Relevant section of the php.ini memcache memcache support enabled Active persistent connections 0 Revision $Revision: 1.94 $ Directive Local Value Master Value memcache.allow_failover 1 1 memcache.chunk_size 8192 8192 memcache.default_port 11211 11211 memcache.hash_function crc32 crc32 memcache.hash_strategy standard standard memcache.max_failover_attempts 20 20 Any thoughts much appreciated Quote Link to comment Share on other sites More sharing options...
mapleleaf Posted May 23, 2010 Author Share Posted May 23, 2010 Too late to edit. That was relevant section of phpinfo() This is in php.ini extension=memcache.so Quote Link to comment Share on other sites More sharing options...
mapleleaf Posted May 23, 2010 Author Share Posted May 23, 2010 Bump. Anyone have a clue?? Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted May 23, 2010 Share Posted May 23, 2010 Do you actually have a memcached server running on your system? The php language extension is just the client interface that allows you to use the memcached server. Quote Link to comment Share on other sites More sharing options...
mapleleaf Posted May 24, 2010 Author Share Posted May 24, 2010 That is a good question. I thought I had it downloaded and installed. It seems that PHP thinks it is there because the extension is loaded <?php if(extension_loaded('Memcache')){ // Memcache is enabled. echo 'Yes!!'; } came back with Yes!! What other steps do I need to take to get in running? Using Mamp. Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted May 24, 2010 Share Posted May 24, 2010 http://memcached.org/ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.