Someone should copy that reply into the wiki.... :-) -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of rick c Sent: 24. september 2009 13:32 To: habari-users Subject: [habari-users] Re: Trying to set up Habari using sqlite
Welcome to Habari! We'll try to make the wiki clearer on this point. Some of the directions haven't been updated in a while, and when those were first written, the SQLite db was placed in Habari's root. The location was later moved to the /user subdirectory to further separate user files from core files. In the same way, if you are running Habari in multisite mode, the SQLite db is placed in the appropriate /user/sites subdirectory, as is the mulitsite's config.php file. At some point, the main site's config.php will probably be put in /user, also, rather than Habari's root. A benefit of putting the SQLite file in /user is that, after installation, you can make Habari's root and /system directories read only. The directory were the db is has to remain writable, as PHP needs to be able to create journal files in the directory. You're probably right about your applying the 777 only to the top level of Habari's directory structure. Who the webserver runs as (at least in the case of Apache), and more specifically who PHP runs as, depends on how PHP is set up on your server. If PHP is being run as an Apache module, it is running with the same permissions as Apache, which will usually be different from yours.If it is running as a CGI process, it is usually running with the same permissions you have. As such, if you create a directory, for example, by installing Habari, you are the director's owner. When PHP tries to write to that directory, whether it can do so or not depends on whether PHP is running as you or someone else. From the sounds of it, PHP is running as and Apache module on your server. Rick On Sep 5, 4:54 pm, Tamara Crowe <[email protected]> wrote: > Okay, I think I may have mixed up what permissions I had set. I think the > 777 was only the top level of the habari directory (as the instructions), > and the group did not have writable perms. It would definitely be helpful > for the instructions or install to say where it is trying to put the > habari.db, which I now see goes in the user dir. > > On Sat, Sep 5, 2009 at 3:48 PM, tamaracks <[email protected]> wrote: > > > I'm trying to set up habari with sqlite. I did the requirements page > > and it said I was good. After I choose sqlite on the install screen, I > > get a message that says "SQLite requires that the directory that holds > > the DB file be writable by the web server." > > > I was only able to make the error go away by making the owner of the > > habari directory the web server user. Even with 777 permissions and > > the web server group applied to the habari directory, that writable > > error would not go away until I changed the user. This seems wrong, > > no? > > > Tamara --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/habari-users -~----------~----~----~----~------~----~------~--~---
