directadmin port

Edit the file /usr/local/directadmin/conf/directadmin.conf and change the line:

Code:
port=2222

to:

Code:
port=#

Replace # with the port number that you'd like to use. You'll also want to modify the file /var/www/html/redirect.php and change the line:

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

to:

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

Once again, replace # with the same port number you used above.

Make sure you update your firewall to open this new port. Hope this helps. :)
 
Hi Jeremy

Thanks for this, sorry to act a bit dumb, do I update the firewall on my server?

Thanks
Mark
 
Is what not working on your server? DirectAdmin? Your Firewall? Your access to the DirectAdmin port?

Give out your URL so others besides you can test.

Jeff
 
Back
Top