bt4

Well-Known Member
Jul 1, 2010
69
0
56
Hello,
i have change default port apache 80 to other port from
WHM > Tweak Settings for this option Apache non-SSL IP/port
and i have restart appach why all websites do not work now?
 

minosjl

Well-Known Member
Jun 4, 2011
168
0
66
India
cPanel Access Level
Root Administrator
Hi,

Did you checked the cPanel config file (/var/cpanel/cpanel.config) and change port 80 in apache_port assignment to 81:
apache_port=0.0.0.0:81

In the mean time run the command "/usr/local/cpanel/whostmgr/bin/whostmgr2 --updatetweaksettings" and check is the domains are working or not.

If its not check the apache conf file /usr/local/apache/conf/httpd.conf for any occurences of port 80, and run /scripts/rebuildhttpdconf to make sure httpd.conf is up to date.
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
somewhere over the rainbow
cPanel Access Level
Root Administrator
Are you trying the new port number in the url when you try to hit the site(s)? If you change the port, unless you are using a proxied connection like nginx or litespeed or something along those lines, it will require the port to be in the url when accessing the site.

I'm uncertain where 81 was mentioned on changing it, though. The actual port number used wasn't mentioned nor why the port was changed, both of which would be useful to have :)