PHP modules don't match?

Fred.

Verified User
Joined
Sep 5, 2009
Messages
216
Hi,

I updated php to 5.4 but now i have a problem with the modules for Xcache and Memcache.
Xcache : 3.0.1
Memcache : 2.2.6

I tried to find a solution, but i was unable to fix it.
Does anyone know how i can fix this?


Code:
[root@server02 xcache-3.0.1]# php -v
PHP Warning: PHP Startup: XCache: Unable to initialize module
Module compiled with module API=20090626
PHP compiled with module API=20100525
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: memcache: Unable to initialize module
Module compiled with module API=20090626
PHP compiled with module API=20100525
These options need to match
in Unknown on line 0
PHP 5.4.11 (cli) (built: Feb 6 2013 00:17:42) 
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies

Thanks! :)
 
Last edited:
If you update to a new version you need to reinstall the modules as well. They had been compiled for your previous php setup so are not compatible anymore.
 
Can you tell me how to do that Arieh?
I never had to do that before.
 
Those modules are not supported by DA so it's kinda custom work. But not that difficult if you know what you're doing.. you could look at this page http://www.bxtra.net/articles/2008-...ntos-52-64-bit-that-has-directadmin-installed for xcache and maybe search for something similar for memcache. Or maybe someone else on this forum could help. Or as you already installed them before ask the person who did that for you back then.
 
Thanks Arieh,

That looks almost like i did it.

Tonight i'm gonna add these to php.ini because there not there...

Code:
zend_extension = /usr/local/lib/php/extensions/no-debug-non-zts-20100525/xcache.so
zend_extension_ts = /usr/local/lib/php/extensions/no-debug-non-zts-20100525/xcache.so

And i hope it's working then.
The file xcache.so is there.
 
It worked :)

Code:
PHP 5.4.11 (cli) (built: Feb  6 2013 23:58:08) 
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
    with XCache v3.0.1, Copyright (c) 2005-2013, by mOo
    with XCache Cacher v3.0.1, Copyright (c) 2005-2013, by mOo

But unfortunately i've had another problem with php 5.4 so still on 5.3 :p
 
Back
Top