当我打电话时收到此错误php -v
Failed loading opcache.so: opcache.so: cannot open shared object file: No such file or directory
PHP 5.3.10-1ubuntu3.9 with Suhosin-Patch (cli) (built: Dec 12 2013 04:27:25)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
有人有办法解决这个问题吗?!我在网上找不到任何解决办法!!!
答案1
opcache.ini
zend_extension=opcache.so
->zend_extension=/usr/lib/php5/20100525/opcache.so
在 Ubuntu 12.04、PHP5.4 上为我修复了这个问题