Deprecated: WP_Translation_Controller::load_file(): Implicitly marking parameter $locale as nullable is deprecated, the explicit nullable type must be used instead in /home/cptech/public_html/wp-includes/l10n/class-wp-translation-controller.php on line 101
Deprecated: WP_Translation_Controller::unload_file(): Implicitly marking parameter $locale as nullable is deprecated, the explicit nullable type must be used instead in /home/cptech/public_html/wp-includes/l10n/class-wp-translation-controller.php on line 156
Deprecated: WP_Translation_Controller::unload_textdomain(): Implicitly marking parameter $locale as nullable is deprecated, the explicit nullable type must be used instead in /home/cptech/public_html/wp-includes/l10n/class-wp-translation-controller.php on line 201
Deprecated: WP_Translation_Controller::is_textdomain_loaded(): Implicitly marking parameter $locale as nullable is deprecated, the explicit nullable type must be used instead in /home/cptech/public_html/wp-includes/l10n/class-wp-translation-controller.php on line 243
Deprecated: WP_Translation_Controller::translate(): Implicitly marking parameter $locale as nullable is deprecated, the explicit nullable type must be used instead in /home/cptech/public_html/wp-includes/l10n/class-wp-translation-controller.php on line 263
Deprecated: WP_Translation_Controller::translate_plural(): Implicitly marking parameter $locale as nullable is deprecated, the explicit nullable type must be used instead in /home/cptech/public_html/wp-includes/l10n/class-wp-translation-controller.php on line 297
Deprecated: WP_Translation_Controller::locate_translation(): Implicitly marking parameter $locale as nullable is deprecated, the explicit nullable type must be used instead in /home/cptech/public_html/wp-includes/l10n/class-wp-translation-controller.php on line 397
Deprecated: WP_Translation_Controller::get_files(): Implicitly marking parameter $locale as nullable is deprecated, the explicit nullable type must be used instead in /home/cptech/public_html/wp-includes/l10n/class-wp-translation-controller.php on line 430
Deprecated: WP_Translation_File::create(): Implicitly marking parameter $filetype as nullable is deprecated, the explicit nullable type must be used instead in /home/cptech/public_html/wp-includes/l10n/class-wp-translation-file.php on line 84
Deprecated: wp_getimagesize(): Implicitly marking parameter $image_info as nullable is deprecated, the explicit nullable type must be used instead in /home/cptech/public_html/wp-includes/media.php on line 5502
Deprecated: YoastSEO_Vendor\Symfony\Component\DependencyInjection\Container::__construct(): Implicitly marking parameter $parameterBag as nullable is deprecated, the explicit nullable type must be used instead in /home/cptech/public_html/wp-content/plugins/wordpress-seo/vendor_prefixed/symfony/dependency-injection/Container.php on line 60
Deprecated: Elementor\Controls_Stack::get_active_controls(): Implicitly marking parameter $controls as nullable is deprecated, the explicit nullable type must be used instead in /home/cptech/public_html/wp-content/plugins/elementor/includes/base/controls-stack.php on line 352
Deprecated: Elementor\Controls_Stack::get_active_controls(): Implicitly marking parameter $settings as nullable is deprecated, the explicit nullable type must be used instead in /home/cptech/public_html/wp-content/plugins/elementor/includes/base/controls-stack.php on line 352
Deprecated: Elementor\Controls_Stack::get_style_controls(): Implicitly marking parameter $controls as nullable is deprecated, the explicit nullable type must be used instead in /home/cptech/public_html/wp-content/plugins/elementor/includes/base/controls-stack.php on line 799
Deprecated: Elementor\Controls_Stack::get_style_controls(): Implicitly marking parameter $settings as nullable is deprecated, the explicit nullable type must be used instead in /home/cptech/public_html/wp-content/plugins/elementor/includes/base/controls-stack.php on line 799
Deprecated: Elementor\Elements_Manager::create_element_instance(): Implicitly marking parameter $element_type as nullable is deprecated, the explicit nullable type must be used instead in /home/cptech/public_html/wp-content/plugins/elementor/includes/managers/elements.php on line 70
Deprecated: Elementor\Element_Base::__construct(): Implicitly marking parameter $args as nullable is deprecated, the explicit nullable type must be used instead in /home/cptech/public_html/wp-content/plugins/elementor/includes/base/element-base.php on line 1563
Deprecated: Elementor\Repeater::__construct(): Implicitly marking parameter $args as nullable is deprecated, the explicit nullable type must be used instead in /home/cptech/public_html/wp-content/plugins/elementor/includes/elements/repeater.php on line 49
Deprecated: Elementor\Core\Utils\Collection::filter(): Implicitly marking parameter $callback as nullable is deprecated, the explicit nullable type must be used instead in /home/cptech/public_html/wp-content/plugins/elementor/core/utils/collection.php on line 43
Deprecated: Using null as an array offset is deprecated, use an empty string instead in /home/cptech/public_html/wp-includes/class-wp-theme-json.php on line 2532
Deprecated: Using null as an array offset is deprecated, use an empty string instead in /home/cptech/public_html/wp-includes/class-wp-theme-json.php on line 2532
Deprecated: Using null as an array offset is deprecated, use an empty string instead in /home/cptech/public_html/wp-includes/class-wp-theme-json.php on line 2532
Deprecated: Using null as an array offset is deprecated, use an empty string instead in /home/cptech/public_html/wp-includes/class-wp-theme-json.php on line 2532
Using NTP to Synchronize Server Time | A cPanel Tech
You are here: Home/Articles/ Using NTP to Synchronize Server Time
Warning: Cannot use bool as array in /home/cptech/public_html/wp-content/themes/genesis/lib/functions/image.php on line 104
Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /home/cptech/public_html/wp-content/themes/genesis/lib/functions/image.php on line 116
Deprecated: Using null as an array offset is deprecated, use an empty string instead in /home/cptech/public_html/wp-includes/class-wp-block-type-registry.php on line 168
Deprecated: Using null as an array offset is deprecated, use an empty string instead in /home/cptech/public_html/wp-includes/class-wp-block-type-registry.php on line 168
Deprecated: Using null as an array offset is deprecated, use an empty string instead in /home/cptech/public_html/wp-includes/class-wp-block-type-registry.php on line 168
Deprecated: Using null as an array offset is deprecated, use an empty string instead in /home/cptech/public_html/wp-includes/class-wp-block-type-registry.php on line 168
Deprecated: Using null as an array offset is deprecated, use an empty string instead in /home/cptech/public_html/wp-includes/class-wp-block-type-registry.php on line 168
Deprecated: Using null as an array offset is deprecated, use an empty string instead in /home/cptech/public_html/wp-includes/class-wp-block.php on line 246
Deprecated: Using null as an array offset is deprecated, use an empty string instead in /home/cptech/public_html/wp-includes/class-wp-block-type-registry.php on line 168
Deprecated: Using null as an array offset is deprecated, use an empty string instead in /home/cptech/public_html/wp-includes/class-wp-block-type-registry.php on line 168
Deprecated: Using null as an array offset is deprecated, use an empty string instead in /home/cptech/public_html/wp-includes/class-wp-block-type-registry.php on line 168
Deprecated: Using null as an array offset is deprecated, use an empty string instead in /home/cptech/public_html/wp-includes/class-wp-block-type-registry.php on line 168
Deprecated: Using null as an array offset is deprecated, use an empty string instead in /home/cptech/public_html/wp-includes/class-wp-block-type-registry.php on line 168
The Network Time Protocol daemon (ntpd) program is a Linux operating system daemon. It sets and maintains the server time in sync with the global time servers.
[the_ad_group id=”117″]
In order to synchronize server time, you will need to find one or more NTP servers to use. Your network administrator or ISP may have set up an NTP server for this purpose—check their documentation to see if this is the case. There is an online list of publicly accessible NTP servers which you can use to find an NTP server near to you. Make sure you are aware of the policy for any servers you choose, and ask for permission if required.
Choosing several unconnected NTP servers is a good idea in case one of the servers you are using becomes unreachable or its clock is unreliable. ntpd uses the responses it receives from other servers intelligently—it will favor unreliable servers less than reliable ones
Basic Configuration
If you only wish to synchronize your clock when the machine boots up, you can use ntpdate. This may be appropriate for some desktop machines which are frequently rebooted and only require infrequent synchronization, but most machines should run ntpd.
Using ntpdate at boot time is also a good idea for machines that run ntpd. The ntpd program changes the clock gradually, whereas ntpdate sets the clock, no matter how great the difference between a machine’s current clock setting and the correct time.
General Configuration
NTP is configured by the /etc/ntp.conf file in the format described in ntp.conf. Here is a simple example:
server ntplocal.example.com prefer
server timeserver.example.org
server ntp2a.example.net
driftfile /var/db/ntp.drift
The server option specifies which servers are to be used, with one server listed on each line. If a server is specified with the prefer argument, as with ntplocal.example.com, that server is preferred over other servers. A response from a preferred server will be discarded if it differs significantly from other servers’ responses, otherwise it will be used without any consideration to other responses. The prefer argument is normally used for NTP servers that are known to be highly accurate, such as those with special time monitoring hardware.
The driftfile option specifies which file is used to store the system clock’s frequency offset. The ntpd program uses this to automatically compensate for the clock’s natural drift, allowing it to maintain a reasonably correct setting even if it is cut off from all external time sources for a period of time.
Many Internet services rely on computers’ clocks being accurate. Services such as cron, authentication etc also rely on an accurate system clock to run commands at the specified times. So, having the time in the server to be accurate is very much necessary in this fast paced world.