NGINX or PHP-FPM can't write

December 10, 2014 2.1k views

php-fpm and nginx run as www-data www-data and the uploads directory is owned by www-data Nevertheless php can't write

  • Are you receiving an error message from php in your logs when you attempt to open the file for writing?

  • Yes, but I don´t get it

    2014/12/10 02:30:30 [error] 5169#0: *7 rewrite or internal redirection cycle while internally redirecting to "/index.html", client:, server:, request: "GET /MyAdmin/scripts/setup.php HTTP/1.1", host: ""

    Is it a configuration problem?

  • I have changed this line try_files $uri $uri/ =404;
    But it is still not working

  • Hello, did you solve the problem? I have the same issue.

Be the first one to answer this question.