directadmin port

jlandes

Verified User
Joined
Dec 1, 2005
Messages
624
Location
Lewistown, Pennsylvania, USA
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. :)
 

markmanc

Verified User
Joined
Mar 1, 2007
Messages
9
Hi Jeremy

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

Thanks
Mark
 

nobaloney

NoBaloney Internet Svcs - In Memoriam †
Joined
Jun 16, 2003
Messages
26,119
Location
California
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
 
Top