今天有個(gè)美國(guó)服務(wù)器的客戶安裝directadmin面板,需要多php版本運(yùn)行,
最低支持到php5.3的版本
下面是安裝的方法
一、第一種安裝方法
第一條命令
cd /usr/local/directadmin/custombuild
./build update
第二條命令
./build set php1_release=xx
./build set php1_mode=php-fpm
./build set php2_release=xx
./build set php2_mode=php-fpm
./build set php3_release=xx
./build set php3_mode=php-fpm
./build set php4_release=xx
./build set php4_mode=php-fpm
(xx就是你想要安裝的php版本)
如果卸載的話,將xx改為no
卸載依然需要編譯
還有一個(gè)注意事項(xiàng),php1的值一定不能為no
第三條命令
./build php n
第四條命令
./build rewrite_confs
二、第二種安裝方法
1.cd /usr/local/directadmin/custombuild
./build update
2.
./build set php1_release=7.2
./build set php1_mode=php-fpm
./build set php2_release=5.6
./build set php2_mode=php-fpm
./build set php3_release=5.3
./build set php3_mode=php-fpm
./build set php4_release=7.3
./build set php4_mode=php-fpm
3../build php n
4. ./build rewrite_confs
一共4步
第二步可以用vi options.conf直接修改文件替代
反正1 3 4都一樣
php對(duì)應(yīng)的版本,可以查看下面這個(gè)文件
cd /usr/local/directadmin/custombuild
cat options.conf