Solaris

From Davical
Revision as of 01:18, 7 February 2011 by Jng614 (talk) (Solaris notes)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

DAViCal is confirmed operational on Solaris 10 using the OpenCSW version of Apache2, PHP5 and PostgresSQL. The following PHP5 additional package modules are required php5_pgsql, php5_pdopgsql, php5_pdo, php5_iconv and php5_gettext.

In terms of locating DAViCal it seemed more appropriate to create a /opt/DAViCal directory and then place awl and davical as sub-directories (without a version suffix). The Apache2 configuration is then something like:

<VirtualHost *:8080>
  # Intranet/Admin Version
  ServerName    caldav.yourdomain.com
  ....
  DocumentRoot  /opt/DAViCal/davical/htdocs
  php_value     include_path /opt/DAViCal/davical/inc:/opt/DAViCal/awl/inc
  php_value     magic_quotes_gpc 0
  php_value     register_globals 0
</VirtualHost>

<VirtualHost *:8443>
  # SSL Version
  ServerName    caldav.yourdomain.com
  ....
  DocumentRoot  /opt/DAViCal/davical/htdocs
  php_value     include_path /opt/DAViCal/davical/inc:/opt/DAViCal/awl/inc
  php_value     magic_quotes_gpc 0
  php_value     register_globals 0
</VirtualHost>

The file config.php file may stay in directory /opt/DAViCal/davical/config. If the SSL port is external facing then you can disable adminstrator access on port 8443 with $c->restrict_admin_port = '8080';. If Apache2 is running in a zone and the SQL server is on another host/zone then change the connection to access the remote database with $c->pg_connect[] = 'hostaddr=192.168.1.x port=5432 dbname=davical user=davical_app';.

When creating the PostgresSQL database then DAViCal needs to operate in UTF-8, if your Locale is set to something different to UTF-8 then you need to make sure that the database is set to UTF-8 and matches a Sun Locale e.g. en_GB.UTF-8. After initialising the database then this can be changed by editing postgresql.conf before creating the davical database with dba/create-database.sh otherwise the creation fails.

DAViCal is confirmed operating correctly with iPad and Lightning via SSL connection. It is useful to have the 8080 port for local adminstration tasks and obvioulsy set up the users.