I have a problem with php 5.3.6 using PHP-FPM and file uploads.
My Nginx runs as user nginx PHP-FPM uses pools configured for each vhost. For example a user: test group : test runs one pool.
When the php file uploads to temp file it is owned by user test. After move_uploaded_file is executed by php script it is owned by nginx :/.
I do not know if the change in ownership to web server is the correct behaviour. Is there a way in PHP to change the ownership back to the user I want? (Without going the php chown way as it requires root privileges)