|
READ ONLY FORUM: m23 :: makes software distribution easy The m23 discussion forum
|
View previous topic :: View next topic |
Author |
Message |
TheGuv
Joined: 29 Oct 2010 Posts: 11
|
Posted: Tue Nov 16, 2010 8:12 Post subject: getServerIP() not good for multi-homed servers |
|
|
In 10.4 Rock, the function getServerIP() in /m23/inc/db.php is used in several places including where the work.php script is generated.
It assumes the order of the interfaces within the system's /etc/network/interfaces is sane - with the external interface first. This may not be the case; perhaps for some reason the user has re-ordered the entries and has localhost first. Or perhaps like myself, m23 has been installed via .deb packages onto an existing server that has several interfaces. On mine, the work.php was being generated with an ip address which m23 was not the virtual host.
I'm not entirely sure what the best change would be, other than perhaps to have this a configurable option within 'Server Settings', maybe using the current method to populate the default value?
Great work guys!
--
TheGuv |
|
Back to top |
|
|
Hauke
Joined: 02 Mar 2003 Posts: 1072
|
Posted: Tue Nov 16, 2010 9:06 Post subject: |
|
|
Maybe a hint in the "Installation guide" would do it.
An admin, who orders the interfaces in a specific manner, should know how to edit /etc/network/interfaces and put the external interface on top of the interface list
This will be added soon.
Thank for your message _________________ Hauke Goos-Habermann
- project leader m23 (http://m23.sf.net) -
Jabber: dodgerm23@jabber.org
Schulung, Entwicklung und Support zu m23 und anderen OpenSource-Produkten: www.goos-habermann.de
Auch DU kannst etwas gegen Softwarepatente tun! www.patentfrei.de |
|
Back to top |
|
|
TheGuv
Joined: 29 Oct 2010 Posts: 11
|
Posted: Tue Nov 16, 2010 12:43 Post subject: |
|
|
Hauke wrote: | Maybe a hint in the "Installation guide" would do it. |
Yep, that would help nicely. In my case, it took a while to find out why nothing was happening and the client wasn't being imported (because the work.php script couldn't be fetched, as another web virtual host was on the IP m23 picked). Of course, I'm an m23 newbie, so didn't even understand the basic steps at that point.
Hauke wrote: | An admin, who orders the interfaces in a specific manner, should know how to edit /etc/network/interfaces and put the external interface on top of the interface list
|
Lol, sure, but then again maybe there is more than one admin involved Anyway, assimilation of an existing machine could mean the machine was in another office, or another company that was recently bought, and originally installed by some unknown party.
[quote="Hauke"]This will be added soon./quote]
Wow, that's great. This is certainly a fast-evolving project!
Thanks for your time.
--
TheGuv |
|
Back to top |
|
|
Hauke
Joined: 02 Mar 2003 Posts: 1072
|
Posted: Sat Nov 20, 2010 10:59 Post subject: |
|
|
TheGuv wrote: | Of course, I'm an m23 newbie, so didn't even understand the basic steps at that point. |
It's good if users point it out. If you dayly code for and work with a system, you loose the look on the beginners views
TheGuv wrote: | Anyway, assimilation of an existing machine could mean the machine was in another office, or another company that was recently bought, and originally installed by some unknown party. |
In this case it may be safer to install from scratch. Maybe they left a rootkit
TheGuv wrote: | Wow, that's great. This is certainly a fast-evolving project! |
I try to do things fast, that make sense for the project and can be done in smal time
TheGuv wrote: | Thanks for your time. |
Thank you for reporting _________________ Hauke Goos-Habermann
- project leader m23 (http://m23.sf.net) -
Jabber: dodgerm23@jabber.org
Schulung, Entwicklung und Support zu m23 und anderen OpenSource-Produkten: www.goos-habermann.de
Auch DU kannst etwas gegen Softwarepatente tun! www.patentfrei.de |
|
Back to top |
|
|
|
|
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|