Hallo zusammen,
ich versuche vergeblich DAViCal zum Laufen zu bekommen.
Hier ist die Apache-Konfiguration:
# Davical
<VirtualHost *:80>
ServerName davical.richard-neumann.de
DocumentRoot /srv/http/de/richard-neumann/davical
DirectoryIndex index.php index.html
Alias /images/ /srv/http/de/richard-neumann/davical
<Directory /srv/http/de/richard-neumann/davical/>
AllowOverride None
Order allow,deny
Allow from all
</Directory>
php_value include_path /usr/share/awl/inc
php_value magic_quotes_gpc 0
php_value magic_quotes_runtime 0
php_value register_globals 0
php_value error_reporting "E_ALL & ~E_NOTICE"
php_value default_charset "utf-8"
</VirtualHost>
#<VirtualHost *:80>
# DirectoryIndex index.php index.html
# ServerAdmin webmaster@example.com
# DocumentRoot "/srv/http/de/richard-neumann/davical"
# Alias /images/ /srv/http/de/richard-neumann/davical/htdocs/images/
# AcceptPathInfo On
# <Directory /srv/http/de/richard-neumann/davical/htdocs>
# AllowOverride None
# Order allow,deny
# Allow from all
# Options FollowSymlinks Indexes
# DirectoryIndex
# </Directory>
# ServerName davical.richard-neumann.de
# php_value open_basedir /srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/awl/inc:/etc/davical
# php_value include_path /srv/http/davical/inc:/usr/share/awl/inc
# php_value magic_quotes_gpc 0
# php_value register_globals 0
# php_value error_reporting "E_ALL & ~E_NOTICE"
# php_value default_charset "utf-8"
# php_value magic_quotes_runtime 0
# ErrorLog "/var/log/httpd/httpd-davical-error_log"
# CustomLog "/var/log/httpd/httpd-davical-access_log" common
#</VirtualHost>
Ich habe sowohl die aktive, als auch die auskommentierte Variante (Kopie von einer funktionierenden Installation unseres Debian 7-Firmenservers) gestestet.
Ich bin beim Setup diesem Faden gefolgt:
https://wiki.archlinux.org/index.php/DAViCal
Der Benutzer ist in der Datenbankkonfiguration eingetragen:
# tail -n 2 /var/lib/postgres/data/pg_hba.conf
local davical davical_app trust
local davical davical_dba trust
Und die Datenbank läuft:
# systemctl status postgresql.service
● postgresql.service - PostgreSQL database server
Loaded: loaded (/usr/lib/systemd/system/postgresql.service; enabled)
Active: active (running) since Mi 2014-07-09 21:31:31 CEST; 23min ago
Process: 4805 ExecStop=/usr/bin/pg_ctl -s -D ${PGROOT}/data stop -m fast (code=exited, status=0/SUCCESS)
Process: 4813 ExecStart=/usr/bin/pg_ctl -s -D ${PGROOT}/data start -w -t 120 (code=exited, status=0/SUCCESS)
Process: 4807 ExecStartPre=/usr/bin/postgresql-check-db-dir ${PGROOT}/data (code=exited, status=0/SUCCESS)
Main PID: 4816 (postgres)
CGroup: /system.slice/postgresql.service
├─4816 /usr/bin/postgres -D /var/lib/postgres/data
├─4818 postgres: checkpointer process
├─4819 postgres: writer process
├─4820 postgres: wal writer process
├─4821 postgres: autovacuum launcher process
└─4822 postgres: stats collector process
Jul 09 21:31:30 hpsrv postgres[4813]: LOG: Datenbanksystem wurde am 2014-07-09 21:31:29 CEST her...hren
Jul 09 21:31:30 hpsrv postgres[4813]: LOG: Datenbanksystem ist bereit, um Verbindungen anzunehmen
Jul 09 21:31:30 hpsrv postgres[4813]: LOG: Autovacuum-Launcher startet
Hint: Some lines were ellipsized, use -l to show in full.
Auch in der php.ini ist postgreSQL aktiviert:
# grep pgsql /etc/php/php.ini
extension=pdo_pgsql.so
extension=pgsql.so
; http://php.net/pgsql.allow-persistent
pgsql.allow_persistent = On
; http://php.net/pgsql.auto-reset-persistent
pgsql.auto_reset_persistent = Off
; http://php.net/pgsql.max-persistent
pgsql.max_persistent = -1
; http://php.net/pgsql.max-links
pgsql.max_links = -1
; http://php.net/pgsql.ignore-notice
pgsql.ignore_notice = 0
; Unless pgsql.ignore_notice=0, module cannot log notice message.
; http://php.net/pgsql.log-notice
pgsql.log_notice = 0
Trotzdem erscheint beim Aufrufen der index.php oder admin.php nur ein leeres Dokument.
Beim Aufruf der setup.php erscheint die Meldung "Unable to connect to database"
Was übersehe ich hier?
Vielen Dank!
Schard