Added instructions and schema to use or migrate to SQLite (#17)
* Added MySQL to SQLite migration instructions; SQLite setup instructions
* Renamed schema.sql to mysql_schema.sql
* Produced modified schema suitable for SQLite
* Added SQLite setup and migration instructions
*NOTE: The directory where the SQLite database is stored, must be writable by the web server user*
### Apache
If you are running Apache and want to compress your output when serving files,
@@ -79,6 +102,38 @@ add to your `.htaccess` file:
Remember to enable `deflate_module` and `filter_module` modules in your Apache
configuration file.
### Migrating from MySQL to SQLite
MySQL is relatively complicated to administer, brings in many unneeded dependencies, and consumes
more resources than SQLite would, and result in worse performance for pomf. Additonally, poorly configured installations have the potential
to pose a security risk.
Fortunately, it is incredibly simple to migrate your database. This may be done on a live server, and should require
zero downtime.
_If doing this on a live server, you way wish to work in a subdirectory (or vhost, or equivelant), so that any complications or mistakes do not affect your main site.
If you choose not to do so, know that mistakes in the changes outlined below, will only temporarily impact **uploading**, causing **Server error** to be displayed. None of these steps are destructive, and are easily reverted._
Run the following commands as root, to dump your database, and make a SQLite database with the contents.