PDA

View Full Version : Can I change the port number of DirectAdmin!?



jeffery
02-09-2004, 10:46 PM
Just got my DirectAdmin license freashly! But I want to know if I can change the port number of DirectAdmin to something like 123 instead of the default 2222?


Any ideas??

Thanks!

ProWebUK
02-10-2004, 07:13 AM
directadmin.conf

note that this will stop auto-updates taking place (I think)

Chris

netmotiv8
02-10-2004, 07:50 AM
if you change it from 2222 it does stop the auto-updates. I know this cos we use a different port number on our server.

Neil :D

jeffery
02-10-2004, 07:59 AM
Thanks very much~

but can I manually update Directadmin then~?:D

ProWebUK
02-10-2004, 08:00 AM
Yep

Admin Panel > Licensing / updates > Update DirectAdmin

jeffery
02-10-2004, 08:14 AM
I cannot find anything related to port number in directadmin.conf???:eek:

ProWebUK
02-10-2004, 08:33 AM
/usr/local/directadmin/conf/directadmin.conf


In there should be:

port=2222


If its not there try adding it then restarting directadmin :)

Chris

jeffery
02-10-2004, 08:36 AM
When I add the line to the directadmin.conf,
Directadmin still EXISTS in port 2222 ...?

I have restarted the service using

service directadmin restart

:eek: :eek:

ProWebUK
02-10-2004, 08:39 AM
are you using the correct config - /usr/local/directadmin/conf/directadmin.conf

There is another one, make sure thats the one you are making the chnages with :)

Chris

jeffery
02-10-2004, 08:39 AM
O IC~

I have got DirectAdmin set in port 123

however.. it's blocked by my firewall..

How can I change the allowed port in Redhat Linux 9's default firewall program?
I am not so familiar with this~~ :D

ProWebUK
02-10-2004, 08:48 AM
/sbin/iptables -P INPUT ACCEPT
/sbin/iptables -P OUTPUT ACCEPT
/sbin/iptables -F

That will wipe *all* current rules you have, although I advise you to get another firewall (KISS or APF are both good ones :))

Chris

jeffery
02-11-2004, 05:44 AM
Thanks~ :p

Get changed to 1234~
but Linux litmits me the port is above 1000~

:D

iodine
02-20-2004, 04:56 AM
Originally posted by jeffery
Thanks~ :p

Get changed to 1234~
but Linux litmits me the port is above 1000~

:D

Typically only services started by root can run on ports <1024

:)

etegration
05-14-2004, 01:29 AM
anyway to not let DA run on port at all? i have clients complaining they cannot access it in school lah, in some offices lah etc. Will it compromise any security as it was put there for security reasons in the first place?

ProWebUK
05-14-2004, 06:11 AM
Originally posted by etegration
anyway to not let DA run on port at all? i have clients complaining they cannot access it in school lah, in some offices lah etc. Will it compromise any security as it was put there for security reasons in the first place?

It has to bind to a port.

Chris

etegration
05-15-2004, 05:07 AM
Originally posted by ProWebUK
It has to bind to a port.

Chris

80 possible then? it's a port.

ProWebUK
05-15-2004, 05:39 AM
Originally posted by etegration
80 possible then? it's a port.

Of course... but you need a port not being already used... so that means stop apache if you want 80. (and of course it needs to be started by root to get lower than 1024 as mentioned above)

etegration
05-15-2004, 05:52 AM
Originally posted by ProWebUK
Of course... but you need a port not being already used... so that means stop apache if you want 80. (and of course it needs to be started by root to get lower than 1024 as mentioned above)

:D

ok then, i'll stick to 2222 for now. Thanks for the replies.