php5.4forsolaris的简单介绍

发布时间:2023-01-04

本文目录一览:

  1. 怎样升级Wampsever中PHP版本
  2. [如何升级服务器系统环境为php5.4,并安装zend loader](#如何升级服务器系统环境为php5.4,并安装zend loader)
  3. 编译php5.4的时候出现错误----configure: error: in `/usr/local/src/php540/php-5.4.0

怎样升级Wampsever中PHP版本

  1. 下载php版本压缩包,解压php版本压缩包
  2. 停掉wamp服务
  3. 替换wamp\php下的php文件,从已存在的php版本文件中(如php5.3.0, 复制以下文件: php.iniphpForApache.iniwampserver.conf到php5.4.40文件夹.
    打开php5.4.40文件夹的以下文件: php.iniphpForApache.ini并且搜索5.3.0然后替换为php5.4.40。
  4. 替换wamp\Apache2\bin目录下的php5nsapi.dllphp5ts.dll(对应当前php版本的) 修改\Wamp\bin\apache\Apache2.2.11\conf\httpd.conf中的LoadModule
    php5_module "D:/Wamp/bin/php/php5.3.10/php5apache2_2.dll"
    php5_module "D:/Wamp/bin/php/php5.4.40/php5apache2_2.dll"
  5. 重启wamp服务, phpinfo()测试 关于这个问题,差不多就是这个样子的了,你如果不明白,可以自己去后盾瞅瞅,我这些都是在后盾上学的,有空可以去看一下,就算不喜欢也没关系啊,何乐而不为呢?

如何升级服务器系统环境为php5.4,并安装zend loader

最近zend发布了支持php5.4的ZendGuardLoader,以前一直只支持5.3,因为一个vps的环境是php5.4,毫不犹豫的我想应该进行安装ZendGuardLoader,首先下载ZendGuardLoader,官方要进行注册才能下载,所以请下载我这里现成的for32位! ZendGuardLoader-70429-PHP-5.4-linux-glibc23-i386.tar.gz 解压后将 ZendGuardLoader.so 上传到服务器 /usr/zend/ 目录 找到你所在环境中的php.ini位置,然后编译php.ini,在合适的位置加入

[Zend Guard]
zend_extension=/usr/zend/ZendGuardLoader.so
; Enables loading encoded scripts. The default value is On
zend_loader.enable=1
; Optional: following lines can be added your php.ini file for ZendGuardLoader configuration
zend_loader.disable_licensing=0
zend_loader.obfuscation_level_support=3
zend_loader.license_path=

重启环境,比如 /etc/init.d/httpd restart,至此ZendGuardLoader搞定。

编译php5.4的时候出现错误----configure: error: in `/usr/local/src/php540/php-5.4.0'

错误如下:

checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for cc... cc
checking whether the C compiler works... no
configure: error: in /usr/local/src/php540/php-5.4.0': configure: error: C compiler cannot create executables See config.log' for more details.

分析,百度了很长时间终于发现,原来是缺少gcc 所以:

yum install -y gcc