Hsphere change your control panel port

Head Surfer
October 11th, 2008

http://www.psoft.net/HSdocumentation/sysadmin/changing_cp_url.html

Changing hsphere control panel ports from:

Too may firewalls blocking it:
8443 – 2087
8080 – 2086

First move apache to 2086 and 2087
vi /etc/httpd/conf/httpd.conf
Change:
Listen 0.0.0.0:80
to
Listen 0.0.0.0:2086

vi /etc/httpd/conf.d/ssl.conf
Change
Listen 0.0.0.0:443
to
Listen 0.0.0.0:2087

Change hsphere:
vi /hsphere/local/home/cpanel/hsphere/WEB-INF/classes/psoft_config/hsphere.properties
Change
CP_PORT = 8443
to
CP_PORT = CP_PORT = 443

Change
DEFAULT_CP_PORT = 8080
to
DEFAULT_CP_PORT = 80

Change
PATH_SITE_STUDIO = http://66.98.172.89:8080/studio/servlet/psoft.masonry.Builder
to
PATH_SITE_STUDIO = http://66.98.172.89:80/studio/servlet/psoft.masonry.Builder

Fix Site Studio:
cd /hsphere/shared/SiteStudio/psoft_config/
vi counter.properties
Change 8080 to 80 (2 times)

vi guestbook.properties
Change 8080 to 80 (1 time)

vi masonry.properties
Change 8080 to 80 (6 times)

vi /hsphere/local/home/cpanel/apache/etc/httpd.conf
Change:
Port 80

<IfDefine SSL>
Listen 8080
Listen 8443
</IfDefine>

Change:
<VirtualHost _default_:443>

Stop Apache, Stop CP
Start Both Services
================================================================================================
Once You are complete some clients still have 8080 and 8443 bookmarked – port forward to avoid errors
================================================================================================
iptables -t nat -A PREROUTING -p tcp -i eth0 -d $SERVERIP –dport 8443 -j DNAT –to $SERVERIP:443
iptables -t nat -A PREROUTING -p tcp -i eth0 -d $SERVERIP –dport 8080 -j DNAT –to $SERVERIP:80

How To Host A Website is a Web Hosting Review service. We provide web hosting reviews for best hosting, server hosting, cheap hosting and more as we answer the most important website hosting question - How To Host Website pages successfully.

Words visitors used that found this page online:


Disclosure: We are a professional review site that receives compensation from the companies whose products we review. We are independently owned and the opinions expressed here are our own. Please contact us if you would like your web hosting company considered for a web hosting and support review.
Back to top Copyright 2012 © How To Host A Website, An OS Hosting, LLC Company