spacer.png, 0 kB
  May 19, 2013, 19:07:12

 
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length


Pages: [1]
  Print  
Author Topic: Feature req: Config urdd port post-install  (Read 1413 times)
thorwak

Posts: 202


View Profile
« on: April 19, 2010, 12:52:32 »

Minor request: I'm setting up a second URD installation to use for short retention and frequent updates and use the other one as an archive since it's too slow otherwise (I'm gonna have my cake and eat it too dammit Wink )

Anyway, I found out I couldn't change the urd port from 11666 on an existing installation. I changed all the defines and so on, but there was a database entry I had to set manually with sql. You can change the host via the config, but there is no way to set the port after the install script has been run (that I can find).

I'll add it myself at some point if noone beats me to it, could be a good exercise Smiley
(I fixed it manually in my case so no rush with this one)
Logged
spearhead
Administrator
*
Posts: 1038


View Profile WWW
« Reply #1 on: April 19, 2010, 12:57:05 »

IIRC there are two aspects here.

One is the config of the URD daemon process, which reads config.php to listen to a certain port. You've to manually edit that file.

Two is the port the web interface listens to, that can be configured in the webinterface (configuration).

AFAIK there is no need to dig into SQL.
Logged
thorwak

Posts: 202


View Profile
« Reply #2 on: April 19, 2010, 13:01:24 »

IIRC there are two aspects here.

One is the config of the URD daemon process, which reads config.php to listen to a certain port. You've to manually edit that file.

Two is the port the web interface listens to, that can be configured in the webinterface (configuration).

AFAIK there is no need to dig into SQL.

I have it working, it's fine to have two web interfaces on port 80, just different URL (apache does the talking here). Only problem was the port 11666, and setting is stored in the database. It just needs an entry  in the config sheet so one doesn't have to reinstall or manually edit the DB if one decides to edit the data.

tcp        0      0 127.0.0.1:22666         0.0.0.0:*               LISTEN
tcp        0      0 127.0.0.1:11666         0.0.0.0:*               LISTEN


Smiley
Logged
spearhead
Administrator
*
Posts: 1038


View Profile WWW
« Reply #3 on: April 19, 2010, 13:03:35 »

Like this one?

URDD port:

Perhaps you need to raise the user experience level, it doesn't show in basic, but does in >= advanced
Logged
thorwak

Posts: 202


View Profile
« Reply #4 on: April 19, 2010, 13:05:30 »

To be more clear: Table preferences has an entry "urdd_port" that holds 11666 if you accepted the defaults while installing. This I needed to change to make it work.

Before that, I did a "grep -R 11666 *" ni the source and changed 11666 to 22666 everywhere; that was not enough. The DB entry was used since it existed.
Logged
thorwak

Posts: 202


View Profile
« Reply #5 on: April 19, 2010, 13:08:17 »

Like this one?

URDD port:

Perhaps you need to raise the user experience level, it doesn't show in basic, but does in >= advanced


You've got to be kidding me Cheesy You're completely right, I "knew" I was on grandmaster level so I just searched for "11666" and "port" on the config page before I decided it was impossible.. The problem was, of course, that I was only grandmaster in the other installation and not in the one I was fixing now.

I'll go and shoot myself now, please remove thie thread or something  Roll Eyes  Cheesy
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC
Amigri by Fakdordes
spacer.png, 0 kB
spacer.png, 0 kB
spacer.png, 0 kB