Problems changing port number of webserver [message #10560] |
Wed, 04 June 2003 17:15 |
jmartinson
Messages: 12 Registered: June 2003
Karma: 0
|
Junior Member |
|
|
I installed FUD on port 81 this morning to test it. We decided we would like to use it and wanted to move it to port 80. I changed the listenport to 80 in apache's httpd.conf and encountered all kinds of problems.
I looked through the PHP code and found the URL for images (and other things) is hardcoded to http://xxx.xx.xxx.xx:81/whatever.
This seems very inflexible to me. Why not use relative links so the code isn't so directly tied to the installation parameters? If relative links were used this would not be an issue.
Does anyone have a script to go through my installation directory and change all these values to the new ones?
This seems like a major design flaw to me. Does anyone have a way around this, or would I have to reinstall and then redo all the work I did in setting up groups, templates, etc?
Any information is greatly appreciated.
-Jacob
[Updated on: Wed, 04 June 2003 17:15] Report message to a moderator
|
|
|
|
Re: Problems changing port number of webserver [message #10562 is a reply to message #10561] |
Wed, 04 June 2003 17:45 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
The solution is quite simple, You need to modify GLOBALS.php and change the port inside the $WWW_ROOT variable. After that is done, go to the admin control panel, theme manager and rebuild your theme. After this is done your forum will work correctly.
FUDforum Core Developer
|
|
|
|