Introduction
Many cPanel functions rely on the server having the proper time and date. If your server's time or date is not correct, you may need to manually update it.
Procedure
- Connect to your server via SSH as the root user.
- Check the server's current time:
date
Mon Apr 26 20:58:50 -03 2021 - Run the
rdatecommand to update from a specifiedrdateserver--for example:rdate -s rdate.cpanel.net
- If the
rdatecommand does not work, you should be able to use the data command like so, replacing the date and time below with the actual time.date --set="Oct 14 07:19:54 EDT 2021"
- Alternatively, you can use the
timedatectlcommand.timedatectl set-time HH:MM:SS
- Check the date again to make sure it is correct:
date
Mon Apr 26 20:46:59 -03 2021 - On Metal servers, you can then ensure that the system clock is set correctly by syncing the system time you just set to it.
hwclock --systohc
Comments
0 comments
Article is closed for comments.