Welcome! Log In Create A New Profile

Advanced

Re: OK to chown www-data.www-data?

Gilles Ganault
July 27, 2010 08:54AM
On Tue, 27 Jul 2010 14:33:31 +0200, Gilles Ganault
<gilles.ganault@free.fr> wrote:
>Sent the message too soon: The PHP5 script can create an empty
>datafile, but can't do anything with it, with no error message

Found it: "table" is a reserved name so cannot be used as a name to
table:

============
#BAD $dbh->exec("CREATE TABLE IF NOT EXISTS table (id INTEGER PRIMARY
KEY AUTOINCREMENT, name VARCHAR(255))");
#BAD $dbh->exec("INSERT INTO table (name) VALUES ('dummy')");

$dbh->exec("CREATE TABLE IF NOT EXISTS mytable (id INTEGER PRIMARY KEY
AUTOINCREMENT, name VARCHAR(255))");
$dbh->exec("INSERT INTO mytable (name) VALUES ('dummy')");
============

The file is created as www-data.www-data so it looks like all PHP
files are run as this user and any file those scripts create are also
owned by www-data.www-data.

HTH,


_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

OK to chown www-data.www-data?

Gilles Ganault July 27, 2010 08:16AM

Re: OK to chown www-data.www-data?

Gilles Ganault July 27, 2010 08:40AM

Re: OK to chown www-data.www-data?

Gilles Ganault July 27, 2010 08:54AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 171
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready