How to change DirectAdmin default port number 2222? Print

  • 359

SSH to your server as a root user:-

Modify DirectAdmin configuration file

[root@server #] 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

[root@server #] 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

Powered by WHMCompleteSolution