Author Topic: directadmin howto compile multiple php version  (Read 6230 times)

golfreeze

  • Administrator
  • Hero Member
  • *****
  • Posts: 2145
    • View Profile
    • นั่งสมาธิ สติปัฏฐานสี่ พาเที่ยววัด แนะนำวัด แจกcd ธรรมะฟรี
    • Email
directadmin howto compile multiple php version
« on: มีนาคม 30, 2020, 01:34:48 PM »
==upgrade service first for custombuild to support new php version
cd /usr/local/directadmin/custombuild
./build update
./build all d
./build rewrite_confs

==Sample install of multiple php versions:
cd /usr/local/directadmin/custombuild
./build update
./build set php1_release 7.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

which will compile all of those php versions. Change the version numbers around as desired.
You need fewer than 4 php versions, set that given release to "no", eg:
./build set php4_release no
./build rewrite_confs


Requires php_version_selector=1 is set in the './directadmin c' output, which it should be by default.
« Last Edit: มีนาคม 30, 2020, 01:46:22 PM by golfreeze »