Skip to main content

How to Rebuild Apache and PHP With EasyApache 4

Rebuild the Apache web server and PHP environment on your server using the EasyApache 4 interface in WHM. This process allows you to update, install, or remove specific modules and PHP versions to ensure your server environment is optimized and up to...

Rebuild the Apache web server and PHP environment on your server using the EasyApache 4 interface in WHM. This process allows you to update, install, or remove specific modules and PHP versions to ensure your server environment is optimized and up to date.

Before you begin

You will need:

  • Root access to the WHM interface

  • A valid server administrator account

Rebuild Apache and PHP with EasyApache 4

  1. Log in to WHM.

  2. In the left-hand navigation menu, search for and select EasyApache 4.

  3. Select the profile you wish to modify (usually the default profile) or create a new one by clicking Create.

  4. Scroll through the list of available packages. You can use the search bar to find specific Apache modules or PHP versions.

  5. Toggle the switches to enable or disable the specific components you require.

  6. Click Review.

  7. Review the list of changes that will be applied. This section will highlight exactly which packages will be installed, upgraded, or removed.

  8. Click Provision to begin the rebuild.

Warning: Rebuilding the Apache and PHP environment involves restarting the web server and restarting PHP processes. This may cause a brief interruption in service for the websites hosted on the server during the process.

Confirm the result

  • The "Provision" process will complete, and the status will show as "Success" or "Complete."

  • The selected Apache modules and PHP versions will be active and available for use by your hosted accounts.

  • You can verify the active configuration by viewing the Apache Configuration page in WHM.

Troubleshooting a configuration build failure

If the "Provision" process fails, it is often due to a syntax error in a custom configuration file or a conflict between two selected modules.

  1. Note the specific error message provided in the EasyApache 4 interface.

  2. Identify the specific module or configuration file mentioned in the error.

  3. If the error persists after removing the problematic module, contact Hostek support with the specific error log provided by the interface.

Did this answer your question?