Not that it is a problem, but you may want to update the documentation. I use apache 2.0.53 with IP based virtual hosts. IPPLAN is in a virtual host with an IP address of X.X.X.X, it does not diplay anything properly when I go to that page. I then put a / in the define base_url section, this did not work either. I could not get the page to dispay correctly unitl I put in http://X.X.X.X for the base url even though the comment says not to do it that way.
We also experienced this after we migrated IPplan over to another server that was using a virtual host.
I have eventually figured this one out! You only have a problem if IPplan is installed in the root directory of the virtual host - for example http://dummy.example.com, not in a subdirectory http://dummy.example.com/ipplan.
The issue has to do with the way the dirname() function returns a path. Normally a path will be returned as /ipplan - if ipplan is installed in the root dir, / is returned. This creates paths like //menus which freaks out the menu system.
So patch is in ipplanlib.php, search for base_url() function and add this line:
if ($tmp == "/") return "";
after this line:
$tmp = dirname($_SERVER["PHP_SELF"]);
Well I just cant get the menus to work properly, I have tried all the options listed in this thread and it will wont work …
My apache config is pretty simple
Alias /monitoreoipplan "/usr/share/ipplan"
Allow from all
And thats it….
In IPplan´s config.php BASE_URL variable I´ve tried '/' and '/monitoreoipplan'
No dice either way… what am I missing?
Log in to post a comment.