[root@localhost conf]# service php-fpm restartGracefully shutting down php-fpm . doneStarting php-fpm [19-Oct-2015 15:42:00] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/memcache.so' - /usr/lib64/php/modules/memcache.so: undefined symbol: zend_new_interned_string in Unknown on line 0 done
网上大概搜了一下:原因是因为:命令行PHP是32位的,所以它不能加载64位扩展
解决办法
[root@localhost memcache-3.0.8]# find / -name php-config/usr/bin/php-config/usr/local/php/bin/php-config/lnmp1.2-full/src/php-5.3.29/scripts/php-config[root@localhost memcache-3.0.8]# ./configure -enable-memcache --with-php-config=/usr/local/php/bin/php-config
*****************************************************************************************************************************************************************
今天像往常一样装memcache和php的扩展,参考:http://blog.youkuaiyun.com/design321/article/details/41547523
装完memcache.so在
/usr/lib64/php/modules/memcache.so
重启php-fpm时报开头的错,思路应该是.so编得有问题,
配置需要指定php-conf,我看以前都是用的/usr/bin/php-config这个目录,抱着试试的态度重编用/usr/local/php/bin/php-config可以了。