[Tickets #7223] Re: upgrade option in setup.php fails

bugs at horde.org bugs at horde.org
Wed Aug 20 19:13:28 UTC 2008


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

Ticket URL: http://bugs.horde.org/ticket/7223
------------------------------------------------------------------------------
  Ticket             | 7223
  Updated By         | msteltman at disway.nl
  Summary            | upgrade option in setup.php fails
  Queue              | Horde Groupware Webmail Edition
  Version            | 1.1.2
  Type               | Bug
  State              | Feedback
  Priority           | 1. Low
  Milestone          |
  Patch              |
  Owners             |
------------------------------------------------------------------------------


msteltman at disway.nl (2008-08-20 15:13) wrote:

Here's the detailed output when i try to avoid safe_mode using the commandline
apparently php runs in safe mode on my distro (slackware) , regardless  
of the -n (no php.ini) option.
hence the -d safe_mode_allowed_env_vars=HORDE_


[root at mist webmail]# mv horde horde.org
[root at mist webmail]# mv horde-webmail-1.1.2 horde
[root at mist webmail]# cd horde
[root at mist horde]#
[root at mist horde]# php -n ./scripts/setup.php
Horde Groupware Webmail Edition Configuration Menu
     (0) Exit
     (1) Configure database settings
     (2) Create database or tables
     (3) Configure administrator settings
     (4) Update from an older Horde Groupware Webmail Edition version

Type your choice: 4

Specify the directory of the old Horde Groupware Webmail Edition  
version that you would like to update: ../horde.org

Copying old configuration files...
../horde.org/kronolith/config/menu.php ->  
/home/httpd/webmail/horde/kronolith/config/menu.php
../horde.org/kronolith/config/prefs.php ->  
/home/httpd/webmail/horde/kronolith/config/prefs.php
../horde.org/kronolith/config/keywords.php ->  
/home/httpd/webmail/horde/kronolith/config/keywords.php
../horde.org/kronolith/config/conf.php ->  
/home/httpd/webmail/horde/kronolith/config/conf.php
../horde.org/config/hooks.php -> /home/httpd/webmail/horde/config/hooks.php
../horde.org/config/prefs.php -> /home/httpd/webmail/horde/config/prefs.php
../horde.org/config/conf.php -> /home/httpd/webmail/horde/config/conf.php
../horde.org/config/motd.php -> /home/httpd/webmail/horde/config/motd.php
../horde.org/config/mime_drivers.php ->  
/home/httpd/webmail/horde/config/mime_drivers.php
../horde.org/config/nls.php -> /home/httpd/webmail/horde/config/nls.php
../horde.org/config/registry.php ->  
/home/httpd/webmail/horde/config/registry.php
../horde.org/turba/config/menu.php ->  
/home/httpd/webmail/horde/turba/config/menu.php
../horde.org/turba/config/attributes.php ->  
/home/httpd/webmail/horde/turba/config/attributes.php
../horde.org/turba/config/prefs.php ->  
/home/httpd/webmail/horde/turba/config/prefs.php
../horde.org/turba/config/conf.php ->  
/home/httpd/webmail/horde/turba/config/conf.php
../horde.org/turba/config/mime_drivers.php ->  
/home/httpd/webmail/horde/turba/config/mime_drivers.php
../horde.org/turba/config/sources.php ->  
/home/httpd/webmail/horde/turba/config/sources.php
../horde.org/mnemo/config/prefs.php ->  
/home/httpd/webmail/horde/mnemo/config/prefs.php
../horde.org/mnemo/config/conf.php ->  
/home/httpd/webmail/horde/mnemo/config/conf.php
../horde.org/mimp/config/menu.php ->  
/home/httpd/webmail/horde/mimp/config/menu.php
../horde.org/mimp/config/prefs.php ->  
/home/httpd/webmail/horde/mimp/config/prefs.php
../horde.org/mimp/config/conf.php ->  
/home/httpd/webmail/horde/mimp/config/conf.php
../horde.org/mimp/config/mime_drivers.php ->  
/home/httpd/webmail/horde/mimp/config/mime_drivers.php
../horde.org/ingo/config/fields.php ->  
/home/httpd/webmail/horde/ingo/config/fields.php
../horde.org/ingo/config/prefs.php ->  
/home/httpd/webmail/horde/ingo/config/prefs.php
../horde.org/ingo/config/backends.php ->  
/home/httpd/webmail/horde/ingo/config/backends.php
../horde.org/ingo/config/conf.php ->  
/home/httpd/webmail/horde/ingo/config/conf.php
../horde.org/nag/config/menu.php ->  
/home/httpd/webmail/horde/nag/config/menu.php
../horde.org/nag/config/prefs.php ->  
/home/httpd/webmail/horde/nag/config/prefs.php
../horde.org/nag/config/conf.php ->  
/home/httpd/webmail/horde/nag/config/conf.php
../horde.org/imp/config/menu.php ->  
/home/httpd/webmail/horde/imp/config/menu.php
../horde.org/imp/config/prefs.php ->  
/home/httpd/webmail/horde/imp/config/prefs.php
../horde.org/imp/config/servers.php ->  
/home/httpd/webmail/horde/imp/config/servers.php
../horde.org/imp/config/conf.php ->  
/home/httpd/webmail/horde/imp/config/conf.php
../horde.org/imp/config/motd.php ->  
/home/httpd/webmail/horde/imp/config/motd.php
../horde.org/imp/config/mime_drivers.php ->  
/home/httpd/webmail/horde/imp/config/mime_drivers.php
../horde.org/imp/config/header.php ->  
/home/httpd/webmail/horde/imp/config/header.php

Patching configuration files...
imp/config/mime_drivers.php
imp/config/prefs.php
ingo/config/fields.php
ingo/config/prefs.php
kronolith/config/prefs.php
mnemo/config/prefs.php
nag/config/prefs.php
config/mime_drivers.php
config/nls.php
config/prefs.php
config/prefs.php
config/registry.php
config/registry.php
turba/config/attributes.php
turba/config/prefs.php
turba/config/prefs.php
turba/config/sources.php
Done creating configuration files.

Database superuser for updating the tables if necessary for your  
database system: hwmdbuser

Specify a password for the database user: *******

Warning: putenv(): Safe Mode warning: Cannot set environment variable  
'HORDE_DB_USER' - it's not in the allowed list in  
/home/httpd/webmail/horde/scripts/setup.php on line 420

Warning: putenv(): Safe Mode warning: Cannot set environment variable  
'HORDE_DB_PASS' - it's not in the allowed list in  
/home/httpd/webmail/horde/scripts/setup.php on line 421

Changing existing data after this point. Did you create backups of your old
data, and are you sure that you want to continue?
     (y) Yes
     (n) No

Type your choice: n

Horde Groupware Webmail Edition Configuration Menu
     (0) Exit
     (1) Configure database settings
     (2) Create database or tables
     (3) Configure administrator settings
     (4) Update from an older Horde Groupware Webmail Edition version

Type your choice: 0

Thank you for using Horde Groupware Webmail Edition!

------------------------
OK now the output when i allow the HORDE vars:


[root at mist horde]#
[root at mist horde]# php -n -d safe_mode_allowed_env_vars=HORDE_  
./scripts/setup.php
Horde Groupware Webmail Edition Configuration Menu
     (0) Exit
     (1) Configure database settings
     (2) Create database or tables
     (3) Configure administrator settings
     (4) Update from an older Horde Groupware Webmail Edition version

Type your choice: 4

Specify the directory of the old Horde Groupware Webmail Edition  
version that you would like to update: ../horde.org

Copying old configuration files...
../horde.org/kronolith/config/menu.php ->  
/home/httpd/webmail/horde/kronolith/config/menu.php
../horde.org/kronolith/config/prefs.php ->  
/home/httpd/webmail/horde/kronolith/config/prefs.php
../horde.org/kronolith/config/keywords.php ->  
/home/httpd/webmail/horde/kronolith/config/keywords.php
../horde.org/kronolith/config/conf.php ->  
/home/httpd/webmail/horde/kronolith/config/conf.php
../horde.org/config/hooks.php -> /home/httpd/webmail/horde/config/hooks.php
../horde.org/config/prefs.php -> /home/httpd/webmail/horde/config/prefs.php
../horde.org/config/conf.php -> /home/httpd/webmail/horde/config/conf.php
../horde.org/config/motd.php -> /home/httpd/webmail/horde/config/motd.php
../horde.org/config/mime_drivers.php ->  
/home/httpd/webmail/horde/config/mime_drivers.php
../horde.org/config/nls.php -> /home/httpd/webmail/horde/config/nls.php
../horde.org/config/registry.php ->  
/home/httpd/webmail/horde/config/registry.php
../horde.org/turba/config/menu.php ->  
/home/httpd/webmail/horde/turba/config/menu.php
../horde.org/turba/config/attributes.php ->  
/home/httpd/webmail/horde/turba/config/attributes.php
../horde.org/turba/config/prefs.php ->  
/home/httpd/webmail/horde/turba/config/prefs.php
../horde.org/turba/config/conf.php ->  
/home/httpd/webmail/horde/turba/config/conf.php
../horde.org/turba/config/mime_drivers.php ->  
/home/httpd/webmail/horde/turba/config/mime_drivers.php
../horde.org/turba/config/sources.php ->  
/home/httpd/webmail/horde/turba/config/sources.php
../horde.org/mnemo/config/prefs.php ->  
/home/httpd/webmail/horde/mnemo/config/prefs.php
../horde.org/mnemo/config/conf.php ->  
/home/httpd/webmail/horde/mnemo/config/conf.php
../horde.org/mimp/config/menu.php ->  
/home/httpd/webmail/horde/mimp/config/menu.php
../horde.org/mimp/config/prefs.php ->  
/home/httpd/webmail/horde/mimp/config/prefs.php
../horde.org/mimp/config/conf.php ->  
/home/httpd/webmail/horde/mimp/config/conf.php
../horde.org/mimp/config/mime_drivers.php ->  
/home/httpd/webmail/horde/mimp/config/mime_drivers.php
../horde.org/ingo/config/fields.php ->  
/home/httpd/webmail/horde/ingo/config/fields.php
../horde.org/ingo/config/prefs.php ->  
/home/httpd/webmail/horde/ingo/config/prefs.php
../horde.org/ingo/config/backends.php ->  
/home/httpd/webmail/horde/ingo/config/backends.php
../horde.org/ingo/config/conf.php ->  
/home/httpd/webmail/horde/ingo/config/conf.php
../horde.org/nag/config/menu.php ->  
/home/httpd/webmail/horde/nag/config/menu.php
../horde.org/nag/config/prefs.php ->  
/home/httpd/webmail/horde/nag/config/prefs.php
../horde.org/nag/config/conf.php ->  
/home/httpd/webmail/horde/nag/config/conf.php
../horde.org/imp/config/menu.php ->  
/home/httpd/webmail/horde/imp/config/menu.php
../horde.org/imp/config/prefs.php ->  
/home/httpd/webmail/horde/imp/config/prefs.php
../horde.org/imp/config/servers.php ->  
/home/httpd/webmail/horde/imp/config/servers.php
../horde.org/imp/config/conf.php ->  
/home/httpd/webmail/horde/imp/config/conf.php
../horde.org/imp/config/motd.php ->  
/home/httpd/webmail/horde/imp/config/motd.php
../horde.org/imp/config/mime_drivers.php ->  
/home/httpd/webmail/horde/imp/config/mime_drivers.php
../horde.org/imp/config/header.php ->  
/home/httpd/webmail/horde/imp/config/header.php

Patching configuration files...
imp/config/mime_drivers.php
imp/config/prefs.php
ingo/config/fields.php
ingo/config/prefs.php
kronolith/config/prefs.php
mnemo/config/prefs.php
nag/config/prefs.php
config/mime_drivers.php
config/nls.php
config/prefs.php
config/prefs.php
config/registry.php
config/registry.php
turba/config/attributes.php
turba/config/prefs.php
turba/config/prefs.php
turba/config/sources.php
Done creating configuration files.

Database superuser for updating the tables if necessary for your  
database system: hwmdbuser

Specify a password for the database user: *******

Changing existing data after this point. Did you create backups of your old
data, and are you sure that you want to continue?
     (y) Yes
     (n) No

Type your choice: y

Running pre-update scripts...
/home/httpd/webmail/horde/turba/scripts/upgrades/2.1_to_2.2_sql_schema.php
sh: /usr/local/php/bin/php: No such file or directory

Horde Groupware Webmail Edition Configuration Menu
     (0) Exit
     (1) Configure database settings
     (2) Create database or tables
     (3) Configure administrator settings
     (4) Update from an older Horde Groupware Webmail Edition version

Type your choice:

----

I found just one script with this path hardcoded:

head -2 ./kronolith/scripts/migrate_to_sql_driver.php
#!/usr/local/bin/php
<?php



Hope this helps







More information about the bugs mailing list