Install PHP extensions in WHM.

Author
By Darío Rivera
Posted On in WHM

WHM does not come pre-configured with most of the PHP extensions used nowadays. You just need to check, for example, the extensions required by frameworks like Laravel or Symfony to realize that you need to configure additional extensions to the ones that come by default.

To mitigate this, you must go to the Software > EasyApache 4 option and in the card Currently Installed Packages you must click on the Customize button.

icon widget

In the left panel, you should click on PHP Extensions and enable at your discretion the necessary extensions for each version of PHP.

icon widget

When you are ready and have finished defining the necessary extension to install, click on the Review option in the left panel, you will see a list of items to install such as the following:

icon widget

In the example shown, gmp is intended to be installed for versions 7.3, 7.4 and 7.8 of PHP. To start the installation process, click on the Provision button and finally on Done.

Here is a list of extensions that you should enable for Laravel-based applications.

- gmp
- intl
- fileinfo
- zip
- soap
- sodium

The installation of sodium is somewhat different, so I leave you the link to install this particular extension.

- Install Sodium in WHM


Acerca de Darío Rivera

Author

Application Architect at Elentra Corp . Quality developer and passionate learner with 10+ years of experience in web technologies. Creator of EasyHttp , an standard way to consume HTTP Clients.

LinkedIn Twitter Instagram

Sólo aquellos que han alcanzado el éxito saben que siempre estuvo a un paso del momento en que pensaron renunciar.