Recompiling apache

Method 1: Recompilation from WHM
===========================
1. Login to the WHM of the server as user root.
2. Go to Software >> EasyApache (Apache Update)
3. Select a profile to load and click “Start customizing based on profile”.
4. Select the Apache version and click next step.
5. Select the Major PHP Version and click next step.
6. Select the PHP Minor Version and click next step.
If you are going to enable Apache/PHP modules, it is recommended to leave the default versions of Apache & PHP.
7. Enable the required modules. If the required modules are not listing, click “Exhaustive Options List” and select the modules.
8. Click “Save and Build”.

Method 2: Recompilation using cPanel script /scripts/easyapache
================================================
1. Login to the server as root via SSH.
2. From the command line execute the following cPanel script.

Code: [Select]
# /scripts/easyapache

(It is highly recommended to run rebuild in screen)
3. Select “Start customizing based on profile”.
4. Select the Apache version and click next step.
5. Select the PHP Version and click next step.
In our case we are going enable PHP modules and so it is recommended to leave the default versions of Apache & PHP.
6. Enable the required modules. If the required modules are not listing, click “Exhaustive Options List” and select the modules.
7. Click “Save and Build”.

Done..!!

About Sarath

A Techie from Kochi, India with 8+ years of experience in Linux and Windows server administration. I learn new things almost everyday and I enjoy the fun of learning and sharing my knowledge.