Koozali.org: home of the SME Server

registry.php webroot problem

vicratlh

registry.php webroot problem
« on: June 22, 2007, 05:10:31 PM »
Recently someone on my staff updated our SME Server with updates from the updates testing repository.  They didn't back up the current configuration before they did the update.  After the update the Horde login page was broken, I could get to it and put in a username and password but once I clicked on Log in it would tell me the page could not be found.  I went into the registry.php.dist file and changed the webroot for Horde from _detect_webroot() to '/horde' and this fixed the problem.  But I'm thinking with any new updates that it may break it again and I'll have to edit the file again.  After doing some searching I did find that there is a bug in the _detect_webroot function and I tried the solution that was given on this site: http://www.hotzeltopf.de/anleitungen/sicherheitsueberlegungen-zu-horde-3-unter-confixx-mit-suphp-5

But it didn't fix the problem either.

Anyone else have this problem before and how did you fix it?

TIA

VicRatlH

Offline mrjhb3

  • *
  • 1,188
  • +0/-0
    • John Bennett Services
registry.php webroot problem
« Reply #1 on: June 22, 2007, 06:01:34 PM »
Changing the webroot to /horde is exactly what was done for horde 3.1.4 on SME Server.  I couldn't get the webroot detection to work either.  The registry.php.dist file is the wrong file to update.  You would need to update registry.php, but that will already be done for you by e-smith-horde.  After updates, you must do a reconfiguration reboot from server-manager, or signal-event post-upgrade ; signal-event reboot.

I have the most current horde rpms running on two test servers without any issues.

JB
......

vicratlh

registry.php webroot problem
« Reply #2 on: June 22, 2007, 08:16:04 PM »
Yes, I knew I needed to edit the registry.php file.

Ok, here are the versions of horde that I'm running:

horde-3.1.4-1.el4.sme
e-smith-horde-1.13.0-21.el4.sme

I know this is probably a dumb question, but you wouldn't happen to know the repository you're using to get the latest rpms?  Also, how do I install them once I download them to my server?

VicRatlH

Offline mrjhb3

  • *
  • 1,188
  • +0/-0
    • John Bennett Services
registry.php webroot problem
« Reply #3 on: June 22, 2007, 08:46:20 PM »
Quote from: "vicratlh"
Yes, I knew I needed to edit the registry.php file.

Ok, here are the versions of horde that I'm running:

horde-3.1.4-1.el4.sme
e-smith-horde-1.13.0-21.el4.sme

I know this is probably a dumb question, but you wouldn't happen to know the repository you're using to get the latest rpms?  Also, how do I install them once I download them to my server?

VicRatlH


I used them when they were in the smedev repo as I was the one that did the updates to them originally.  They are now in the smeupdates-testing repo and have been verified by others to work properly.  Are you sure you don't have a custom-template that may be being used?

I just checked and I forgot that I had installed the most recent versions on my production server a while back and haven't had any issues.

There was a change in that the webroot info is now at the end of registry.php in 800webroot instead of at the beginning with 100webroot.  That change follows what done in horde 3.1.4 .  You don't happen to have two webroot files in the /etc/e-smith/templates/home/httpd/html/horde/config/registry.php, do you?
You could run this and see /sbin/e-smith/audittools/templates.

JB
......

vicratlh

registry.php webroot problem
« Reply #4 on: June 22, 2007, 08:53:10 PM »
Yes, sorry about that, I forgot that I made a custom template for it, went in and fixed it in the template and everything should be fine now.

Thanks for the help.

VicRatlH

P.S. Any thoughts on the other message I posted about blank page after clicking on Send Message?