DirectAdmin Knowledge Base and Support

DirectAdmin is a web panel for a simple administration of both virtual and dedicated servers. DirectAdmin is faster, safe and more powerful than any other CP. And we know how to customize and support it.

How to change default port 2222 in Directadmin

| 12:50:07 16.07.2015

I want to change default port 2222 when login to Directadmin. Is it possible?

Yes. It is!

Run this to achieve the desired:

cd /usr/local/directadmin/conf/
vi ./directadmin.conf

in the file find the line with


change it to something you want, for example


save, exit and restart directadmin

killall -9 directadmin
/etc/init.d/directadmin start

Make sure to open port 9999 with firewall and try to access Directamin in a browser.

About Us
We are a team of professionals, and specialize in installation, configuring and managing of remote virtual and dedicated servers powered by Linux/Unix-like OS with DirectAdmin. We support various sets of software, including web-servers Apache, Nginx; internet domain name servers Bind, PowerDNS; mail-servers with POP3, IMAP and SMTP, FTP-servers, etc. After years of working through the most complex server challenges our team has gathered valuable experience and universal solutions suitable for everyday tasks. We are here to lend you a helping hand and take care of your servers in order to let you have enough time to do more of what you love.

All of the information and data on this site is for informational purposes only and is provided for the convenience of the user.
Powered by: Amiro.CMS - Free edition