直接编辑多个PHP版本:
1 2 3 4 5 6 7 8 9 10 11 12 | 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,可以这样写:
1 2 | ./build set php4_release no ./build rewrite_confs |
另外,还需要确认配置文件的多PHP版本为1状态开启。
1 | /usr/local/directadmin/directadmin config | grep php_version_selector |
路跑 已回答的问题 2023年8月16日
你好,目前无法更换PHP版本。