How to recompile Apache/PHP in WHM
To recompile Apache/PHP for your VPS or Dedicated server:
- Firstly, log into WHM and navigate to EasyApache4 (Apache Update).
![](https://casbay.com/guide/wp-content/uploads/2021/02/ApachePHP-1-navigate-EasyApache4.png)
2. Then, make sure on the main page ” Start by selecting a load profile: ” is selected and then click ” Start profile-based customisation. “
![](https://casbay.com/guide/wp-content/uploads/2021/02/ApachePHP-2-Start-by-selecting-a-load-profile.png)
3. Next, on the second page (Apache MPM/Modules), we suggest upgrading to the latest available if no longer already selected. Then click on ‘Next Step‘.
![](https://casbay.com/guide/wp-content/uploads/2021/02/ApachePHP-3-Apache-MPM.png)
4. On the third page (PHP Versions) pick the version of php you want, click on ‘Next step‘ if you are unsure.
![](https://casbay.com/guide/wp-content/uploads/2021/02/ApachePHP-4-PHP-versions.png)
5. On the forth page (PHP Extensions) choose the version of php you want, click on ‘Next step’ if you are unsure.
![](https://casbay.com/guide/wp-content/uploads/2021/02/ApachePHP-5-PHP-Extensions.png)
6. On the fifth page (Ruby modules) skip this if not relevent to your server by click on ‘Next step’.
![](https://casbay.com/guide/wp-content/uploads/2021/02/ApachePHP-6-Ruby-modules.png)
7. Then, please check the changes that you are about to install, upgrade and uninstall.
![](https://casbay.com/guide/wp-content/uploads/2021/02/ApachePHP-7-Check-the-changes-upgrade-uninstall.png)
8. Lastly, select ‘ Provision ‘ to re-compile from the bottom of the page.
![](https://casbay.com/guide/wp-content/uploads/2021/02/ApachePHP-8-Provision.png)
Check out the next article HOW TO: Change FTP password.