On Sun, Mar 23, 2008 at 11:05:23AM +0100, Vincent wrote:
> Hello
>
> I run AGI scripts from extensions.conf to save data into an SQLite
> database file, but this file must also be accessible in read-write
> mode by PHP scripts served by Lighttpd.
>
> As far as I can tell, Asterisk runs by default as root:wheel. I don't
> know if AGI scripts also run as root:wheel.
This is a ptential problem on its own.
Asterisk should run as asterisk:asterisk.
There should be a third group (say, wwwast) that both asterisk and www
should be its members. And you should chown/chmod the directory holding
the sqlite db (and the db itself) to be writable to members of that group.
--
Tzafrir Cohen
icq#16849755 jabber:[EMAIL PROTECTED]
+972-50-7952406 mailto:[EMAIL PROTECTED]
http://www.xorcom.com iax:[EMAIL PROTECTED]/tzafrir
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users