EasyApache removing LiteSpeed suicides two dozen unrelated packages

JAB Creations

Active Member
Nov 21, 2009
44
7
58
I've actually been trying to figure out how to force cPanel to only send headers I approve of and while searching for any semblance of that I ended up in EasyApache.

I then was going through the installed modules and noticed LiteSpeed was installed!

I absolutely loathe LiteSpeed, it causes massive issues with Apache's configurations and have permanently blacklisted it.

So here I am in WHM/EasyApache and it's enabled!

So when I disable it EasyApache decides it's going to suicide two dozen completely unrelated packages! It's a damn good thing I was paying attention because I actually use those packages!

WHM is at v98.0.8 if that helps and I still haven't found out where the headers are ultimately being pulled from so that is another thread I have to open.

...oh and WHM absolutely refuses to "allow" me to disable LiteSpeed and keep the extensions I need! I want LiteSpeed absolutely removed from the server!
 

ffeingol

Well-Known Member
PartnerNOC
Nov 9, 2001
854
366
363
cPanel Access Level
DataCenter Provider
Just curious, but are you referring to LiteSpeed Web Server or the LSAPI PHP handler? I do not believe that cPanel/EA will isntall LiteSpeed Web Server, but it will install the LSAPI PHP handler.
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
15,139
2,406
363
cPanel Access Level
Root Administrator
By default, cPanel doesn't include LiteSpeed as they are a totally separate company and the software requires a license. Here's what a default EA4 interface looks like, showing the option to purchase LiteSpeed:

Screen Shot 2021-10-07 at 2.16.06 PM.png

Do you have the actual package name that was going to be removed? If you don't see that banner on your system, LiteSpeed and possibly the associated tools you're seeing were likely installed at some point in the past.
 
  • Like
Reactions: eva2000

JAB Creations

Active Member
Nov 21, 2009
44
7
58
The WHM / EasyApache / "php74-php-litespeed" and "php80-php-litespeed" packages cause the problems with Apache themselves.

I am blatantly aware that LiteSpeed is also in WHM / MultiPHP Manager and LiteSpeed is disabled there.

The PHP support extensions for LiteSpeed themselves are the problem.



Now trying to remove LiteSpeed results in EasyApache FORCING the removal of all of the following extensions, most of which I explicitly use!
 
Last edited:

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
15,139
2,406
363
cPanel Access Level
Root Administrator
I did a bit of research on this and it seems it is caused by a circle of dependencies. The ea-php7#-php-litespeed package, since PHP 7.1, is a requirement of the ea-php7#-cli package. So when the litespeed package is removed, cli also needs to be removed, and then the whole dependency chain goes from there, as many packages require cli.

At this point there isn't a way to remove the ea-php-7#-php-litespeed package from the server, so that would need to stay in place for all versions.
 
  • Like
Reactions: eva2000

JAB Creations

Active Member
Nov 21, 2009
44
7
58
In short: someone got really lazy! I keep notes on how to fix things, not how to reverse-track down issues caused by regressions. So now I have to go digging through over a year's worth of technical notes just to determine what was effected.

Are you folks going to please correct this overzealous circle of dependencies? Thank you for your replies.
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
15,139
2,406
363
cPanel Access Level
Root Administrator
At this point they don't plan to apply a fix as we originally intended for that behavior to happen. If you'd like to see that changed you can open a feature request using the link in my signature to have our developers review that.