Changes

Jump to: navigation, search

Labs/Weave/Sync/1.0/Setup

668 bytes removed, 21:04, 14 December 2009
no edit summary
Don't forget to set up the weave directory in a virtual-host-directive (or similar), or else php will not work. (See sample virtual host config below)
3) Copy /server/sync/1.0/default_constants.php.dist to /server/sync/1.0/default_constants.php and edit it as described below. If you have mutiple hostnames, you can put override constant files into {HOST_NAME}_constants.php
== Setting up Weave Authentication ==
<pre>
define('WEAVE_AUTH_ENGINE', '[sqlite|mysql|ldap|none]');
</pre>
For more information on the auth store, see the user setup
 
=== Sqlite ===
 
<pre>
define('WEAVE_SQLITE_AUTH_DIRECTORY', '<path to stores directory>');
</pre>
 
=== Mysql ===
<pre>
define('WEAVE_STORAGE_ENGINE', '[sqlite|mysql|none]');</pre> === Sqlite === Edit the following constant: <pre>define('WEAVE_SQLITE_STORE_DIRECTORY', '<path to stores directory>');
</pre>
 
Easiest way to create a user is to go through the admin server process below.
=== Mysql ===
Caps the size (in bytes - watch out for large unicode characters!) of a payload.
<pre>
define('WEAVE_SHARE_DBH', '1');
</pre>
 
If both the storage engine and authentication engine are using the same database, setting this makes both engines use the same database handler rather than opening different ones. Note that SQLite cannot use the same db for authentication and storage.
== Sample virtual host config ==
Sample Virtual host config for a server having SSL. For debian placed in /etc/apache2/sites-enabled/, weave server directory located at /var/www/weaveserver/server/-sync.
<pre>
<VirtualHost weave.my.domain:443>
ServerName weave.my.domain
DocumentRoot /var/www/weaveserver/server-sync/
ErrorLog /var/log/apache2/weaveserver-error.log
SSLCertificateFile /path/to/server.cert.crt
<Directory "/var/www/weaveserver/server-sync/">
Options Indexes FollowSymLinks
</Directory>
Alias /1.0 /var/www/weaveserver/server/-sync/1.0/index.php
</VirtualHost>
Canmove, confirm
1,173
edits

Navigation menu