Change Port?

lawlawl

Verified User
Joined
Nov 19, 2007
Messages
13
Is it possible to change the port from 2222 to a custom one?
(Of course a port not in use..)
 
Change the port= variable in /usr/local/directadmin/conf/directadmin.conf then issue a restart on directadmin
 
Is it safe to assume that the port forwarding would entail iptable rules? If so, would you mind sharing a Centos example (I'm being lazy today).
 
ok i changed port= variable
i then restarted the DA service
but now DA doesn't load.
 
One thing to remember if you change the port is that you may also need to change the file /var/www/html/redirect.php:

Code:
<?
header("Location: http://".$_SERVER['HTTP_HOST'].":2222");
?>

Change the port to your new port. This will fix it so that www.yourdomain.com/config/ will get redirected to the correct port.

I don't believe this will fix your current issue, but it will be something you'll want to think about if you get the alternate port working.

Are there any firewalls on your server or on your desktop that are preventing the new port from working?
 
Back
Top