1. Kiểm tra version custombuild
1 2 |
cd /usr/local/directadmin/custombuild ./build version |
Nếu custombuild version của bạn đang là 1.0 thực hiện bước 2. Nếu đang là 2.0 thực hiện tiếp bước 3.
2. Nâng version custombuild
1 2 3 4 5 6 7 8 |
cd /usr/local/directadmin mv custombuild custombuild_1.x wget -O custombuild.tar.gz http://files.directadmin.com/services/custombuild/2.0/custombuild.tar.gz tar xvzf custombuild.tar.gz cd custombuild ./build ./build all d ./build rewrite_confs --> upgrade custombuild 1.x to 2.0 |
3. Upgrade version PHP
1 2 3 4 |
cd /usr/local/directadmin/custombuild ./build update ./build set php1_release 5.4 ./build php d --> change version PHP |
4. Restart httpd
1 |
services httpd restart |
Nếu muốn hạ cấp ta sử dụng lệnh sau:
1 2 3 4 |
cd /usr/local/directadmin/custombuild ./build set php1_release 5.x (Ví dụ nếu cần hạ xuống 5.6 thì sửa "5.x" thành "5.6") ./build update ./build php d |