How to select PHP version in OpenLiteSpeed web server

  1. Login to your OpenLiteSpeed panel.

  2. Click on the Tools menu and then select Compile PHP option openlitespeed

  3. On the next window, select the PHP version as per your need and then click on Next button. openlitespeed

  4. Leave the build option as it is and then select Next button openlitespeed

  5. 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 openlitespeed

  6. Then you have to access the server via SSH and then run the following script openlitespeed

        /usr/local/lsws/phpbuild/buildphp_manual_run.sh
  7. Once you run the above command, it may take few minutes to complete the task and you will see output in status area. openlitespeed

  8. If face the below error, then run the following command openlitespeed

        apt-get install libcurl4-openssl-dev pkg-config
        /usr/local/lsws/phpbuild/buildphp_manual_run.sh
  9. Once it is done, you will see following output openlitespeed