[thelist] Linux CHMOD

Raoul Snyman raoul.snyman at saturnlaboratories.co.za
Tue May 13 05:19:31 CDT 2008


On Tue, 13 May 2008 03:04:00 -0700 (PDT), XtiaN <indotekken at yahoo.com>
> I still confuse the default user n group  created from php mkdir in my
> fedora is 'apache'.
PHP is run through Apache, and so runs as the "apache" user. This means
that any uploads or directories created by PHP are done by the "apache"

> So if i want to chmod my directories to 755, then is it ok if i chown
> those directories to apache?
Yes. You'll probably also want to make sure that the directories' group is
the same group that the apache user is in.

Raoul Snyman, B.Tech IT (Software Engineering)
Saturn Laboratories
e: raoul.snyman at saturnlaboratories.co.za
w: http://www.saturnlaboratories.co.za/
b: http://blog.saturnlaboratories.co.za/

More information about the thelist mailing list