I just installed memcached on my Mac OS. It installed perfectly and when I type in memcached in Terminal I get this:
failed to listen on TCP port 11211 tcp
listen: Address already in use
And I have a script in my localhost that contains this:
$memcache = new Memcache();
But I get an error thrown saying Fatal error: Class 'Memcache' not found.
How can I get memcached to work, is it because the port 11211 is not listened to which probably doesn't make memcached work?
When I sudo pecl install memcache
it shows
pecl/memcache is already installed and is the same as the released version 2.2.7 install failed