I get: "Error loading settings. Contact admin." when trying to load the app after a _successful_ setup (via http://$DOMAIN/setup/).
Looking at main.inc.php it seems that $configfile is empty.
The file exists and the permissions are set to be readable.
Adding a 'system("cat ./include/ost-config.php")' shows the contents of the config file as expected.
Setting ROOT_DIR explicitly (ie. setting it to `pwd`) gives me:
Warning: ini_set() : A session is active. You cannot change the session module's ini settings at this time in .//main.inc.php on line 35
Fatal error: Cannot redeclare class ClientSession in /home/users/$PATH/support/include/class.usersession.php on line 142
It seems for some reason file_exists is always returning false for paths relative to system root instead of document root.
I don't believe safe mode is on either.
If I set $configfile explicitly I get the same output.
No matter what I do I can't get it to load.
I've tried including the contents of the db settings into main.inc.php and the rest of the defines as well with no success.
Adding the following to the first line of main.inc.php:
die(exec('wc -l include/ost-config.php'));
Returns:
47 116 1481 include/ost-config.php
So I know the file is READABLE by PHP in that folder for that vhost.
Any ideas?
The system is OpenBSD 4.8 with PHP 5.2.13:
support$php -v
PHP 5.2.13 with Suhosin-Patch 0.9.7 (cli) (built: Aug 9 2010 16)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
with Suhosin v0.9.29, Copyright (c) 2007, by SektionEins GmbH
Apache is as follows:
support$httpd -V
Server version: Apache/1.3.29 (Unix)
Server's Module Magic Number: 19990320
Server compiled with....
-D EAPI
-D HAVE_MMAP
-D HAVE_SHMGET
-D USE_MMAP_SCOREBOARD
-D USE_MMAP_FILES
-D HAVE_FLOCK_SERIALIZED_ACCEPT
-D HAVE_SYSVSEM_SERIALIZED_ACCEPT
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D DYNAMIC_MODULE_LIMIT=64
-D HARD_SERVER_LIMIT=256
-D HTTPD_ROOT="/var/www"
-D SUEXEC_BIN="/usr/sbin/suexec"
-D DEFAULT_PIDLOG="logs/httpd.pid"
-D DEFAULT_SCOREBOARD="logs/httpd.scoreboard"
-D DEFAULT_LOCKFILE="logs/httpd.lock"
-D DEFAULT_ERRORLOG="logs/error_log"
-D TYPES_CONFIG_FILE="conf/mime.types"
-D SERVER_CONFIG_FILE="conf/httpd.conf"
-D ACCESS_CONFIG_FILE="conf/access.conf"
-D RESOURCE_CONFIG_FILE="conf/srm.conf"