How to select PHP version in OpenLiteSpeed web server
-
Login to your OpenLiteSpeed panel.
-
Click on the Tools menu and then select Compile PHP option
-
On the next window, select the PHP version as per your need and then click on Next button.
-
Leave the build option as it is and then select Next button
-
In this step the you have to wait for few minutes. please do not refresh the browser. If main status says “Finished successfully” then you can proceed ahead
-
Then you have to access the server via SSH and then run the following script
/usr/local/lsws/phpbuild/buildphp_manual_run.sh
-
Once you run the above command, it may take few minutes to complete the task and you will see output in status area.
-
If face the below error, then run the following command
apt-get install libcurl4-openssl-dev pkg-config /usr/local/lsws/phpbuild/buildphp_manual_run.sh
-
Once it is done, you will see following output