I have no idea how good an idea it is, but these changes fixed things for me:
$ diff -u /var/tmp/config.php /usr/share/webcalendar/www/includes/config.php
--- /var/tmp/config.php 2010-03-14 03:12:21.000000000 -0700
+++ /usr/share/webcalendar/www/includes/config.php 2010-03-14
03:13:58.000000000 -0700
@@ -101,7 +101,11 @@
// Open settings file to read.
$WC_CONFIG_FILE = "/etc/webcalendar/settings.conf";
- $WC_ALT_FILE = $_SERVER['WEBCALENDAR_CONFIG_FILE'];
+ if( array_key_exists( 'WEBCALENDAR_CONFIG_FILE', $_SERVER ) ) {
+ $WC_ALT_FILE = $_SERVER['WEBCALENDAR_CONFIG_FILE'];
+ } else {
+ $WC_ALT_FILE = "";
+ }
if (!empty($WC_ALT_FILE) && file_exists($WC_ALT_FILE) &&
is_readable($WC_ALT_FILE)) {
$WC_CONFIG_FILE = $WC_ALT_FILE;
$ diff -u /var/tmp/settings.conf /etc/webcalendar/settings.conf
--- /var/tmp/settings.conf 2010-03-14 03:14:16.000000000 -0700
+++ /etc/webcalendar/settings.conf 2010-03-14 03:14:24.000000000 -0700
@@ -14,7 +14,7 @@
db_host = localhost
db_login = NNNNNNNNNNNNNNNNNNNNN
db_password = NNNNNNNNNNNNNNNNNNNNNNN
-db_basepath =
+db_basepath = ''
db_database = NNNNNNNNNNNNNNNNNN
db_persistent = true
db_cachedir = /tmp
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]