I need to use different versions of lampp (xampp for linux).
I recently also need to use memcache with any version of lampp I might need to use.
Everything is going right if I use the last lampp version 1.7.7 which contains PHP 5.3.8
I simply do
sudo apt-get install php5-memcache
sudo cp -av '/usr/lib/php5/20090626+lfs/memcache.so' '/opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/memcache.so'
The problem is when I try to do the same with an older version of lampp.
For example, I uninstalled lampp 1.7.7 and php5-memcache, then I installed lampp 1.7.1, which contains PHP 5.2.9, but doing
sudo apt-get install php5-memcache
I get a newer version of memcache (20090626) for an older version of php (20060613). In fact if I try to copy
sudo cp -av '/usr/lib/php5/20090626+lfs/memcache.so' '/opt/lampp/lib/php/extensions/o-debug-non-zts-20060613/memcache.so'
I get this error while starting lampp:
Starting XAMPP for Linux 1.7.1...
PHP Warning: PHP Startup: memcache: Unable to initialize module
Module compiled with module API=20090626, debug=0, thread-safety=0
PHP compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
in Unknown on line 0
If I uninstall php5-memcahe and remove memcache.so from lampp extension
sudo apt-get remove php5-memcache
sudo rm /opt/lampp/lib/php/extensions/no-debug-non-zts-20060613/memcache.so
if I try to do
sudo pecl i memcache
I get
pecl/memcache is already installed and is the same as the released version 2.2.6
install failed
So how can I install memcache.so version 20060613 when I'm using lampp 1.7.1?