LiteSpeed

Update the Latest Version of LiteSpeed PHP LSAPI in cPanel/WHM

There is new version of LiteSpeed and LiteSpeed PHP LSAPI. So you went ahead to upgrade LiteSpeed in LiteSpeed admin Panel or LiteSpeed plugins page in WHM. The process is rather fast but you may see that LiteSpeed PHP LSAPI my not upgraded to the latest version.

To solve this problem you need to rebuild PHP with LSAPI.

To do this login to WHM and follow the path below.

WHM → LiteSpeed Web Server → Build Matching PHP Binary → Tick Confirmation Check box → Click Next

The process may take a few minutes. By the time it is done, you should have the latest version of LiteSpeed PHP LSAPI.


Get Visitors Actual IP Address with LiteSpeed & Cloudflare

If you are using Cloudflare, your server will log Cloudflare IP address when visitors coming to your website. This problem can be solved by using mod_cloudflare for Apache server.

However, the method won’t work with LiteSpeed. Fortunately, LiteSpeed has a much simpler method to get the actual visitor’s IP address.

Use the following steps in order to obtain actual visitor’s IP address if you are using LiteSpeed & Cloudflare.

  1. Login to LiteSpeed Web Admin Panel
  2. Browse to Configuration → Server  General Settings
  3. Edit “Use Client IP in Header” to “Yes
  4. Save & Start LiteSpeed Gracefully