Knowledgebase: PHP and Apache
Update Apache
Posted by H9 Admin on 14 January 2015 02:12 PM

Before you begin, you may wish to review the cPanel Apache Configuration Guide:

Your WHM control panel includes an option to configure Apache options under Software -> Apache Update. 

However, the build process can use a substantial amount of memory. If you are running a personal or professional VPS and have a high level of memory usage, you may need to stop various services to free up memory. If you host customer sites on your VPS, you may need to schedule a maintenance window in advance to minimize downtime for your clients.

A sensible approach is to login via SSH to do the update manually and issue the following commands:

​​/usr/local/cpanel/bin/tailwatchd stop
​service httpd stop
service mysql stop
​service cpanel stop

You can also stop other services, but these have the highest memory usage.

  1. You can check available memory with the 'free' command:

    free -m
  2. You'll need at least 150-200 MB free; once you have freed enough memory, you can run the EasyApache utility:


    You'll see an option to load several pre-configured settings. In general, you'll want to use your existing configuration, Previously Saved Config.

  3. To move around, the Up and down arrows will scroll, the tab key will switch between sections, and space bar will select/deselect

  4. Select the version of Apache you wish to run, 1.3/2.0/2.2. (latest version is always preferred)

PHP Version

You'll then have the option to select the PHP version you want.

On the Short Options List, you can select the basic options to configure. Be aware that these options can break your Apache configuration if you do not configure them properly. Be careful!

You can now save and build Apache. If you need specific PHP options configured, select Exhaustive Options List and choose the options you need. The following is a short list of most popular and commonly needed options:
TTF (FreeType)

There are also many other common options already selected for you, leave these selected.

Once you've compiled Apache and there are no errors or problems, you can restart the services you previously disabled:

service cpanel status
service mysql status
service httpd status
(0 vote(s))
This article was helpful
This article was not helpful

Comments (0)
Post a new comment
Full Name:
Help Desk Software by Kayako fusion