lighttpd forum XCache > problem with a debian

Posted by jfsenechal (Guest)
on 25.01.2007 13:35
Hello,

I have installed xcache from the source (1.0.1)

If I excute : php -v

I have this message :

XCache requires Zend Engine API version 20021010.
The Zend Engine API version 20050606 which is installed, is newer.
Contact mOo at http://xcache.lighttpd.net for a later version of XCache.

PHP 4.4.4-8 (cli) (built: Nov 22 2006 21:51:28)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies


How can I resolve it ?

Thanks
Posted by judas iscariote
on 25.01.2007 18:20
jfsenechal wrote:
> Hello,
> 
> I have installed xcache from the source (1.0.1)
> 
> If I excute : php -v
> 
> I have this message :
> 
> XCache requires Zend Engine API version 20021010.
> The Zend Engine API version 20050606 which is installed, is newer.
> Contact mOo at http://xcache.lighttpd.net for a later version of XCache.
> 
> PHP 4.4.4-8 (cli) (built: Nov 22 2006 21:51:28)
> Copyright (c) 1997-2006 The PHP Group
> Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
> 
> 
> How can I resolve it ?
> 
> Thanks

need to recompile xcache agains the correct headers, you are loading a 
module compiled with and old api. check for the correct php-config 
script and pass the --with.php-config=/path/to/new/php-config configure 
line.
Posted by Guest (Guest)
on 26.01.2007 10:29
judas iscariote wrote:
> jfsenechal wrote:
>> Hello,
>> 
>> I have installed xcache from the source (1.0.1)
>> 
>> If I excute : php -v
>> 
>> I have this message :
>> 
>> XCache requires Zend Engine API version 20021010.
>> The Zend Engine API version 20050606 which is installed, is newer.
>> Contact mOo at http://xcache.lighttpd.net for a later version of XCache.
>> 
>> PHP 4.4.4-8 (cli) (built: Nov 22 2006 21:51:28)
>> Copyright (c) 1997-2006 The PHP Group
>> Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
>> 
>> 
>> How can I resolve it ?
>> 
>> Thanks
> 
> need to recompile xcache agains the correct headers, you are loading a 
> module compiled with and old api. check for the correct php-config 
> script and pass the --with.php-config=/path/to/new/php-config configure 
> line.

I try like this :

 ./configure --with-php-config=/etc/php4/apache2/php.ini --enable-xcache

But I have this message :

./configure: line 1: /etc/php4/apache2/php.ini: Permission denied
configure: error: Cannot find php-config. Please use 
--with-php-config=PATH

I execute in root




Posted by Jan (Guest)
on 26.01.2007 11:47
Guest wrote:
> I try like this :
> 
>  ./configure --with-php-config=/etc/php4/apache2/php.ini --enable-xcache
> 
> But I have this message :
> 
> ./configure: line 1: /etc/php4/apache2/php.ini: Permission denied
> configure: error: Cannot find php-config. Please use 
> --with-php-config=PATH
> 

php.ini != php-config
php-config is (at least in my box) found where the php-fcgi resides.
so check whether you find a (the right) file named php-config on your 
harddisk
Posted by Guest (Guest)
on 18.03.2008 20:48
yum install php-devel

should do it.