Change DA port to your choice where CSF installed

Here I will show you how to change the port from 2222 to 9999 in two steps.

Step One: DirectAdmin

To change the port of my choice (e.g., 9999), I have to open directadmin.conf as follows

nano /usr/local/directadmin/conf/directadmin.conf

Change the port from 2222 to 9999

port=9999

Save and exit.

Step Two: CSF

Find and change ports in CSF (ConfigServer Security & Firewall). Open csf.conf

nano /etc/csf/csf.conf

Change as follows:

TCP_IN = "9999"
TCP_OUT = "9999"

Save and exit.

Restart the CSF firewall

csf -r

Then restart the DirectAdmin

service directadmin restart

You can do the above task in log in to DirectAdmin too.

  • directadmin, linux, unix, centos, license
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to reinstall DirectAdmin in your web server?

Run the following commands to install: cd /usr/local/directadmin./directadmin i./directadmin p

How to install imagick with custombuild of DA?

Run the following command: cd /usr/local/directadmin/custombuild ./build update ./build...

The service ‘exim’ on server xxx is currently down

Rebuild your exim. cd /usr/local/directadmin/custombuild./build update./build set exim...

How to migrate cPanel account to DirectAdmin?

The cPanel conversion script currently only works for Admin Level restores. You must have to be...

How to free up some space in DirectAdmin?

You can do the following to free up some space: cd /usr/local/directadmin/custombuild rm -f...