Symptoms
A warning like the following appears in the LiteSpeed Web Server Plugin in WHM.
Cause
This warning will be displayed if the TimezoneDB extensions are missing for some PHP versions.
Resolution
The TimezoneDB Extension is a PECL extension recommended by LiteSpeed to optimize timezone lookups for PHP scripts. Here is how to install it:
WHM:
- Log in to WHM as "root" and go to Home / Plugins / LiteSpeed Web Server Plugin
- Click Resolve Now after the "Some pre-built EasyApache PHP installations may be missing the timezoneDB extension. This will severely impact PHP performance" warning:
- Click Confirm on the next page:
- After installation is complete, another page will load, click OK, and you will be redirected to the LiteSpeed plugin page.
Command-Line:
- Log in to the server you wish to install TimeZoneDB.so on via SSH. Make sure you are logged in as root.
-
Get the script and prepare it.
# wget https://litespeedtech.com/packages/cpanel/buildtimezone.sh
-
Make the script executable.
# chmod a+x buildtimezone.sh
-
Run the script to install TimeZoneDB.so for all installed versions of EA4 PHP.
# sudo ./buildtimezone.sh
You can find further information regarding TimeZoneDB in LiteSpeed's documentation.
Comments
0 comments
Article is closed for comments.