{"id":487,"date":"2024-07-29T06:58:41","date_gmt":"2024-07-29T01:28:41","guid":{"rendered":"https:\/\/mumbaiwebhosting.co.in\/articles\/?p=487"},"modified":"2024-07-29T07:19:37","modified_gmt":"2024-07-29T01:49:37","slug":"how-to-restart-cpanel-service-on-a-server-via-ssh","status":"publish","type":"post","link":"https:\/\/mumbaiwebhosting.co.in\/articles\/how-to-restart-cpanel-service-on-a-server-via-ssh\/","title":{"rendered":"How to Restart cPanel Service via SSH?"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"536\" src=\"https:\/\/mumbaiwebhosting.co.in\/articles\/wp-content\/uploads\/2024\/07\/Restart-cPanel-Service-1024x536.png\" alt=\"\" class=\"wp-image-495\" srcset=\"https:\/\/mumbaiwebhosting.co.in\/articles\/wp-content\/uploads\/2024\/07\/Restart-cPanel-Service-1024x536.png 1024w, https:\/\/mumbaiwebhosting.co.in\/articles\/wp-content\/uploads\/2024\/07\/Restart-cPanel-Service-300x157.png 300w, https:\/\/mumbaiwebhosting.co.in\/articles\/wp-content\/uploads\/2024\/07\/Restart-cPanel-Service-768x402.png 768w, https:\/\/mumbaiwebhosting.co.in\/articles\/wp-content\/uploads\/2024\/07\/Restart-cPanel-Service.png 1200w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<div class=\"wp-block-rank-math-toc-block\" id=\"rank-math-toc\"><h2>Table of Contents<\/h2><nav><ul><li><a href=\"#steps-to-restart-c-panel-service-via-ssh\">Steps to Restart cPanel Service via SSH<\/a><\/li><li><a href=\"#example-restarting-c-panel-service\">Example: Restarting cPanel Service<\/a><\/li><li><a href=\"#additional-tips\">Additional Tips<\/a><\/li><li><a href=\"#conclusion\">Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n\n\n\n<p><a href=\"https:\/\/www.squarebrothers.com\/\" target=\"_blank\" rel=\"noopener\">Restart the cPanel<\/a> service on a server via SSH can be necessary for various administrative tasks or troubleshooting issues. Here\u2019s how you can do it:<\/p>\n\n\n\n<p>SSH stands for Secure Shell. It is a protocol used for establishing secure connections to remote servers or systems. It ensures data confidentiality by encrypting the transmitted information between the host and the client. SSH handles the transmission of user inputs from the client to the host and sends back the corresponding output. The SSH protocol operates on TCP\/IP port 22.<\/p>\n\n\n\n<p>It allows you to manage system configurations and execute essential operations. It also enables you to restart or reboot the cPanel service on your server. Whenever you make changes to basic settings or encounter issues with the service, it is necessary to restart the server services.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"steps-to-restart-c-panel-service-via-ssh\">Steps to Restart cPanel Service via SSH<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Access Your Server via SSH:<\/strong>\n<ul class=\"wp-block-list\">\n<li>Use an SSH client (like PuTTY for Windows, or Terminal for macOS\/Linux) to connect to your server.<\/li>\n\n\n\n<li>Run the following command to initiate the SSH connection:shCopy code<code>ssh root@your-server-ip<\/code><\/li>\n\n\n\n<li>Replace <code>your-server-ip<\/code> with the actual IP address of your server. Enter the root password when prompted.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Restart cPanel Services:<\/strong>\n<ul class=\"wp-block-list\">\n<li>Once logged in, you can restart various cPanel-related services using the <code>service<\/code> or <code>systemctl<\/code> command, depending on your server\u2019s configuration.<\/li>\n\n\n\n<li><strong>Restart cPanel &amp; WHM:<\/strong>shCopy code<code>\/scripts\/restartsrv_cpsrvd <\/code>orshCopy code<code>service cpanel restart <\/code>orshCopy code<code>systemctl restart cpanel<\/code><\/li>\n\n\n\n<li><strong>Restart cPanel DNS (named):<\/strong>shCopy code<code>\/scripts\/restartsrv_named <\/code>orshCopy code<code>service named restart <\/code>orshCopy code<code>systemctl restart named<\/code><\/li>\n\n\n\n<li><strong>Restart cPanel FTP Server (Pure-FTPd or ProFTPD):<\/strong>shCopy code<code>\/scripts\/restartsrv_ftpd <\/code>orshCopy code<code>service pure-ftpd restart <\/code>orshCopy code<code>systemctl restart pure-ftpd <\/code>For ProFTPD:shCopy code<code>service proftpd restart <\/code>orshCopy code<code>systemctl restart proftpd<\/code><\/li>\n\n\n\n<li><strong>Restart cPanel Mail Server (Exim):<\/strong>shCopy code<code>\/scripts\/restartsrv_exim <\/code>orshCopy code<code>service exim restart <\/code>orshCopy code<code>systemctl restart exim<\/code><\/li>\n\n\n\n<li><strong>Restart cPanel Database Server (MySQL\/MariaDB):<\/strong>shCopy code<code>\/scripts\/restartsrv_mysql <\/code>orshCopy code<code>service mysql restart <\/code>orshCopy code<code>systemctl restart mysql <\/code>For MariaDB:shCopy code<code>service mariadb restart <\/code>orshCopy code<code>systemctl restart mariadb<\/code><\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"example-restarting-c-panel-service\">Example: Restarting cPanel Service<\/h3>\n\n\n\n<p>Here\u2019s an example of restarting the main cPanel service:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">shCopy code<code>ssh root@your-server-ip\nservice cpanel restart\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"additional-tips\">Additional Tips<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Check Service Status:<\/strong>\n<ul class=\"wp-block-list\">\n<li>Before restarting, you can check the status of a service to ensure it\u2019s running properly:shCopy code<code>service cpanel status <\/code>orshCopy code<code>systemctl status cpanel<\/code><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Logs and Troubleshooting:<\/strong>\n<ul class=\"wp-block-list\">\n<li>If you encounter issues, check the logs located in <code>\/var\/log\/<\/code> for specific services (e.g., <code>\/var\/log\/cpanel\/<\/code> for cPanel logs).<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Proper Permissions:<\/strong>\n<ul class=\"wp-block-list\">\n<li>Ensure you are logged in as the root user or a user with sufficient privileges to restart services.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"conclusion\">Conclusion<\/h3>\n\n\n\n<p><a href=\"http:\/\/mumbaiwebhosting.co.in\">Restart cPanel<\/a> services via SSH is a straightforward process that involves connecting to your server and executing the appropriate commands. This can help resolve various issues and apply configuration changes effectively. Always ensure to check service statuses and logs if you encounter any issues during the restart process.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Restart the cPanel service on a server via SSH can be necessary for various administrative tasks or troubleshooting issues. Here\u2019s how you can do it: SSH stands for Secure Shell. It is a protocol used for establishing secure connections to remote servers or systems. It ensures data confidentiality by encrypting the transmitted information between the [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[42],"tags":[],"class_list":["post-487","post","type-post","status-publish","format-standard","hentry","category-restart-cpanel-service"],"_links":{"self":[{"href":"https:\/\/mumbaiwebhosting.co.in\/articles\/wp-json\/wp\/v2\/posts\/487","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mumbaiwebhosting.co.in\/articles\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mumbaiwebhosting.co.in\/articles\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mumbaiwebhosting.co.in\/articles\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mumbaiwebhosting.co.in\/articles\/wp-json\/wp\/v2\/comments?post=487"}],"version-history":[{"count":5,"href":"https:\/\/mumbaiwebhosting.co.in\/articles\/wp-json\/wp\/v2\/posts\/487\/revisions"}],"predecessor-version":[{"id":496,"href":"https:\/\/mumbaiwebhosting.co.in\/articles\/wp-json\/wp\/v2\/posts\/487\/revisions\/496"}],"wp:attachment":[{"href":"https:\/\/mumbaiwebhosting.co.in\/articles\/wp-json\/wp\/v2\/media?parent=487"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mumbaiwebhosting.co.in\/articles\/wp-json\/wp\/v2\/categories?post=487"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mumbaiwebhosting.co.in\/articles\/wp-json\/wp\/v2\/tags?post=487"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}