Topic: PHP 5.6 with LiteSpeed Web Server on AlmaLinux 8 (remi repo)

Hello Remi,

I wanted to ask you first as a last resort, before proceeding to switch to another OS or server.

I could able to install and run PHP 5.6 on Almalinux 8 & Plesk & Apache by following this post:
https://talk.plesk.com/threads/almalinu … ost-923401

The problem is I'm running LiteSpeed Web Server instead of Apache, and when I switch to LSWS from Apache, PHP 5.6 does not work anymore (503 errors, etc.)

After several tickets and investigations, LSWS support team came to this conclusion:

I think the issue here is how that Remi PHP was built

by default all the cPanel/DirectAdmin/Plesk PHP were built with argument --with-litespeed as my screenshot 1 , you can see the configure argument

this argument will make PHP to build with our SAPI (LSAPI/LSPHP) which is needed by LSWS

but when Remi built this PHP binary , as you can see in my screenshot 2 , it does NOT include this argument , which in turn , makes it failed to communicate with LSWS and end up in 503 error as external app is not working properly

I don't know how it works or even it is possible, but can you please provide me a custom RPM which includes --with-litespeed argument? smile

Regards

Re: PHP 5.6 with LiteSpeed Web Server on AlmaLinux 8 (remi repo)

I don't see the referenced screenshot

If you need litespeed SAPI, you need to install it

https://rpms.remirepo.net/enterprise/8/ … speed.html

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: PHP 5.6 with LiteSpeed Web Server on AlmaLinux 8 (remi repo)

A minute ago from your post I got this reply:

You can also check with remi, remi used to build lsphp on a separate package and you will need to install it. Check with remi to see if it still has it or not.
Basically you need point to
/opt/remi/php56/root/user/bin/lsphp (make sure it is installed from remi)
not
/opt/remi/php56/root/user/bin/php

then I installed:

dnf install php56-php-litespeed

and updated the binary path to: /opt/remi/php56/root/usr/bin/lsphp

Result = HAPPINESS! big_smile

Thank you, Remi.

Re: PHP 5.6 with LiteSpeed Web Server on AlmaLinux 8 (remi repo)

smile

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi