php/linux permissions

    Date: 02/02/08 (PHP Community)    Keywords: php, apache

    In an Ubuntu distribution, I believe PHP runs as user www-data (inheriting the user name of apache).

    All of the files I create have my user name and my group name.

    I have a script that requires write access to some files and folders.

    Is it better to add www-data to my group, or is it better to make these files and folders world writable (ie 0777)? Or is there another approach I am missing?

    Source: http://community.livejournal.com/php/611462.html

« Calendar issue || exec() question »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home