Skip to content


This guide will address how and why we need to build TimeZoneDB for EasyApache 4.

What is TimeZoneDB? is a PHP PECL extension that supplies a database of all timezones from the Olson database for all PHP date and time functions.

The Issue

Recent patches to EasyApache 4 have removed a lot of standard PECL extensions and added them to their web utility to install. The issue with that is that it scans the whole system for PHP and builds it for each version it finds, even non-EA4 PHP. This causes high resource usage, which in most cases is a bad thing. This script that we provide will only build it for EA4 with predefined searches. This essentially cuts usage down and provides a more stable environment.



Installing for EasyApache 4 PHP is very easy.

Here are the steps:

  1. Log into WHM and navigate to the LiteSpeed Web Server plugin. Click Resolve.
  2. The following screen will display. Click OK.
  3. The confirmation screen will show which PHP version it has installed TimeZoneDB for. Click OK when you are done.

That's it!

Command Line

Installing for EasyApache 4 PHP is very easy. We have created a script to automate the process for you!

Here are the steps:

  1. Log into the server you wish to install on via SSH. Make sure you are logged in as root.
  2. Get the script and prepare it.
    $ wget
    $ chmod a+x
  3. Run the script to install for all installed versions of EA4 PHP.
    $ sudo ./

That's it!

Last update: November 16, 2023