How to change DirectAdmin default port number 2222? Print

  • 293

SSH to your server as a root user:-

Modify DirectAdmin configuration file

[[email protected] #] vi /usr/local/directadmin/conf/directadmin.conf

Kindly search the line with a port name
port=2222
and replace the port as you wish to set it and save :
port=4141

And then restart the DirectAdmin

[[email protected] #] service directadmin restart

Then make sure to open port 4141 in server firewall and try to access DirectAdmin in a browser.


Was this answer helpful?

« Back