Introduction
While the WHM interface provides an easy method to install PHP extensions, some administrators prefer the command-line to install packages. EasyApache uses the system package manager to manage installation and updates.
Procedure
These steps will vary slightly depending on your operating system. We will be using the name of the package manager to differentiate which steps you should take. CentOS, AlmaLinux, Rocky Linux, RedHat, and CloudLinux all use the "yum" or "dnf" package managers to manage "RPM" packages. Ubuntu uses "apt" to manage "DEB" packages.
- Log into the server via SSH as root
- Search for the name of the extension you're looking for:
-
yum search ea-php74
-
apt search ea-php74
-
- Once you've determined the list of packages you'd like to install, list them after the "install" command:
-
yum install ea-php74-php-cli ea-php74-php-mbstring ea-php74-php-pspell
-
apt install ea-php74-php-cli ea-php74-php-mbstring ea-php74-php-pspell
-
- The command will ask you to confirm the installation. Press "y" then "Enter" and the installation will proceed
- You can verify these extensions are now installed when visiting EasyApache or using
-
rpm -qa | grep ea-php74
-
dpkg -l | grep ea-php74
-
Comments
0 comments
Article is closed for comments.