L lawlawl Verified User Joined Nov 19, 2007 Messages 13 Nov 19, 2007 #1 Is it possible to change the port from 2222 to a custom one? (Of course a port not in use..)
chatwizrd Verified User Joined Jul 3, 2005 Messages 1,915 Nov 19, 2007 #2 Change the port= variable in /usr/local/directadmin/conf/directadmin.conf then issue a restart on directadmin
Change the port= variable in /usr/local/directadmin/conf/directadmin.conf then issue a restart on directadmin
V vispnoc Verified User Joined Jul 11, 2004 Messages 38 Location Houston, TX Nov 19, 2007 #3 Is it possible to use 2 ports? A primary and a secondary. CK
smtalk Administrator Staff member Joined Aug 22, 2006 Messages 9,328 Location LT, EU Nov 19, 2007 #4 Yes, it is possible (using port forwarding).
V vispnoc Verified User Joined Jul 11, 2004 Messages 38 Location Houston, TX Nov 19, 2007 #5 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).
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).
L lawlawl Verified User Joined Nov 19, 2007 Messages 13 Nov 19, 2007 #6 ok i changed port= variable i then restarted the DA service but now DA doesn't load.
jlandes Verified User Joined Dec 1, 2005 Messages 565 Location Lewistown, Pennsylvania, USA Nov 19, 2007 #7 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?
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?