Knowledge Base

Managing PHP Handlers and Extensions via EasyApache 4

Overview: Different websites require different PHP environments. Some need specific extensions (like mbstring or imagick), while others require a specific handler for better performance. On your VPS, EasyApache 4 is the tool that lets you customize these settings globally.

Steps to Configure PHP Extensions:

  1. Log in to WHM as root.

  2. Search for "EasyApache 4" in the sidebar.

  3. Click on the "Customize" button next to "Currently Installed Packages".

  4. PHP Versions: Select the versions you want to keep (e.g., PHP 7.4, 8.1, 8.2).

  5. PHP Extensions: Search for the specific extension your script needs and toggle the switch to Install.

  6. Review: Click the "Review" tab to see all changes.

  7. Provision: Click "Provision" to apply the changes. This may take a few minutes as the server recompiles the settings.

Pro Tip: If you want to change the PHP version for a specific website rather than the whole server, use the "MultiPHP Manager" tool in WHM. This allows each cPanel account to have its own independent PHP version.

Please rate this article to help us improve our Knowledge Base.

0 0