LicenseW logo

How to Enable TuxCare ELS PHP on a cPanel Server

57 views

TuxCare Extended Lifecycle Support (ELS) for PHP keeps end-of-life PHP versions, such as 7.4, 8.0 and 8.1, receiving security fixes after the PHP project has stopped patching them. Your sites keep running the PHP version they were built for, and that version keeps getting security updates.

Included free with every cPanel licence that has the

Terminal
lwsCP
command. There is nothing to order and nothing extra on your invoice.

AlmaLinux, Rocky Linux and CloudLinux only for now. ELS PHP for cPanel is not available on Ubuntu servers yet.

Running CloudLinux with ALT-PHP? ELS for ALT-PHP is covered in TuxCare ELS + KernelCare Now Included With Your CloudLinux License.


1

Step 1 — Enable TuxCare ELS

Run as root:

Terminal
lwsCP -tuxcare

2

Step 2 — Choose and install ELS PHP versions

Terminal
lwsCP -php

A list of PHP versions opens:

  • Up / Down arrows move between versions
  • Space selects or deselects a version
  • A selects or deselects all
  • Enter confirms
  • Q cancels

If your terminal can't show the interactive list, a simple selector loads instead.

Options

CommandWhat it does
Terminal
lwsCP -php -list
Lists the PHP versions available
Terminal
lwsCP -php -versions=7.4,8.0
Installs the versions you name, without the list
Terminal
lwsCP -php -all
Selects every available version (PHP 5.2 to 8.5)
Terminal
lwsCP -php -yes
Skips the confirmation question
Terminal
lwsCP -php -dry-run
Prints the commands instead of running them
Terminal
lwsCP -php -manual
Type the versions instead of using the list
Terminal
lwsCP -php -pm dnf
Forces the package manager (dnf or yum)
Terminal
lwsCP -php -help
Shows help

Tip: run it once with -dry-run first to see exactly what will be installed.


3

Step 3 — Confirm ELS is enabled

Terminal
dnf repolist 2>/dev/null | grep -i tuxcare || yum repolist 2>/dev/null | grep -i tuxcare

A line mentioning TuxCare means the ELS repository is active. ELS security fixes then arrive through your normal package updates.

If the command prints nothing, open a ticket with the output of Step 1 and we'll sort it out.


Should I still upgrade PHP?

Where it is realistic, yes. ELS keeps an old PHP version secure while you plan the upgrade properly; it does not add the speed or features of a current release. Moving sites to a supported version (8.3 or 8.4) is still the cleanest long-term fix.

Related articles

Still need help?

Our support team is available to assist with license installation and troubleshooting.

Open Support Ticket

Was this article helpful?

Need help? Chat with us
Enable TuxCare ELS PHP on cPanel — Keep End-of-Life PHP Patched