本文介绍了如何升级php 5.4.40到5.6在centos 6 32位?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的日志中有此错误:

我发现我必须升级我的php版本。

I found out I have to upgrade my php version. I tried some way to update and it's not upgraded.

推荐答案

使用直接管理员,您需要访问 / usr / local / directadmin / custombuild /

With direct admin you will need to access /usr/local/directadmin/custombuild/

一次在目录中使用文本编辑器访问此文件: options .conf

once in the directory access this file with a text editor: options.conf

更改所需的值并运行以下命令。

Change the required values and run the below commands.

cd /usr/local/directadmin/custombuild
./build update
./build apache
./build php d

或者,您可以按如下设置:

Alternatively you can set it like this:

cd /usr/local/directadmin/custombuild
./build set php5_ver 5.3
./build set mysql 5.1
./build update
./build clean
./build apache d
./build php d
./build mysql d


$ b b

要重建zend:

To rebuild zend:

cd /usr/local/directadmin/custombuild
./build zend

如果你遇到zend已经安装,阅读这篇文章从你的php.ini文件中删除行:

If you encounter that zend is already installed read through this post about removing lines from your php.ini file: https://forum.directadmin.com/showthread.php?t=43301

感谢directadmin论坛。

Courtesy of the directadmin forums.

这篇关于如何升级php 5.4.40到5.6在centos 6 32位?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-28 15:15