[imp] Incorrect HORDE_BASE

Stephen A. Cochran Lists stephen.a.cochran.lists at cahir.net
Mon Nov 14 17:19:02 PST 2005


On our production server, I have the following alias in my apache  
conf file:

DocumentRoot	/var/www/html/mail/horde/imp
Alias	/horde	/var/www/html/mail/horde/

I wanted to set up a second instance of Horde/IMP on the same machine  
to test the new version, and added the following:

Alias	/beta	/var/www/html/mail-beta/horde/

The "horde" in the beta URL was causing all requests for the beta  
version to be redirected to the production version so I moved the  
beta version,  changed the apache conf, and restarted apache.

mv /var/www/html/mail-beta/horde /var/www/html/mail/beta
Alias	/beta /var/www/html/mail/beta/

Now requests for beta do go to the new version of horde/imp, but I'm  
getting the following php errors:

Fatal error: main(): Failed opening required '/var/www/html/mail-beta/ 
horde/lib/Test.php' (include_path='.:/usr/share/pear') in /var/www/ 
html/mail-beta/horde/index.php on line 21

HORDE_BASE is being set to dirname(__FILE__) in index.php, but for  
some reason is still holding on to the old location. I wrote a quick  
test script to echo out __FILE__ and dirname(__FILE__) from the beta  
folder and it outputs the correct information. But somehow HORDE_BASE  
is still getting the old path information, even through apache and a  
server restart. Ideas?

Steve Cochran


More information about the imp mailing list