[horde] Installing Horde Groupware Webmail Edition 4.0 without asking password

Tommy hkendusers at yahoo.com.hk
Sat Jul 9 02:26:17 UTC 2011


Jan Schneider <jan <at> horde.org> writes:

> 
> 
> Zitat von Tommy <hkendusers <at> yahoo.com.hk>:
> 
> > Hi all,
> >
> > I am trying Horde Groupware Webmail Edition 4.0 installation, until "install
> > horde/webmail-beta" I am still lucky without big problem, but while I run
> > webmail-install, it does not ask me for MySQL password so that it failed to
> > connect MySQL.
> >
> > Can some one tell me why it does not ask me for MySQL password?  
> > Million thanks
> >
> > ##################
> > PHP 5.2.13
> > CentOS 5.5
> > ##################
> > PHP_PEAR_SYSCONF_DIR=/var/www/webmail /usr/local/php/bin/php -d
> > include_path=/var/www/webmail/pear/php /var/www/webmail/pear/webmail-install
> >
> > Installing Horde Groupware Webmail Edition
> >
> > Configuring database settings
> >
> > What database backend should we use?
> >     (false) [None]
> >     (mysql) MySQL / PDO
> >     (mysqli) MySQL (mysqli)
> >     (pgsql) PostgreSQL
> >     (sqlite) SQLite
> >
> > Type your choice []: mysql
> > Request persistent connections?
> >     (1) Yes
> >     (0) No
> >
> > Type your choice [0]: 0
> >
> > Username to connect to the database as* [] newhorde
> 
> Here you should be asked for the password.
> 
> Looks like Horde_Cli::passwortPrompt() isn't working for you. It  
> triggers a PHP error if it cannot spawn a bash shell. If you configure  
> your PHP to show or log errors, you should see that.
> We should rather fallback to a standard prompt in this case though.  
> Please create a ticket.
> 
> Jan.
> 

Thank you Jan,

my php.ini parameters:
safe_mode = on
error_reporting  =  E_ALL & ~E_NOTICE
display_errors = On


The display_errors is on before, no any error show, but after I set log_errors
to on, it can log errors as below:

Jul  9 10:18:19 vo HORDE: HORDE PHP ERROR: putenv(): Safe Mode warning: Cannot
set environment variable 'LC_ALL' - it's not in the allowed list [pid 22177 on
line 2429 of "/var/www/webmail/pear/php/Horde/Registry.php"]
Jul  9 10:18:19 vo HORDE: HORDE PHP ERROR: putenv(): Safe Mode warning: Cannot
set environment variable 'LANG' - it's not in the allowed list [pid 22177 on
line 2430 of "/var/www/webmail/pear/php/Horde/Registry.php"]
Jul  9 10:18:19 vo HORDE: HORDE PHP ERROR: putenv(): Safe Mode warning: Cannot
set environment variable 'LANGUAGE' - it's not in the allowed list [pid 22177 on
line 2431 of "/var/www/webmail/pear/php/Horde/Registry.php"]
Jul  9 10:18:19 vo HORDE: HORDE PHP ERROR: session_regenerate_id(): Cannot
regenerate session id - headers already sent [pid 22177 on line 161 of
"/var/www/webmail/pear/php/Horde/Session.php"]
Jul  9 10:18:19 vo HORDE: HORDE [horde] PHP ERROR: Invalid argument supplied for
foreach() [pid 22177 on line 204 of "/var/www/webmail/pear/php/Horde/Config.php"]
Jul  9 10:18:25 vo HORDE: HORDE [horde] PHP ERROR: shell_exec(): Cannot execute
using backquotes in Safe Mode [pid 22177 on line 410 of
"/var/www/webmail/pear/php/Horde/Cli.php"]
Jul  9 10:18:58 vo HORDE: HORDE PHP ERROR: session_regenerate_id(): Cannot
regenerate session id - headers already sent [pid 22195 on line 161 of
"/var/www/webmail/pear/php/Horde/Session.php"]
Jul  9 10:19:15 vo HORDE: HORDE PHP ERROR: session_regenerate_id(): Cannot
regenerate session id - headers already sent [pid 22311 on line 161 of
"/var/www/webmail/pear/php/Horde/Session.php"]



found that it is safe mode problem, after setting safe_mode = off, the password
question can be shown now.






More information about the horde mailing list