且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何升级php 5.4.40到5.6在centos 6 32位?

更新时间:2023-02-22 19:31:47

使用直接管理员,您需要访问 / 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文件中删除行: https://forum.directadmin.com/showthread.php?t=43301

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.