title: Nginx + PHP File Upload issue
body: <p>I am experiencing the following issue when uploading a file via phpMyAdmin, MODx or Wordpress. In the PHP application itself I am receiving a success message but the file is not uploaded. The nginx error.log prints the following messages:</p>
  
  <pre><code>[warn][..] a client request body is buffered to a temporary file...
  FastCGI sent in stderr: "PHP message: PHP Warning:  File upload error - unable to create a temporary file in Unknown on line 0...
  </code></pre>
  
  <p>I am running CentOS Linux release 7.2.1511 (Core) with Nginx 1.8.0 and PHP 5.4.16. This setup was working before updating from CentOS 7.1 to 7.2.</p>
  
  <p>Here are the steps that I already tried to solve the problem:</p>
  
  <ul>
  <li>sys_get_temp_dir() -> /tmp</li>
  <li>/tmp has permissions 1777</li>
  <li>PHP is running as user nginx</li>
  <li>it is plenty of free disk space available</li>
  <li>post_max_size, upload_max_filesize and client_max_body_size are all set to 50m</li>
  </ul>
  
  <p>I am running out of ideas...</p>
  
  <p>Thanks in advance</p>