Diretcadmin 添加多PHP版本支持

1.04K 浏览建站交流
0

直接编辑多个PHP版本:

cd /usr/local/directadmin/custombuild
./build update
./build set php1_release 8.1
./build set php2_release 5.6
./build set php3_release 7.0
./build set php4_release 7.3
./build set php1_mode php-fpm
./build set php2_mode php-fpm
./build set php3_mode php-fpm
./build set php4_mode php-fpm
./build php n
./build rewrite_confs

如果不想设置这么多的PHP,可以这样写:

./build set php4_release no
./build rewrite_confs

另外,还需要确认配置文件的多PHP版本为1状态开启。

/usr/local/directadmin/directadmin config | grep php_version_selector

分享到:
路跑 已回答的问题 2023年8月16日
添加评论
0

挖站否提供的免费空间怎么更换PHP版本呢?


分享到:
Qi 发表新评论 2023年8月16日
Avatar for focus

你好,目前无法更换PHP版本。

添加评论
写下您的答案。

Login

Welcome! Login in to your account

Remember me Lost your password?

Don't have account. Register

Lost Password

Register