Add New PHP in Litespeed

unique2world

Verified User
Joined
Dec 30, 2013
Messages
27
Location
./
I currently have two versions of PHP on DirectAdmin, 7.4 and 8.1, and the web server is LiteSpeed.
Now I want to add version 8.3.
Which of these commands is correct?
Or should I do it in another way?



Code:
da build set php1_release 8.3
da build set php2_release 8.1
da build set php3_release 7.4
da build php
da build rewrite_confs


OR:

Code:
da build set php1_release 8.3
da build set php2_release 8.1
da build set php3_release 7.4
da build litespeed
da build php
 
Generally it should be enough to run these commands:
Code:
da build set php1_release 8.3
da build set php2_release 8.1
da build set php3_release 7.4
da build php
da build rewrite_confs
But please note that after that your default PHP will be changed to version 8.3, because "php1_release" option is default PHP, the one that you see when run this command:
Code:
php -v
Also if you already have PHP 8.1 and 7.4 added and only wants to add PHP 8.3 as additional PHP version, then it should be even enough to run these commands:
Code:
da build set php3_release 8.3
da build php 8.3
da build rewrite_confs
to build only PHP 8.3 version and do not touch other PHP versions.
 
Back
Top