I am still reluctant to store my personal information online or use free services provided by company that already claims it may stop for any reason (Google, Microsoft). So I do not make an exception for Mozilla for Firefox Sync service.
As I do not have an online server at home and have no other needs to pay for a hosted VM, I want Weave to deploy and run at Free.fr.
The official weave server which consists in User and Sync components requires Alias directive in Apache2 but Free.fr does not allow that directive in htaccess file.
The minimal weave server is now maintained but uses SQLite with PDO interface as a storage. As Free.fr provides a MySQL service, why would I bother with SQLite. It is straightforward to switch to PDO:mysql but Free.fr does not enable this backend. In fact, the only PDO backend supported at the moment is SQLite…
OK, so it is open-source, I have never written PHP yet but it is just another language to learn and the only source I have to change is « weave_storage.php ».
- Prefix tables with
weave_to prevent collision with other services, typically for user table
- Port SQL create statements and indexes to MySQL
weave_storagecode to replace PDO and exception handling by old-school
mysql_*methods and error handling
class.JSON.phpinstead of recent included
In N900 Firefox, open
about:config to set your own URL as value of
After some code cleanup, creation of a sql file, a short documentation in README, here is a package, including a patch based on latest version on date of 2011.03.23. This release should work with Sync plugin versions 1.6.x and 1.7 in Firefox 3.6, 4 or 5:
Additional note for free.fr users, in case of mixed PHP 4 and 5 hosting: you have to create a
.htaccess file with content
php 5 to enforce PHP 5 usage.