On a Debian system I installed Apache, MySQL, PHP. In the /var/www I dropped Joomla 3. The PHP script is executed but there is a problem with permissions. The php script is not able to write to files in /var/www. The script is triggered through a browser, which is started by a non-privileged user (simpleuser). I tried two different file setups for the directory:
set directory Owner Group Permissions
1) /var/www root simpleuser 775
2) /var/www root simpleuser 777
Only option 2) works. Because of this I think the script runs not with the permissions of simpleuser which is in the same-named group.
How can I determine who tries to modify files in /var/www/ ?
EDIT: The user in my specific case is actually www-data. Although I would like to know how to determine who (user) wants to get access to a certain file.