{"id":56064,"date":"2022-06-10T03:01:30","date_gmt":"2022-06-09T17:01:30","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/ITblog\/?p=56064"},"modified":"2022-06-22T10:34:33","modified_gmt":"2022-06-22T00:34:33","slug":"whm-cpanel-cphulk-firewall-primer-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/whm-cpanel-cphulk-firewall-primer-tutorial\/","title":{"rendered":"WHM cPanel cPHulk Firewall Primer Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/cpanel_cphulk.gif\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"WHM cPanel cPHulk Firewall Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/cpanel_cphulk.gif\" title=\"WHM cPanel cPHulk Firewall Primer Tutorial\"  style=\"float:left;\" \/><\/a><p class=\"wp-caption-text\">WHM cPanel cPHulk Firewall Primer Tutorial<\/p><\/div>\n<p>For our CentOS Linux Apache\/MySql\/PHP web server for RJM Programming, we needed to reboot the Apache and MySql services, via the use of an unusual <font size=1>(at least for us, because we couldn&#8217;t get graphical WHM cPanel access working)<\/font> combination of &#8230;<\/p>\n<ul>\n<li><a target=_blank title='Power Management on Windows' href='https:\/\/www.rjmprogramming.com.au\/ITblog\/vmware-vsphere-web-client-primer-tutorial\/#pmwin'>Power Management<\/a> &#8230; Stop and Start the VMWare Virtual Host &#8230; followed by &#8230;<\/li>\n<li>ssh command line access means by which to restart Apache and MySql services <font size=1>(and we like <a target=_blank title='Great advice href='https:\/\/www.plothost.com\/kb\/restart-cpanel-services\/'>this link<\/a> as a services list checklist, thanks)<\/font> via &#8230;<br \/>\n<code><br \/>\nservice http restart<br \/>\nservice mysql restart<br \/>\n<\/code>\n<\/li>\n<\/ul>\n<p> &#8230; and even a &#8230;<\/p>\n<p><code><br \/>\nservice cpanel restart<br \/>\n<\/code><\/p>\n<p> &#8230; would not allow our graphical based WHM cPanel access happen, us getting, instead, when trying to access the usual Safari web browser address bar way, the error message &#8230;<\/p>\n<blockquote><p>\nThe connection timed out.  Please try again.\n<\/p><\/blockquote>\n<p>Weird!  Anyway, researching this <font size=1 id=iffone>(but please note all along, we suspect we may have been able to solve the issue by closing the Safari web browser and reopening and retrying it)<\/font> we got onto the topic of &#8230;<\/p>\n<p><code><br \/>\nWeb Server Firewalls<br \/>\n<\/code><\/p>\n<p> &#8230; associated with <font size=1>(what might be a &#8220;service&#8221; for you)<\/font> cPanel&#8217;s <a target=_blank title='cPanel cPHulk firewall' href='https:\/\/docs.cpanel.net\/knowledge-base\/security\/cphulk-management-on-the-command-line\/'>cPHulk<\/a> software.<\/p>\n<p>We looked into <i>cPHulk<\/i>, and decided to Stop and Start <i>cPHulk<\/i> finding <a target=_blank title='cPHulk management' href='https:\/\/www.solvps.com\/blog\/?p=274'>great &#8220;Stop&#8221; advice here<\/a>, getting us to go, while still in ssh session &#8230;<\/p>\n<p><code><br \/>\n\/usr\/local\/cpanel\/etc\/init\/stopcphulkd<br \/>\nrm -f \/var\/cpanel\/hulkd\/enabled<br \/>\n<\/code><\/p>\n<p> &#8230; then changed devices to see whether we could get a graphical cPanel session going, and, <font size=1><a href='#iffone'>lo and behold<\/a><\/font>, and relieved, yes, we could!<\/p>\n<p>But then there was the &#8220;Start&#8221; bit to the <i>cPHulk<\/i> work here.  Up the top left of graphical cPanel we typed in &#8220;cPHulk&#8221; and got to the webpage &#8230;<\/p>\n<p><code><br \/>\ncPHulk Brute Force Protection<br \/>\n<\/code><\/p>\n<p> &#8230; where we were surprised <font size=1>(and saddened)<\/font> to see an error message &#8230;<\/p>\n<blockquote><p>\nThe cphulkd login table seems corrupted.  Please contact your system administrator.\n<\/p><\/blockquote>\n<p>Researching this <a target=_blank title='Great advice' href='https:\/\/forums.cpanel.net\/threads\/cphulkd-login-table-seems-corrupted.237882\/'>got us to try, thanks<\/a> &#8230;<\/p>\n<p><code><br \/>\nMain &gt;&gt; SQL Services &gt;&gt; Repair a MySQL Database<br \/>\n<\/code><\/p>\n<p> &#8230; successfully back at our graphical cPanel session.  Then we clicked the &#8220;cPHulk is Currently Disabled &#8230; Enable&#8221; button to successfully get the Firewall functional again.  <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/cpanel_cphulk.gif\" title=\"Tutorial picture\">Phew!<\/a><\/p>\n<p><p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d56064' onclick='var dv=document.getElementById(\"d56064\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/firewall\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d56064' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>For our CentOS Linux Apache\/MySql\/PHP web server for RJM Programming, we needed to reboot the Apache and MySql services, via the use of an unusual (at least for us, because we couldn&#8217;t get graphical WHM cPanel access working) combination of &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/whm-cpanel-cphulk-firewall-primer-tutorial\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,18,25,37],"tags":[53,85,195,270,3990,1641,707,827,3074,2031,1190,1319,1376,3073,1411,1426],"class_list":["post-56064","post","type-post","status-publish","format-standard","hentry","category-elearning","category-hardware","category-networking","category-tutorials","tag-access","tag-apache","tag-centos","tag-cpanel","tag-cphulk","tag-firewall","tag-linux","tag-mysql","tag-power-management","tag-service","tag-ssh","tag-tutorial","tag-virtual-host","tag-vmware","tag-web-server","tag-whm"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/56064"}],"collection":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/comments?post=56064"}],"version-history":[{"count":13,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/56064\/revisions"}],"predecessor-version":[{"id":56209,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/56064\/revisions\/56209"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=56064"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=56064"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=56064"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}