# directadmin升级和降级php

> 来源：梦飞idc云平台 | 原文：https://www.mfisp.com/1215.html | 发布：2021-10-29 | 更新：2021-11-05 | 分类：运维技术

directadmin升级和降级php

directadmin面板升级和降级配置环境软件版本很方便，下面2种方法，都是网络到处都有的

 

一种：登录ssh 进入目录

 

```
cd /usr/local/directadmin/custombuild/
```

 

然后，编辑options.conf：

 

vi options.conf

 

设置 clean=yes ， php5_ver=5.3

 

然后，开始升级过程：

 

```
./build clean

./build update ./build all y
```

 

最后重启httpd：

 

```
service httpd restart
```

 

二种：

 

```
cd /usr/local/directadmin/custombuild ./build set php5_ver 5.3 ./build update ./build php n
```

---
本页由 梦飞idc云平台（https://www.mfisp.com）提供。站点导航见 https://www.mfisp.com/llms.txt
