Summary | upgrade option in setup.php fails |
Queue | Horde Groupware Webmail Edition |
Queue Version | 1.1.2 |
Type | Bug |
State | Not A Bug |
Priority | 1. Low |
Owners | |
Requester | msteltman (at) disway (dot) nl |
Created | 08/20/2008 (6165 days ago) |
Due | |
Updated | 08/20/2008 (6165 days ago) |
Assigned | 08/20/2008 (6165 days ago) |
Resolved | 08/20/2008 (6165 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
apparently the /usr/local/php/bin path is the safe_mode_exec_dir which
is compiled-in in php for my slackware distro.
And the simple php -n -d safe_mode=Off scripts/setup.php does the
trick of course.
Sorry to have bothered you.
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@mist webmail]# mv horde horde.org
[root@mist webmail]# mv horde-webmail-1.1.2 horde
[root@mist webmail]# cd horde
[root@mist horde]#
[root@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@mist horde]#
[root@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
State ⇒ Feedback
1. when run from commandline:
putenv fails for 'HORDE_DB_USER' and 'HORDE_DB_PASS'
- header in setup.php #!/usr/bin/php -n -q -d
safe_mode_allowed_env_vars=HORDE_
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ upgrade option in setup.php fails
Queue ⇒ Horde Groupware Webmail Edition
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
1. when run from commandline:
putenv fails for 'HORDE_DB_USER' and 'HORDE_DB_PASS'
some upgrade scripts try to run /var/www/bin/php or /usr/local/bin/php/bin
remedy:
- header in setup.php #!/usr/bin/php -n -q -d
safe_mode_allowed_env_vars=HORDE_
- change all paths to /usr/bin/php in upgrade scripts
2. errors in php.log:
[19-Aug-2008 23:56:18] PHP Fatal error: Call to undefined method
MDB2_Error::execute() in
/home/httpd/webmail/horde/kronolith/scripts/upgrades/convert_datatree_shares_to_sql.php on line
152
Net Result is that the upgrade process does not lead to a working installation