{"id":18414,"date":"2026-09-29T23:33:56","date_gmt":"2026-09-29T20:33:56","guid":{"rendered":"https:\/\/www.hyyat.com\/knowledgebase\/restart-services-whm\/"},"modified":"2026-11-22T16:37:52","modified_gmt":"2026-11-22T13:37:52","password":"","slug":"restart-services-whm","status":"publish","type":"docs","link":"https:\/\/www.hyyat.com\/en\/knowledgebase\/restart-services-whm\/","title":{"rendered":"Restarting Services in WHM: Apache, Database, Mail and DNS Without Rebooting the Server"},"content":{"rendered":"<div class=\"hkb\" dir=\"ltr\">\n<div class=\"hkb-tldr\"><b>Fix in two lines<\/b>From the <b>Restart Services<\/b> menu in WHM pick the service, such as <b>HTTP Server (Apache)<\/b>, and click <b>Restart<\/b>. It stops for a few seconds and comes back while everything else keeps running. If it does not come back, check its log before rebooting the server.<\/div>\n<div class=\"hy-vid\"><div style=\"width: 1280px;\" class=\"wp-video\"><video class=\"wp-video-shortcode\" id=\"video-18414-1\" width=\"1280\" height=\"720\" poster=\"https:\/\/www.hyyat.com\/zasogooh\/2026\/11\/hyyat-whm-restart-en.jpg\" preload=\"none\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/www.hyyat.com\/zasogooh\/2026\/11\/hyyat-whm-restart-en.mp4?_=1\" \/><a href=\"https:\/\/www.hyyat.com\/zasogooh\/2026\/11\/hyyat-whm-restart-en.mp4\">https:\/\/www.hyyat.com\/zasogooh\/2026\/11\/hyyat-whm-restart-en.mp4<\/a><\/video><\/div><\/div>\n<p>When sites stop responding or mail breaks, the cause is usually one service that has hung or eaten the memory. Restarting just that service fixes it in seconds, without taking mail down because you restarted the web server, or the other way round. It is quicker and less disruptive than <a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/reboot-server-from-whm\/\">rebooting the server<\/a>.<\/p>\n<div class=\"hkb-note\"><b>Before you start<\/b><\/p>\n<ul class=\"hkb-list\">\n<li>Access to WHM as <b>root<\/b> at <code>https:\/\/your-server-hostname:2087<\/code> (or the server IP on port 2087). Avoid the old port 2086: it is not encrypted.<\/li>\n<li>An idea of which service is at fault. If you are not sure, start with Service Status in <a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/whm-system-health\/\">checking server health<\/a>.<\/li>\n<\/ul>\n<\/div>\n<h2>Where is the menu?<\/h2>\n<p><b>Restart Services<\/b> is a group near the bottom of the WHM sidebar. Quickest: type <code>Restart<\/code> into the search box at the top of the menu.<\/p>\n<figure class=\"hkb-fig\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.hyyat.com\/zasogooh\/2026\/11\/hkb-wh-w-restart.webp\" alt=\"The WHM Restart Services menu and the Apache restart page\" width=\"800\" height=\"451\" loading=\"lazy\" \/><\/figure>\n<h2>Which service should you restart?<\/h2>\n<div class=\"hkb-tbl\">\n<table>\n<thead>\n<tr>\n<th>Menu item<\/th>\n<th>What it runs<\/th>\n<th>When to restart it<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><b>HTTP Server (Apache)<\/b><\/td>\n<td>Serving websites<\/td>\n<td>Sites do not load or return 503, or after editing Apache settings<\/td>\n<\/tr>\n<tr>\n<td><b>PHP-FPM service for Apache<\/b><\/td>\n<td>Running PHP<\/td>\n<td>PHP sites are slow or return 503 while static pages work<\/td>\n<\/tr>\n<tr>\n<td><b>Database Server<\/b><\/td>\n<td>MySQL or MariaDB<\/td>\n<td>WordPress shows \u201cError establishing a database connection\u201d<\/td>\n<\/tr>\n<tr>\n<td><b>Mail Server (Exim)<\/b><\/td>\n<td>Sending and receiving mail<\/td>\n<td>Messages stuck in the queue or not sending<\/td>\n<\/tr>\n<tr>\n<td><b>IMAP Server<\/b><\/td>\n<td>Dovecot, for reading mail<\/td>\n<td>Mail apps and phones cannot connect<\/td>\n<\/tr>\n<tr>\n<td><b>DNS Server<\/b><\/td>\n<td>The nameserver<\/td>\n<td>DNS edits do not show and this server is the domain\u2019s nameserver<\/td>\n<\/tr>\n<tr>\n<td><b>SSH Server (OpenSSH)<\/b><\/td>\n<td>SSH logins<\/td>\n<td>Only after editing SSH settings, and carefully<\/td>\n<\/tr>\n<tr>\n<td><b>Mailing List Manager (Mailman)<\/b><\/td>\n<td>Mailing lists<\/td>\n<td>Mailing lists are not sending<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h2>Restarting a service<\/h2>\n<ol class=\"hkb-steps\">\n<li><b>Choose the service<\/b> from the Restart Services menu.<\/li>\n<li><b>Read the question<\/b> the page asks whether you are sure you wish to restart this service.<\/li>\n<li><b>Click Restart<\/b> WHM shows the result and the service status afterwards.<\/li>\n<li><b>Confirm it worked<\/b> look for a line saying the service is running, then test the site or mail.<\/li>\n<\/ol>\n<div class=\"hkb-note warn\"><b>Careful with SSH:<\/b> if the SSH configuration has an error and you restart it, you can lock yourself out. Keep your SSH session open and test a new login from a second window before closing the first.<\/div>\n<h2>From the command line<\/h2>\n<p>cPanel ships a script for each service, run as root:<\/p>\n<pre class=\"hkb-code\">\/scripts\/restartsrv_httpd     # Apache\n\/scripts\/restartsrv_mysql     # database\n\/scripts\/restartsrv_exim      # mail transfer\n\/scripts\/restartsrv_dovecot   # IMAP and POP3\n\/scripts\/restartsrv_cpsrvd    # the cPanel and WHM interfaces themselves<\/pre>\n<p>The last one is handy when WHM or cPanel will not load while the sites themselves are fine.<\/p>\n<h2>The service will not come back?<\/h2>\n<ol class=\"hkb-steps\">\n<li><b>Read the error<\/b> WHM shows after Restart; it usually names the file or line at fault.<\/li>\n<li><b>Check the log<\/b> for Apache: <code>\/etc\/apache2\/logs\/error_log<\/code>; for the database, the error log in its data directory; for mail: <code>\/var\/log\/exim_mainlog<\/code>.<\/li>\n<li><b>Undo the last change<\/b> most failures follow a manual configuration edit.<\/li>\n<li><b>Check disk space<\/b> a full disk stops many services starting. See Show Current Disk Usage.<\/li>\n<\/ol>\n<h2>Let the server restart them for you<\/h2>\n<p>cPanel\u2019s <b>chkservd<\/b> watches services and restarts any that stop. Choose which ones it monitors in <b>Service Configuration, then Service Manager<\/b>, by ticking <b>Monitor<\/b> for each service.<\/p>\n<div class=\"hkb-note\"><b>Check afterwards<\/b><\/p>\n<ul class=\"hkb-list\">\n<li>The service shows up in Service Status.<\/li>\n<li>The original problem is gone.<\/li>\n<li>No new errors in the log.<\/li>\n<\/ul>\n<\/div>\n<h2>Service questions<\/h2>\n<div class=\"hkb-faq\">\n<details>\n<summary>Do sites go down when Apache restarts?<\/summary>\n<p>Only for a few seconds, and visitors may not notice.<\/p>\n<\/details>\n<details>\n<summary>Is mail lost when Exim restarts?<\/summary>\n<p>No. Queued messages are kept on disk and sent once the service is back.<\/p>\n<\/details>\n<details>\n<summary>What is the difference between restarting a service and rebooting?<\/summary>\n<p>A service restart restarts one program while the rest keep running; a reboot stops everything until the server boots again.<\/p>\n<\/details>\n<\/div>\n<div class=\"hkb-rel\"><b>Related guides<\/b><\/p>\n<ul>\n<li><a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/reboot-server-from-whm\/\">Rebooting Your Server from WHM: Graceful or Forceful, and What to Do If It Does Not Come Back<\/a><\/li>\n<li><a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/whm-system-health\/\">How to Check Server Health in WHM (System Health)<\/a><\/li>\n<li><a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/the-most-common-problems-faced-by-whm-cpanel-users\/\">The most common problems faced by WHM \/ cPanel users<\/a><\/li>\n<li><a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/cpanel-whm-on-vps\/\">cPanel and WHM on a VPS \u2014 The Complete 2026 Guide: What They Are, Licensing, and When to Choose Them<\/a><\/li>\n<\/ul>\n<p><a href=\"https:\/\/www.hyyat.com\/en\/kb\/whm-cpanel-control-panels\/\">All WHM guides \u2192<\/a><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Fix in two linesFrom the Restart Services menu in WHM pick the service, such as HTTP Server (Apache), and click Restart. It stops for a few seconds and comes back while everything else keeps running. If it does not come back, check its log before rebooting the server. When sites stop responding or mail breaks, [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":21108,"comment_status":"open","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"_templately_pack_id":"","_templately_imported_at":"","_templately_source":"","_templately_import_session_id":"","footnotes":""},"doc_category":[2734],"doc_tag":[],"class_list":["post-18414","docs","type-docs","status-publish","has-post-thumbnail","hentry","doc_category-whm-cpanel-control-panels"],"year_month":"2026-11","word_count":701,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"ahmed fathy","author_nicename":"ahmed-fathy","author_url":"https:\/\/www.hyyat.com\/en\/author\/ahmed-fathy\/"},"doc_category_info":[{"term_name":"WHM\/cPanel","term_url":"https:\/\/www.hyyat.com\/en\/kb\/whm-cpanel-control-panels\/"}],"doc_tag_info":[],"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/docs\/18414","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/comments?post=18414"}],"version-history":[{"count":0,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/docs\/18414\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/media\/21108"}],"wp:attachment":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/media?parent=18414"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/doc_category?post=18414"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/doc_tag?post=18414"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}