Articles in this section

How to set the timezone in Plesk and enable its Synchronization?

kb: how-to Plesk for Linux ABT: Group B

Applicable to:

  • Plesk for Linux

Question

How to set the timezone in Plesk and enable its Synchronization?

Answer

Using Plesk Interface
  1. Log into Plesk;
  2. Go to Tools & Settings > System Time;
  3. Set the correct time zone for the server;
  4. Enable the Synchronize system time option and specify the NTP server domain name or its IP address;
  5. Click OK.
Using the command line interface
  1. Connect to the server through SSH;

  2. Set the correct timezone for the server, for example:

    # plesk sbin timemng --set-timezone --timezone=America/Sao_Paulo

    The list of timezone names is available here: List of Supported Timezones

  3. Set NTP server synchronization as a crontask:

    # plesk sbin timemng --set-sync-time --time-server=pool.ntp.org

  4. Enable the NTP synchronization:

    # plesk db "replace into misc(param,val) values ('ntp_enabled','true');"

  5. Set pool.ntp.org as the server to sync server time:

    # plesk db "replace into misc(param,val) values ('ntp_server','pool.ntp.org');"

  6. Restart Plesk-managed server for the time zone change takes effect:

    # service sw-engine restart

Note: For Ubuntu 20.04, CentOS 8 and Debian 10, time synchronization is not available on Tools & Settings > System Time because these OSes use chronyd service (enabled by default) for time synchronization.

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.