Letting Users select between multiple different php versions

Enter Your Query:
Use '%' for wildcards and quotes for "exact phrases"

Top Level » Apache Related Information » Php
Top Level » CustomBuild » CustomBuild 2.0

Letting Users select between multiple different php versionsLast Modified: Sep 11, 2019, 9:19 pm
The release of DirectAdmin 1.56.0 allows up to 4 active php versions to be used, and Users can pick between them.
You must be using the latest version of CustomBuild 2.0.

The first php version will be the default, and will run all webapps.  Everything else is optional.

Users can select between versions on their "Domain Setup" page in DirectAdmin.

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.

CloudLinux Php Selector

If you're running CloudLinux and have php1_mode=lsphp, you'll be able to use the CloudLinux Php Selector plugin.
Note, that if you also use the DA php selector, the CloudLinux selection only has any effect if the domain is using the 1st DA php instance.
Related Helpfiles
I want to have a different version of php.

© 2018 JBMC Software, Suite 173  3-11 Bellerose Drive, St Albert, AB  T8N 1P7  Canada.  Mon-Fri 9AM-5PM MST