[ome-devel] OMERO Django and Apache
Chris Allan
callan at blackcat.ca
Tue Mar 31 17:33:49 BST 2009
On Tue, 2009-03-31 at 16:33 +0100, Mark Woodbridge wrote:
> Thanks for the instructions. There's one bit I don't follow. First it says:
Hi Mark. No problem.
>
> mkdir /home/omero/omero-Beta4.0.0/lib/omeroweb/db
> chown apache_user:apache_group /home/omero/omero-Beta4.0.0/omeroweb/db
>
> but later on it says:
>
> ls -l /home/omero/omero-Beta4.0.0/lib/omeroweb/db.sqlite3
>
> Do I actually need to create the db directory? It isn't referenced
> elsewhere. Did you mean to say that I should chown the existing
> db.sqlite3 file?
Yes and no. I've cleaned up those particular lines to be a bit more
clear. The issue is that the user opening a SQLite3 database needs write
permissions to the directly containing the database file. So, if you
want to minimize files and directories "owned" by apache, you need to
have a "database" and a "log" directory with the correct ownership and
the db.sqlite3 inside the "database" directory.
It's safe to move and chown your existing db.sqlite3 file but that does
not allow you to perform the specific configuration that is available in
the documentation.
Let me know if you think anything is still unclear.
>
> Mark.
Ciao.
-Chris
More information about the ome-devel
mailing list