canmove, Confirmed users
1,173
edits
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 | SetEnv WEAVE_STORAGE_TYPE sqlite | ||
SetEnv WEAVE_SQLITE_DIRECTORY <path to stores directory> | |||
</pre> | </pre> | ||
Optional | |||
== 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) | ||
== Testing the Weave Server == | == Testing the Weave Server == | ||