[Tickets #10758] Re: horde-db-migrate and virtual

bugs at horde.org bugs at horde.org
Mon Nov 14 16:49:36 UTC 2011


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/10758
------------------------------------------------------------------------------
  Ticket             | 10758
  Updated By         | dom.lalot at gmail.com
  Summary            | horde-db-migrate and virtual
  Queue              | Horde Base
  Version            | 4.0.11
  Type               | Bug
  State              | Feedback
  Priority           | 1. Low
  Milestone          |
  Patch              |
  Owners             |
------------------------------------------------------------------------------


dom.lalot at gmail.com (2011-11-14 16:49) wrote:

> How about if you put some
> var_dump($GLOBALS['conf']['server']['name']);
> in horde-db-migrate after the appInit() call? Does it output the  
> correct server name?

root at horde4:/var/www/horde/config# export SERVER_NAME=etumeltest.univmed.fr
root at horde4:/var/www/horde/config# /usr/bin/horde-db-migrate
string(9) "127.0.0.1"

dig gives:
;; ANSWER SECTION:
etumeltest.univmed.fr.  86400   IN      CNAME   horde4.univmed.fr.

Apache:
<VirtualHost *:80>
         ServerAdmin webmaster at localhost
         ServerName horde4.univmed.fr
         ServerName etumeltest.univmed.fr
..
conf.php:
$conf['server']['name'] = $_SERVER['SERVER_NAME'];
$conf['server']['port'] = $_SERVER['SERVER_PORT'];

/etc/hosts
root at horde4:/var/www/horde/config# cat /etc/hosts
127.0.0.1       horde4.univmed.fr horde4 localhost

nothing to tell that etumeltest is 127.0.0.1

Strange!






More information about the bugs mailing list