Services/Sync/Server/Archived/0.3/Setup: Difference between revisions

Jump to navigation Jump to search
mNo edit summary
Line 7: Line 7:
The Weave Server requires PHP with PDO and JSON support installed. This should be the case if you are running PHP 5.1+.
The Weave Server requires PHP with PDO and JSON support installed. This should be the case if you are running PHP 5.1+.


== Setting up the Weave Server ==
== Setting up the Weave Server (Sqlite backend) ==


1) Unzip the weave_server.zip directory into the location you plan to serve the files from.
1) Unzip the weave_server.zip directory into the location you plan to serve the files from.
Line 17: Line 17:
<pre>
<pre>
Alias /weave/0.3 <full path to weave directory>/index.php
Alias /weave/0.3 <full path to weave directory>/index.php
SetEnv WEAVE_DB_DIRECTORY <path to stores directory>
SetEnv WEAVE_STORAGE_TYPE sqlite
SetEnv WEAVE_SQLITE_DIRECTORY <path to stores directory>
</pre>
</pre>


Optional parameters:
 
== Setting up the Weave Server (Mysql backend) ==
 
1) Unzip the weave_server.zip directory into the location you plan to serve the files from.
 
2) Create the mysql database. Add the following table:
 
<pre>
create table wbo
(
username varchar(32),
collection varchar(64),
id varchar(64),
parentid varchar(64),
modified float,
encoding varchar(16),
payload text,
primary key(username, collection, id),
index parentindex(username, collection, parentid),
index modified(username, collection, modified)
) type=InnoDB;
</pre>
 
3) Edit your apache conf files to add the following:
 
<pre>
Alias /weave/0.3 <full path to weave directory>/index.php
SetEnv WEAVE_STORAGE_TYPE mysql
SetEnv WEAVE_MYSQL_HOST <db host>
SetEnv WEAVE_MYSQL_DB <db name>
SetEnv WEAVE_MYSQL_USER <db username>
SetEnv WEAVE_MYSQL_PASS <db password>
</pre>
 
== Optional Apache Parameters ==


<pre>
<pre>
Line 33: Line 68:


Requires the http-authenticated user to match the name of the user in the path in order to write to the store (recommended)
Requires the http-authenticated user to match the name of the user in the path in order to write to the store (recommended)
<pre>
SetEnv WEAVE_AUTO_CREATE_USER 1
</pre>
If the user in the path doesn't exist, automatically creates the account. If you wish to manually create accounts, see creating accounts, below.


== Testing the Weave Server ==
== Testing the Weave Server ==
canmove, Confirmed users
1,173

edits

Navigation menu