Lamp安装 php-v5.6【ZendGuardLoader】的问题
标签(空格分隔):php,linux
Apache日志:
就这个问题导致无法解析运行php文件。下面是网上找的解决方案
ZendGuardLoader简介
、
从PHP5.3开始Zend Guard将取代Zend Optimizer~下载安装Zend Guard,实际上不用装Zend Guard了 直接下载LOADER就可以了,下好之后扔进usr/local/zend/ 修改php.ini就可以了~和以前的Zend Optimizer一样。
32位 http://downloads.zend.com/guard/5.5.0/ZendGuardLoader-php-5.3-linux-glibc23-i386.tar.gz
64位 http://downloads.zend.com/guard/5.5.0/ZendGuardLoader-php-5.3-linux-glibc23-x86_64.tar.gz
第一种方法:
cd /home
wget http://downloads.zend.com/guard/5.5.0/ZendGuardLoader-php-5.3-linux-glibc23-i386.tar.gz
tar -zxvf cd ZendGuardLoader-php-5.3-linux-glibc23-i386.tar.gz
cd ZendGuardLoader-php-5.3-linux-glibc23-i386
cd php-5.3.x/
cp ZendGuardLoader.so /usr/local/php/lib/php/
vim /usr/local/php/etc/php.ini
添加下面的内容
[Zend]
zend_extension=/usr/local/php/lib/phpZendGuardLoader.so
第二种方法
首先看 /usr/local/zend/ZendGuardLoader.so 有没有这个文件
如果有: 直接在php.ini 添加
第三种方法
删除 /usr/local/php/conf.d/ 下的ZendGuardLoader.ini 文件
reboot 重启服务器