opcache加载失败

问答中心分类: OneinStackopcache加载失败
rdpclip asked 8年 ago
[root@web_node13 oneinstack]# service php-fpm start
Starting php-fpm Failed loading opcache.so: opcache.so: cannot open shared object file: No such file or directory
done
今晚上刚刚下载的阿里云的OSS oneinstack安装包,就报这个错误了,以前都没有!

3 Answers
rdpclip answered 8年 ago
简单看了一下,是不是作者改变install.sh的脚本导致的呢?
/usr/local/php/etc/php.ini  选择了安装opcache但是没有opcache的配置,老版本的安装包都有。
还有,是不是memcached和opcache不能同时安装呢?

oneinstack answered 8年 ago
有的,改变了方式,在/usr/local/php/etc/php.d/ext-opcache.ini

rdpclip answered 8年 ago
@oneinstack  我看了/usr/local/php/etc/php.d/ext-opcache.ini  
这个没有填写opcache.so的绝对路径
[opcache]
zend_extension=opcache.so
改成
[opcache]
zend_extension=/usr/local/php/lib/php/extensions/no-debug-non-zts-20090626/opcache.so
恢复正常