On Mon, 24 Mar 2008 21:57:52 +0100, Gilles Ganault
<[EMAIL PROTECTED]> wrote:
>       I'm having the following issue trying to access an SQLite 3.3.17
>database from PHP+PDO under FreeBSD 6.3: I can read, but can't write,
>with no error reported by PHP or /var/log/messages.

Found what it was: Even if a file is set to 664 and owned by the right
user, the _directory_ in which the file lives has precedence. In this
case, I just chowned it to root:www, and chmoded it to 664:

[/usr/local/share/asterisk/agi-bin]# ll
drwxrwxr-x  3 root  www      512 Mar 24 22:05 .
drwxr-xr-x  9 root  wheel    512 Mar 14 08:05 ..
-rw-rw-r--  1 www   www     3072 Mar 24 22:05 test.sqlite

Learned something new today. Hope this helps.

_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to