Debian Zend OPcache需要Zend引擎API版本220090626

Debian Zend OPcache需要Zend引擎API版本220090626,debian,plesk,opcache,Debian,Plesk,Opcache,我在Debian挤压下将PHP5.3更新为5.4。之后,我尝试安装OPcache,这就是我所做的: apt-get install build-essential php5-dev unzip cd /usr/src wget https://github.com/zend-dev/ZendOptimizerPlus/archive/master.zip unzip master.zip cd /usr/src/ZendOptimizerPlus-master phpize ./configur

我在Debian挤压下将PHP5.3更新为5.4。之后,我尝试安装OPcache,这就是我所做的:

apt-get install build-essential php5-dev unzip
cd /usr/src
wget https://github.com/zend-dev/ZendOptimizerPlus/archive/master.zip
unzip master.zip
cd /usr/src/ZendOptimizerPlus-master
phpize
./configure
make
make test
make install

vi /etc/php5/conf.d/opcache.ini


;zend_extension=/usr/lib/php5/20100525/opcache.so ;PHP 5.4 can't use this, file not exist on my server
zend_extension=/usr/lib/php5/20090626/opcache.so ;PHP 5.3 got only this one (?)
opcache.memory_consumption=128
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=8000
opcache.revalidate_freq=60
opcache.fast_shutdown=1
opcache.enable_cli=1

/etc/init.d/apache2 restart

php -v
Zend OPcache requires Zend Engine API version 220090626.
The Zend Engine API version 220100525 which is installed, is newer.
Contact Zend Technologies at http://www.zend.com/ for a later version of Zend OPcache.

PHP 5.4.31-1~dotdeb.0 (cli) (built: Jul 25 2014 18:40:42)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
with the ionCube PHP Loader v4.6.0, Copyright (c) 2002-2014, by ionCube Ltd.
我做错了什么?phpize告诉我:

Configuring for:
PHP Api Version:         20090626
Zend Module Api No:      20090626
Zend Extension Api No:   220090626
这不应该是:20100525和PHP5.4吗


请帮忙

您所犯的错误是执行默认值。/configure您应该具有-enable-opcache,当然,但是您还需要指定-with-php-config=…/php-config,其中。。。表示5.4 php配置的路径。

只有返回旧版本5.3.10的/usr/bin/php配置和相同的symlink/usr/bin/php-config5->/etc/alternations/php配置。。。如果您是在所有当前版本中进行测试的php开发人员,甚至是提供5.3、5.4、5.5和5.6的系统管理员,比如说,php-v将返回版本5.4.3