Cpanel ports not responding after ubuntu cpanel installation

vacancy

Well-Known Member
Sep 20, 2012
528
203
93
Turkey
cPanel Access Level
Root Administrator
Hi

I am running tests on Ubuntu, but after the cpanel installation on Ubuntu is completed, the cpanel ports are blocked by the firewall and cannot be accessed. I flush and save the iptables - firewalld rules and restore access, but after restarting the server, the firewall rules come back and access is lost.

Centos OS settings I use don't work for ubuntu. Do you have a permanent and safe solution suggestion for this issue?
 
Last edited by a moderator:

quietFinn

Well-Known Member
Feb 4, 2006
1,653
326
438
Finland
cPanel Access Level
Root Administrator
I've done some test cPanel installations in Ubuntu, and never had that kind of problems, maybe because I always install CSF after cPanel install is done.
 
  • Like
Reactions: vacancy

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
10,360
1,632
363
cPanel Access Level
Root Administrator
I also haven't run into this issue on my end, because I also use CSF when doing Ubuntu testing. From our Ubuntu documentation here:


"Firewalls

Even though the installer attempts to open the necessary ports during the installation process, we recommend that you disable OS firewalls before you run the cPanel & WHM installation. When the installation process finishes, we recommend that you then configure a firewall with a third-party client. such as APF or CSF.

Important:

Ubuntu distributions allow you to disable the firewall for the operating system’s installation configuration. We strongly recommend that you use this method."

so we do recommend disabling the default firewall configuration on the server in order to get things working well.