I have been troubled by this problem all afternoon. I think what I wrote is correct. The nginx.conf file has been changed, the location of the access log has also been changed, and the permissions of the log have also been changed to 777, but it still doesn’t work. crash state.
Later, I finally solved this problem. RELOAD is unreliable! ! ! ! You must stop and start again
Stop nginx -s stop
Restart nginx -c nginx.conf
Test...
Done.
The above has introduced the solution to the nginx permission problem 13: Permission denied, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.