Article 5PHB0 How install NTPDATE on Centos 7 with WHM cPanel

How install NTPDATE on Centos 7 with WHM cPanel

by
mandrivian
from LinuxQuestions.org on (#5PHB0)
Hello,

I have a vps running centos 7 and whm cpanel on it, and i have installed Package ntpdate-4.2.6p5-29.el7.centos.2.x86_64 already installed and latest version.

But it always failed to start, here it is :

[root@pbnu /]# service ntpdate status
Redirecting to /bin/systemctl status ntpdate.service
* ntpdate.service - Set time via NTP
Loaded: loaded (/usr/lib/systemd/system/ntpdate.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Tue 2021-09-14 22:14:12 WIB; 33min ago
Process: 11614 ExecStart=/usr/libexec/ntpdate-wrapper (code=exited, status=1/FAILURE)
Main PID: 11614 (code=exited, status=1/FAILURE)

Sep 14 22:14:12 pbnu systemd[1]: Starting Set time via NTP...
Sep 14 22:14:12 pbnu systemd[1]: ntpdate.service: main process exited, code=exited, status=1/FAILURE
Sep 14 22:14:12 pbnu systemd[1]: Failed to start Set time via NTP.
Sep 14 22:14:12 pbnu systemd[1]: Unit ntpdate.service entered failed state.
Sep 14 22:14:12 pbnu systemd[1]: ntpdate.service failed.

and when i type timedatectl command, i found that NTP is not sync

[root@pbnu /]# timedatectl
Local time: Tue 2021-09-14 22:49:12 WIB
Universal time: Tue 2021-09-14 15:49:12 UTC
RTC time: n/a
Time zone: Asia/Jakarta (WIB, +0700)
NTP enabled: yes
NTP synchronized: no
RTC in local TZ: no
DST active: n/a

aside from cpanel default time sync is still working on WHM, this NTP cannot started.

i need to enable the ntpdate because my client needs to enabled a NTP to keep the time synchronized and 2FA in Laravel on their web applications.

is there anyone can help me with tutorial on how to install and run ntpdate with this situation.? (centos 7 with whm cpanel)
or they just don't get along, since cpanel has their own time sync

Thankslatest?d=yIl2AUoC8zA latest?i=sJ9PiQS-0FI:j4qKsRrIYnU:F7zBnMy latest?i=sJ9PiQS-0FI:j4qKsRrIYnU:V_sGLiP latest?d=qj6IDK7rITs latest?i=sJ9PiQS-0FI:j4qKsRrIYnU:gIN9vFwsJ9PiQS-0FI
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments