Ports that must be open to run cPanel behind a firewall / IPTables
port service protocol direction
20 ftp tcp inbound/outbound
21 ftp tcp,udp inbound/outbound
22 ssh tcp inbound
25 smtp tcp inbound/outbound
26 smtp tcp inbound/outbound
37 rdate tcp outbound
43 whois tcp outbound
53 DNS tcp/udp inbound/outbound
(inbound is only needed if you run your own public DNS server you)
80 http tcp inbound/outbound
110 pop3 tcp inbound
113 ident tcp outbound
143 imap4 tcp inbound
443 https tcp inbound
465 smtp tls/ssl tcp/udp inbound/outbound
873 rsync tcp/udp outbound
993 imap4 ssl tcp inbound
995 pop3 ssl tcp inbound
2082 cpanel tcp inbound
2083 cpanel ssl tcp inbound
2086 whm tcp inbound
2087 whm ssl tcp inbound
2089 cp licence tcp outbound
2095 Webmail tcp inbound
2096 Webmail SSL tcp inbound
3306 mysql tcp (only if you need to connect remotely)
6666 chat tcp inbound
cPanel setup :
cPanel Installation Instructions:
cPanel now uses a universal install script which can be found at
You can use the following commands in the root
shell to download and start the installation script:
SSH to your server(s) and enter following commands:
tar -xzpf fantastico_whm_admin.tgz
rm -rf fantastico_whm_admin.tgz
Log into your server via SSH as root and execute the following:
rm -rf /var/netenberg/fantastico_de_luxe/
rm -rf /usr/local/cpanel/whostmgr/docroot/cgi/fantastico/
rm -rf /usr/local/cpanel/3rdparty/fantastico*
rm -rf /usr/local/cpanel/base/frontend/*/fantastico
rm -f /usr/local/cpanel/base/frontend/x/cells/fantastico.html
rm -f /usr/local/cpanel/whostmgr/docroot/cgi/addon_fantastico.cgi
cPanel runweblog error :
/usr/bin/perl: symbol lookup error: /usr/local/cpanel/3rdparty/lib/perl/auto/RRDs/RRDs.so: undefined symbol: Perl_Gthr_key_ptr
I removed the rrdtool binary from /usr/local/cpanel/3rdparty/bin then ran /scripts/rrdtoolinstall
First, check the license on http://verify.cpanel.net/ to ensure it is still licensed.
If it is not, please contact who you purchase the license from directly.
If your license lists as active and you see this error when trying to access cPanel or WHM: License File Expired, you will want to ensure that port 2089 is open for outbound TCP traffic.
After verifying that port 2089 is open, check to make sure that this command gives the IP that you expect: lynx -dump http://www.cpanel.net/showip.cgi. If that command shows the expected IP, run this from the command line as root, on the server: /usr/local/cpanel/cpkeyclt.
# rdate -s rdate.cpanel.net
A Perl module is a self-contained piece of Perl code that can be used by a Perl program or by other Perl modules. It is conceptually similar to a C link library, or a C++ class.
To manually install a Perl module:
- Download To retrieve a file from another machine, usually a host machine, to your machine. the Perl module from CPAN or other site.
- Extract the tarball, and then run the following commands (in that order):
- perl Makefile.PL
- make test
- make install
From the WHM
Login to the: WHM >> Main >> Software >> Install a Perl Module
Enter the name of the Perl Module you wish to install in the field and click the button Search. Perl Module will be presented to you in a list. Find and can click on the module you wish to install.
The command Line
- SSH to the server and login as root.
- Type the following command at the prompt:
- /scripts/realperlinstaller –force HTML ::Template
In this case, the module we want to install is HTML::Template.
Cpanel on FreeBSD shows the error that named or rndc does not exist after a cpanel update.
server1# ln -s /usr/local/sbin/named /usr/sbin/named