[horde] Horde 2.1 install: Good test.php, blank index.php
Brian Stearns
thppt at chiastic.net
Sun Dec 1 19:14:45 PST 2002
I'm attempting to install Horde 2.1 and IMP 3.1, and I've managed (finally!) to get to
the point where everything looks good on both Horde and IMP's test.php pages.
However, when I attempt to browse to Horde or IMP's index.php pages, I get
completely blank pages, not even "<html></html>".
Note: I HAVE read through the FAQ and I HAVE extensively browsed the mailing list
before posting. I have already licked the "gettext/_()" issue, so while I hate to burst
your bubble in advance, that's not the problem.
Whatever light anyone might be able to shed on this problem would be most
appreciated.
B-
Here's as much relative information that I can provide; PLEASE let me know if I left
anything out that might help you diagnose things for me, and I'll post it immediately:
------- >% snip %< ------
System specs:
RH 8.0
Apache 2.0.43
PHP 4.3.0RC1
IMAP c-client 2002
PEAR 4.1.0
PHPLIB 7.4 pre 1
------- >% snip %< ------
/horde/test.php:
Horde Versions
Horde: 2.1
IMP: 3.1 (run IMP tests)
PHP Version
View phpinfo() screen
PHP Version: 4.3.0RC1
PHP Major Version: 4.3
PHP Minor Version: 0
PHP Version Classification: dev
You are running a supported version of PHP.
PHP Module Capabilities
FTP Support: No
Gettext Support: Yes
IMAP Support: Yes
LDAP Support: Yes
MCAL Support: No
Mcrypt Support: No
MySQL Support: Yes
PostgreSQL Support: No
XML Support: Yes
Miscellaneous PHP Settings
short_open_tag enabled: Yes
magic_quotes_runtime set to Off: Yes
file_uploads enabled: Yes
PHP Sessions
Session counter: 4
To unregister the session: click here
PEAR
PEAR - Yes
Recent PEAR - Yes
Mail::RFC822 - Yes
Log - Yes
DB - Yes
{Note: I am using MySQL for session tracking and am not yet planning to install
Kronolith, so the "No" indicators on MCAL and PostgreSQL should be fine. Please
let me know if that's a bad assumption on my part. Also, I realize that Mcrypt is a
better solution than the built-in Horde encryption; I'll get to that when I get to it. In
the meantime, the documentation is pretty clear that Mcrypt isn't required. }
------- >% snip %< ------
/horde/imp/test.php:
IMP Version
IMP: 3.1
PHP Version
View phpinfo() screen
PHP Version: 4.3.0RC1
PHP Major Version: 4.3
PHP Minor Version: 0
PHP Version Classification: dev
You are running a supported version of PHP.
PHP IMAP Support Test
Server
User
Password
{Note: The PHP IMAP Support Test IS successful for me.}
------- >% snip %< ------
Running /horde/index.php manually through php (i.e. "shell% php index.php") gives:
PHP Warning: Call-time pass-by-reference has been deprecated - argument passed
by value; If you would like to pass it by reference, modify the declaration of [runtime
function name](). If you would like to enable call-time pass-by-reference, you can set
allow_call_time_pass_reference to true in your INI file. However, future versions
may not support this any longer. in /usr/local/apache2/phplib-7.4-pre1/user.inc on
line 65
PHP Warning: Call-time pass-by-reference has been deprecated - argument passed
by value; If you would like to pass it by reference, modify the declaration of [runtime
function name](). If you would like to enable call-time pass-by-reference, you can set
allow_call_time_pass_reference to true in your INI file. However, future versions
may not support this any longer. in /usr/local/apache2/phplib-7.4-pre1/user.inc on
line 66
PHP Warning: Call-time pass-by-reference has been deprecated - argument passed
by value; If you would like to pass it by reference, modify the declaration of [runtime
function name](). If you would like to enable call-time pass-by-reference, you can set
allow_call_time_pass_reference to true in your INI file. However, future versions
may not support this any longer. in /usr/local/apache2/phplib-7.4-pre1/user.inc on
line 72
PHP Notice: Undefined index: SERVER_NAME in /home/htdocs/horde-
2.1/config/registry.php on line 71
PHP Notice: Undefined index: SERVER_NAME in /home/htdocs/horde-
2.1/config/registry.php on line 73
PHP Notice: Undefined index: SERVER_PORT in /home/htdocs/horde-
2.1/config/registry.php on line 74
{Note: in my php.ini, I set allow_call_time_pass_reference to On, apparently to no
avail. Also, in my httpd.conf, both SERVER_NAME and SERVER_PORT are set,
and do show values when I run php_info().}
------- >% snip %< ------
diff between my horde/config/horde.php and the Horde 2.1 distribution
horde/config/horde.php:
53c53
< $conf['compress_pages'] = false;
---
> $conf['compress_pages'] = true;
78c78
< $conf['auth']['driver'] = 'imap';
---
> $conf['auth']['driver'] = '';
86d85
< $conf['auth']['params']['dsn'] = '{localhost/imap:143}INBOX';
135c134
< $conf['prefs']['driver'] = 'sql';
---
> $conf['prefs']['driver'] = 'none';
144,149c143,148
< $conf['prefs']['params']['phptype'] = 'mysql';
< $conf['prefs']['params']['hostspec'] = 'localhost';
< $conf['prefs']['params']['username'] = 'horde';
< $conf['prefs']['params']['password'] = 'changedtoprotecttheinnocent';
< $conf['prefs']['params']['database'] = 'horde';
< $conf['prefs']['params']['table'] = 'horde_prefs';
---
> // $conf['prefs']['params']['phptype'] = 'mysql';
> // $conf['prefs']['params']['hostspec'] = 'localhost';
> // $conf['prefs']['params']['username'] = 'horde';
> // $conf['prefs']['params']['password'] = '*****';
> // $conf['prefs']['params']['database'] = 'horde';
> // $conf['prefs']['params']['table'] = 'horde_prefs';
------- >% snip %< ------
diff between my horde/config/registry.php and the Horde 2.1 distribution
horde/config/registry.php.dist:
23,24c23,24
< $this->registry['auth']['login'] = 'imp';
< $this->registry['auth']['logout'] = 'imp';
---
> // $this->registry['auth']['login'] = 'imp';
> // $this->registry['auth']['logout'] = 'imp';
77,84c77,84
< $this->applications['imp'] = array(
< 'fileroot' => dirname(__FILE__) . '/../imp',
< 'webroot' => $this->applications['horde']['webroot'] . '/imp',
< 'icon' => $this->applications['horde']['webroot'] . '/imp/graphics/imp.gif',
< 'name' => _("Mail"),
< 'allow_guests' => false,
< 'show' => true
< );
---
> // $this->applications['imp'] = array(
> // 'fileroot' => dirname(__FILE__) . '/../imp',
> // 'webroot' => $this->applications['horde']['webroot'] . '/imp',
> // 'icon' => $this->applications['horde']['webroot'] . '/imp/graphics/imp.gif',
> // 'name' => _("Mail"),
> // 'allow_guests' => false,
> // 'show' => true
> // );
------- >% snip %< ------
My /horde/imp/config/servers.php:
$servers['chiastic'] = array(
'name' => 'Chiastic.net',
'server' => 'localhost',
'protocol' => 'imap/notls',
'port' => 143,
'folders' => 'mail/',
'namespace' => '',
'maildomain' => 'chiastic.net',
'smtphost' => 'localhost',
'realm' => '_chiastic',
'preferred' => ''
);
------- >% snip %< ------
Output of phpinfo():
System Linux chiastic 2.4.18-14 #1 Wed Sep 4 13:35:50 EDT 2002 i686
Build Date Dec 1 2002 15:56:27
Configure Command './configure' '--enable-shared' '--with-
apxs2=/usr/local/apache2/bin/apxs' '--with-mysql=/usr/local/mysql' '--with-imap' '--
with-imap-ssl' '--with-ldap' '--with-gettext'
Server API Apache 2.0 Filter
Virtual Directory Support disabled
Configuration File (php.ini) Path /usr/local/lib/php.ini
PHP API 20020918
PHP Extension 20020429
Zend Extension 20021010
Debug Build no
Thread Safety disabled
Registered PHP Streams php, http, ftp
This program makes use of the Zend Scripting Language Engine:
Zend Engine v1.3.0, Copyright (c) 1998-2002 Zend Technologies
Configuration
PHP Core
Directive Local Value Master Value
allow_call_time_pass_reference Off Off
allow_url_fopen On On
always_populate_raw_post_data Off Off
arg_separator.input & &
arg_separator.output & &
asp_tags Off Off
auto_append_file no value no value
auto_prepend_file /usr/local/apache2/phplib/prepend.php3
/usr/local/apache2/phplib/prepend.php3
browscap no value no value
default_charset no value no value
default_mimetype text/html text/html
define_syslog_variables Off Off
disable_functions no value no value
display_errors Off Off
display_startup_errors Off Off
doc_root no value no value
docref_ext no value no value
docref_root http://www.php.net/ http://www.php.net/
enable_dl On On
error_append_string no value no value
error_log no value no value
error_prepend_string no value no value
error_reporting 2047 2047
expose_php On On
extension_dir ./ ./
file_uploads On On
gpc_order GPC GPC
highlight.bg #FFFFFF #FFFFFF
highlight.comment #FF8000 #FF8000
highlight.default #0000BB #0000BB
highlight.html #000000 #000000
highlight.keyword #007700 #007700
highlight.string #DD0000 #DD0000
html_errors On On
ignore_repeated_errors Off Off
ignore_repeated_source Off Off
ignore_user_abort Off Off
implicit_flush Off Off
include_path .:/usr/local/apache2/phplib:/usr/local/lib/php
.:/usr/local/apache2/phplib:/usr/local/lib/php
log_errors On On
log_errors_max_len 1024 1024
magic_quotes_gpc Off Off
magic_quotes_runtime Off Off
magic_quotes_sybase Off Off
max_execution_time 30 30
max_input_time 60 60
open_basedir no value no value
output_buffering 4096 4096
output_handler no value no value
post_max_size 8M 8M
precision 14 14
register_argc_argv Off Off
register_globals On On
report_memleaks On On
safe_mode Off Off
safe_mode_exec_dir no value no value
safe_mode_gid Off Off
safe_mode_include_dir no value no value
sendmail_from me at localhost.com me at localhost.com
sendmail_path /usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i
short_open_tag On On
SMTP localhost localhost
smtp_port 25 25
sql.safe_mode Off Off
track_errors Off Off
unserialize_callback_func no value no value
upload_max_filesize 2M 2M
upload_tmp_dir no value no value
user_dir no value no value
variables_order GPCS GPCS
xmlrpc_error_number 0 0
xmlrpc_errors Off Off
y2k_compliance On On
xml
XML Support active
XML Namespace Support active
EXPAT Version 1.95.2
tokenizer
Tokenizer Support enabled
standard
Regex Library Bundled library enabled
Dynamic Library Support enabled
Path to sendmail /usr/sbin/sendmail -t -i
Directive Local Value Master Value
assert.active 1 1
assert.bail 0 0
assert.callback no value no value
assert.quiet_eval 0 0
assert.warning 1 1
auto_detect_line_endings 0 0
default_socket_timeout 60 60
safe_mode_allowed_env_vars PHP_ PHP_
safe_mode_protected_env_vars LD_LIBRARY_PATH LD_LIBRARY_PATH
url_rewriter.tags a=href,area=href,frame=src,input=src,form=fakeentry
a=href,area=href,frame=src,input=src,form=fakeentry
user_agent no value no value
session
Session Support enabled
Registered save handlers files user
Directive Local Value Master Value
session.auto_start Off Off
session.bug_compat_42 Off Off
session.bug_compat_warn On On
session.cache_expire 180 180
session.cache_limiter nocache nocache
session.cookie_domain no value no value
session.cookie_lifetime 0 0
session.cookie_path / /
session.cookie_secure Off Off
session.entropy_file no value no value
session.entropy_length 0 0
session.gc_dividend 1000 1000
session.gc_maxlifetime 1440 1440
session.gc_probability 1 1
session.name PHPSESSID PHPSESSID
session.referer_check no value no value
session.save_handler files files
session.save_path /tmp /tmp
session.serialize_handler php php
session.use_cookies On On
session.use_only_cookies Off Off
session.use_trans_sid Off Off
posix
Revision $Revision: 1.51 $
pcre
PCRE (Perl Compatible Regular Expressions) Support enabled
PCRE Library Version 3.92 11-Sep-2002
overload
User-Space Object Overloading Support enabled
mysql
MySQL Support enabled
Active Persistent Links 0
Active Links 0
Client API version 3.23.53a
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /tmp/mysql.sock
MYSQL_INCLUDE -I/usr/local/mysql/include
MYSQL_LIBS -L/usr/local/mysql/lib -lmysqlclient -lz
Directive Local Value Master Value
mysql.allow_persistent On On
mysql.connect_timeout -1 -1
mysql.default_host no value no value
mysql.default_password no value no value
mysql.default_port no value no value
mysql.default_socket no value no value
mysql.default_user no value no value
mysql.max_links Unlimited Unlimited
mysql.max_persistent Unlimited Unlimited
mysql.trace_mode Off Off
ldap
LDAP Support enabled
RCS Version $Id: ldap.c,v 1.130 2002/11/05 14:18:20 edink Exp $
Total Links 0/unlimited
API Version 2004
Vendor Name OpenLDAP
Vendor Version 20025
imap
IMAP c-Client Version 4.1
SSL Support enabled
gettext
GetText Support enabled
ctype
ctype functions enabled
Apache 2.0
Additional Modules
Module Name
Environment
Variable Value
HOSTNAME chiastic
TERM xterm
SHELL /bin/bash
HISTSIZE 1000
USER root
LD_LIBRARY_PATH /usr/local/apache2/lib:
LS_COLORS
no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;0
5;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;3
2:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31
:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz
=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:
*.xpm=00;35:*.png=00;35:*.tif=00;35:
USERNAME root
PATH
/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/bin/X11:/usr/X11R6/bin:/r
oot/bin
MAIL /var/spool/mail/root
PWD /usr/local/apache2/logs
INPUTRC /etc/inputrc
LANG en_US.UTF-8
HOME /root
SHLVL 2
BASH_ENV /root/.bashrc
LOGNAME root
LESSOPEN |/usr/bin/lesspipe.sh %s
G_BROKEN_FILENAMES 1
_ /usr/local/apache2/bin/httpd
PHP Variables
Variable Value
PHP_SELF /info.php
_COOKIE["PHPSESSID"] 90313b6fa4bc6ad0b7f3815268053f68
_SERVER["HTTP_ACCEPT"] image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/msword, application/vnd.ms-excel, */*
_SERVER["HTTP_ACCEPT_LANGUAGE"] en-us
_SERVER["HTTP_ACCEPT_ENCODING"] gzip, deflate
_SERVER["HTTP_USER_AGENT"] Mozilla/4.0 (compatible; MSIE 5.5; Windows 98;
H010818)
_SERVER["HTTP_HOST"] 192.168.2.30
_SERVER["HTTP_CONNECTION"] Keep-Alive
_SERVER["HTTP_COOKIE"] PHPSESSID=90313b6fa4bc6ad0b7f3815268053f68
_SERVER["PATH"]
/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/bin/X11:/usr/X11R6/bin:/r
oot/bin
_SERVER["SERVER_SIGNATURE"] <address>Apache/2.0.43 Server at
192.168.2.30 Port 80</address>
_SERVER["SERVER_SOFTWARE"] Apache
_SERVER["SERVER_NAME"] 192.168.2.30
_SERVER["SERVER_ADDR"] 192.168.2.30
_SERVER["SERVER_PORT"] 80
_SERVER["REMOTE_ADDR"] 192.168.2.101
_SERVER["DOCUMENT_ROOT"] /home/htdocs
_SERVER["SERVER_ADMIN"] webmaster at chiastic.net
_SERVER["SCRIPT_FILENAME"] /home/htdocs/info.php
_SERVER["REMOTE_PORT"] 3174
_SERVER["GATEWAY_INTERFACE"] CGI/1.1
_SERVER["SERVER_PROTOCOL"] HTTP/1.1
_SERVER["REQUEST_METHOD"] GET
_SERVER["QUERY_STRING"] no value
_SERVER["REQUEST_URI"] /info.php
_SERVER["SCRIPT_NAME"] /info.php
_SERVER["PHP_SELF"] /info.php
More information about the horde
mailing list