{"id":1480,"date":"2011-12-05T10:02:12","date_gmt":"2011-12-05T14:02:12","guid":{"rendered":"http:\/\/linuxhostingsupport.net\/blog\/?p=1480"},"modified":"2013-03-20T08:44:20","modified_gmt":"2013-03-20T12:44:20","slug":"how-to-install-and-enable-cpanel-proxy","status":"publish","type":"post","link":"https:\/\/linuxhostingsupport.net\/blog\/how-to-install-and-enable-cpanel-proxy","title":{"rendered":"How to Install and Enable cPanel Proxy?"},"content":{"rendered":"<p>cPanel, WHM and even Webmail uses non-common ports which some Internet Server Providers (ISP) do not allow and makes it impossible for people to access any of these. cPanel works on 2082\/2083, WHM 2086\/2087 and Webmail 2095\/2096.<\/p>\n<p>The workaround is to install cPanel Proxy which works as a proxy gateway for Apache and the requests to cPanel\/WHM\/Webmail are then served through port 80 instead of their respective ports which are blocked by the ISP.<\/p>\n<p><span style=\"color: #0000ff;\"><strong>Here&#8217;s how to Install cPanel Proxy:<\/strong><\/span><br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\n<span style=\"color: #0000ff;\"><strong>1.<\/strong><\/span> You have to recompile Apache with the cPanel proxy module.<br \/>\n<strong>a)<\/strong> You can either execute &#8216;<strong>\/scripts\/easyapache<\/strong>&#8216; script via SSH<br \/>\nOR<br \/>\nuse <strong>WHM -&gt; Software -&gt; &#8216;EasyApache (Apache Update)<\/strong>&#8216; option.<\/p>\n<p><strong>b)<\/strong> On the next step, leave the current profile as it is and click<strong> &#8216;Start Customizing Based on Profile&#8217;<\/strong><\/p>\n<p><strong>c)<\/strong> Click &#8216;Next Step&#8217; in the Apache\/PHP selection pages and goto the 5th step<\/p>\n<p><strong>d)<\/strong> On the Short Options List, click<strong> &#8216;Exhaustive Options List&#8217;<\/strong> button to list all the Apache\/PHP modules.<\/p>\n<p><strong>e)<\/strong> Scroll down a bit and select the<strong> &#8220;Proxy&#8221; module<\/strong><\/p>\n<p><strong>f)<\/strong> Click<strong> &#8216;Save and Build<\/strong>&#8216; and proceed to build Apache with the Proxy module.<\/p>\n<p><strong>It may take around 30 minutes for the process to complete.<\/strong> Once the module is compiled, a VirtualHost entry for the cPanel\/WHM\/Webmail sub-domains is added in the Apache configuration file.<\/p>\n<p><span style=\"color: #0000ff;\"><strong>Here&#8217;s how to Enable cPanel Proxy for an Existing account:<\/strong><\/span><br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/p>\n<p><span style=\"color: #0000ff;\"><strong>2)<\/strong><\/span>\u00a0 The next step is to <strong>add &#8216;A&#8217; records <\/strong>for cPanel\/WHM\/Webmail for the domain you need to enable proxy access on. To add the records,<\/p>\n<p><strong>a)<\/strong> Goto WHM -&gt;\u00a0 DNS Functions.<\/p>\n<p><strong>b)<\/strong> Click \u2018Edit a DNS Zone\u2019 option and select the domain to edit and click Edit.<\/p>\n<p><strong>c)<\/strong> Scroll down to the empty boxes and <strong>add the following records<\/strong><\/p>\n<blockquote><p><span style=\"color: #0000ff;\">cpanel 14400 IN A ServerIP<\/span><br \/>\n<span style=\"color: #0000ff;\">whm 14400 IN A ServerIP<\/span><br \/>\n<span style=\"color: #0000ff;\">webmail 14400 IN A ServerIP<\/span><\/p><\/blockquote>\n<p>where, &#8216;ServerIP&#8217; is the actual IP of the server.<\/p>\n<p><strong>d)<\/strong> Click &#8216;Save&#8217;.<\/p>\n<p>Once the records are added, allow sometime to propagate and then you should be able to access cPanel at,<strong> http:\/\/cpanel.yourdomain.tld<\/strong>. You will be able to access WHM\/Webmail the same way.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>cPanel, WHM and even Webmail uses non-common ports which some Internet Server Providers (ISP) do not allow and makes it impossible for people to access any of these. cPanel works on 2082\/2083, WHM 2086\/2087 and Webmail 2095\/2096.<br \/>\nThe workaround is to install cPanel Proxy which works as a proxy gateway for Apache and the requests to cPanel\/WHM\/Webmail are then served through port 80 instead of their respective ports which are blocked by the ISP.<br \/>\nHere&#8217;s how to Install cPanel Proxy:<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\n1. You have to recompile Apache with the cPanel proxy module.<br \/>\na) [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[1325,1326,1323,1322,1324,1321],"_links":{"self":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/1480"}],"collection":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/comments?post=1480"}],"version-history":[{"count":13,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/1480\/revisions"}],"predecessor-version":[{"id":1491,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/1480\/revisions\/1491"}],"wp:attachment":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/media?parent=1480"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/categories?post=1480"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/tags?post=1480"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}