cPanel Server Time

Setting the server timezone in cPanel is very easy. Having the correct server time helps when searching through logs and for things like applications installed to operate as expected. The server timezone can be changed again once it has been set.

1. Login to WHM, which is normally accessible by adding /whm to your server hostname. For example:

2. Click on Server Configuration in the left hand menu, followed by the Server Time icon in the main window, or the Server Time link in the left hand submenu.

3. Select your preferred timezone, then click on the Change TimeZone button.

You might also like to Sync Time With Time Server to ensure the date/time displayed is updated, however this step should not be required in most cases. Some applications actually require the timezone to be specified in your PHP.ini file, which is also very easy to set through cPanel/WHM.

1. Click on Service Configuration in the left hand menu, followed by PHP Configuration Editor in the main window or in the left hand submenu.

2. Click on the Advanced Mode radio button and scroll down to Date and Time section, which will have date.timezone as the directive.

3. Find your preferred timezone in the list of supported timezones from the PHP documentation:

4. Copy your preferred timezone, for example Pacific/Auckland, and paste into the date.timezone value input box. Scroll to the bottom of the page and click on the Save button.

Congratulations, you have now successfully set both the server and PHP timezone. This change will affect all accounts on the server.

Was this answer helpful?

 Print this Article

Also Read

CentOS and cPanel Malware Detection

ClamAV and Maldet (Linux Malware Detect) are the default applications for identifying malware....

Dovecot Is Not Running on cPanel

Quite a common error with Dovecot running on Xen hypervisors, especially for clients who use...

Master Slave Replication in MySQL

MySQL replication allows you to maintain multiple copies of a MySQL database by having it...

How To Restart Apache

Ubuntu/Debian The recommended solution to start/stop/restart services (not just Apache) in...

Search for Files or Folders with SSH

Searching for the location a file or finding certain text contained in files within a directory,...