Below is my phpinfo() output for memcached
memcached
memcached support enabled
Version 2.1.0
libmemcached version 1.0.4
Session support yes
igbinary support no
json support no
I'm using an AWS Linux AMI which is redhat based I believe and uses YUM.
How can I get igbinary support enabled?
Does this have to happen at memcached installation time? I have memcached already working so is there a way I can add this support in now?
thank you
I used to compile the memcached stack manually, which included igbinary. This was before I started using the remi repo, which provides updated packages without all the overhead of manual compilation.
Here are the notes I used when I used to compile igbinary manually:
Now, if you view your phpinfo (or php -i from cli) igbinary support should be set to yes.
-- Update --
Be sure you have the following line in php.ini or igbinary.ini where php can read it:
-- Update #2 --
Forgot to mention, you need to compile memcached with the following flag in order for it to use igbinary:
-- Update #3 --
In case anyone stumbles across this in the future. Manually maintaining the PHP stack along with commonly used extensions is a pain, and usually not worth the extra effort. You are better off using your distro's package manager to handle all the heavy lifting, an example of installing php with memcached with igbinary support would look like:
If your distro's upstream version of php is older and you wish to use a newer version, take a look at the REMI repo: http://blog.famillecollet.com/pages/Config-en