php*-php-litespeed extensions are required?

bellwood

Well-Known Member
PartnerNOC
Sep 25, 2012
123
55
153
New York
cPanel Access Level
DataCenter Provider
Greetings,

As I'm working through deploying PHP 8.2 on some servers, I've noticed that php82-php-litespeed was installed.

I went to uninstall this extension, as we don't use Litespeed, and seemingly, if I try to remove php81-php-litespeed or php82-php-litespeed, EasyApache wants to remove the entire PHP version and all other extension related to the parent PHP version.

Is there a reason or need for Litespeed extensions to be required when Litespeed isn't in use?
 

vanessa

Well-Known Member
PartnerNOC
Sep 26, 2006
959
76
178
Virginia Beach, VA
cPanel Access Level
DataCenter Provider
You'll have to remove the entire set of packages and reinstall the cpanel/cloudlinux (depending on your OS) packages. So yes, it's a full removal and reinstall, as the litespeed packages are grouped and come from a different repository.

In short, no, you don't need them, it just looks like that was the profile installed on the server for some reason. I haven't seen this be default on any server I've worked on, even servers with Litespeed.
 

bellwood

Well-Known Member
PartnerNOC
Sep 25, 2012
123
55
153
New York
cPanel Access Level
DataCenter Provider
@vanessa thanks, we don't use a standard profile so I'm not sure how litespeed extensions ever got installed.

I would prefer to use the yum shell to remove what is needed (similar to changing the MPM without disruption) versus a complete tear down and re-install via EA.
 

bellwood

Well-Known Member
PartnerNOC
Sep 25, 2012
123
55
153
New York
cPanel Access Level
DataCenter Provider
@cPRex do you know if this would be supported?

Code:
yum shell
yum remove ea-php81-php-litespeed
yum remove ea-php82-php-litespeed
run
I don't have a test machine available to verify it and really can't fathom coordinating a maintenance window to remove a PHP extension that will require a down/up of the entire PHP package.

Oddly enough, when I try to install PHP 8.2 on other hosts, if I remove that one extension as part of the install process, it unselects everything else related to PHP 8.2 as well.

Seems to me, for some reason, this extension *is* required?
 

bellwood

Well-Known Member
PartnerNOC
Sep 25, 2012
123
55
153
New York
cPanel Access Level
DataCenter Provider
So, gave it a shot, firstly, corrections:

Code:
yum shell
remove ea-php82-php-litespeed
run
However, the system still wants to remove all of PHP 8.2 citing:

Code:
================================================================================
Removing:
ea-php82-php-litespeed     x86_64     8.2.6-5.5.1.cpanel        @EA4     6.6 M
Removing for dependencies:
ea-php82                   x86_64     8.2.6-2.3.1.cpanel        @EA4     0.0
ea-php82-pear              noarch     1.10.13-2.2.17.cpanel     @EA4     2.1 M
ea-php82-php-bcmath        x86_64     8.2.6-5.5.1.cpanel        @EA4     477 k
ea-php82-php-calendar      x86_64     8.2.6-5.5.1.cpanel        @EA4     192 k
ea-php82-php-cli           x86_64     8.2.6-5.5.1.cpanel        @EA4      13 M
ea-php82-php-curl          x86_64     8.2.6-5.5.1.cpanel        @EA4     518 k
ea-php82-php-devel         x86_64     8.2.6-5.5.1.cpanel        @EA4     6.1 M
ea-php82-php-fileinfo      x86_64     8.2.6-5.5.1.cpanel        @EA4     7.4 M
ea-php82-php-fpm           x86_64     8.2.6-5.5.1.cpanel        @EA4     6.7 M
ea-php82-php-ftp           x86_64     8.2.6-5.5.1.cpanel        @EA4     225 k
ea-php82-php-gd            x86_64     8.2.6-5.5.1.cpanel        @EA4     1.4 M
ea-php82-php-gettext       x86_64     8.2.6-5.5.1.cpanel        @EA4      62 k
ea-php82-php-iconv         x86_64     8.2.6-5.5.1.cpanel        @EA4     194 k
ea-php82-php-imap          x86_64     8.2.6-5.5.1.cpanel        @EA4     1.4 M
ea-php82-php-intl          x86_64     8.2.6-5.5.1.cpanel        @EA4     3.9 M
ea-php82-php-mbstring      x86_64     8.2.6-5.5.1.cpanel        @EA4     2.6 M
ea-php82-php-mysqlnd       x86_64     8.2.6-5.5.1.cpanel        @EA4     2.5 M
ea-php82-php-pdo           x86_64     8.2.6-5.5.1.cpanel        @EA4     1.0 M
ea-php82-php-posix         x86_64     8.2.6-5.5.1.cpanel        @EA4     159 k
ea-php82-php-soap          x86_64     8.2.6-5.5.1.cpanel        @EA4     2.0 M
ea-php82-php-sockets       x86_64     8.2.6-5.5.1.cpanel        @EA4     434 k
ea-php82-php-xml           x86_64     8.2.6-5.5.1.cpanel        @EA4     2.2 M
ea-php82-php-zip           x86_64     8.2.6-5.5.1.cpanel        @EA4     410 k

Transaction Summary
================================================================================
Remove  1 Package (+23 Dependent packages)

Installed size: 62 M
Is this ok [y/N]: n
Perplexed as to why a litespeed extension is required?

I could probably use RPM to skip deps:

Code:
rpm -e --nodeps ea-php82-php-litespeed

...but not sure that's wise.
 

bellwood

Well-Known Member
PartnerNOC
Sep 25, 2012
123
55
153
New York
cPanel Access Level
DataCenter Provider
As I stated previously, these packages are grouped together. I wouldn't use --nodeps unless you want to create a broken system next time you use EA. Again, your only clean option is to install a new profile.
Oh I agree, I guess my point above was, we are on a custom built profile, we've never used Litespeed nor manually installed that extension.

Yum is oblivious to the EA profile in use, so, removing that one shouldn't be such a nuisance.

For instance, I can attempt to remove other bolt on extensions, like say EXIF or SOAP and none of those try to remove the entirety of my PHP installation.
 

bellwood

Well-Known Member
PartnerNOC
Sep 25, 2012
123
55
153
New York
cPanel Access Level
DataCenter Provider
I've also just checked every provided EA profile, they *all* have the litespeed extension enabled and if I try to remove it from the profile (that isn't in use) it wants to remove all of PHP.
 

bellwood

Well-Known Member
PartnerNOC
Sep 25, 2012
123
55
153
New York
cPanel Access Level
DataCenter Provider
As I was opening a support ticket for this, the following article, from a year ago, was suggested:


...with a corresponding case of CPANEL-40458:

The ea-phpXX-php-cli packages require the ea-phpXX-litespeed packages as a dependency. The main ea-phpXX packages require the ea-phpXX-php-cli packages as a dependency.

This chain of dependencies makes it so that attempting to remove ea-phpXX-litespeed will also remove the rest of the PHP packages for that entire PHP version.
As the case suggests (in the event this isn't public, I am signed in) the recommended resolve IS to use:

Code:
rpm -e --nodeps ea-php80-php-litespeed
...with the following notation:

The LiteSpeed packages however will be reinstalled any time there is an update published to the ea-phpXX-php-cli packages.
You must manually remove the LiteSpeed packages any time an update to PHP-CLI is pushed out.
Good to know its been acknowledged and that, perhaps, in this case, I'm not crazy ;)
 
  • Like
Reactions: cPRex