As shown in the following figure:
Figure 1: generating a static file
Figure two: under MAC, the privileges are not enough to generate static files, and buffer.php files are set to 777 highest permissions.
Figure three: you can see the file on the local server
Figure four: access error, unable to generate new file index.shtml
PS：Last night to visit buffer.php or index.shtml can be generated, in the morning I want to use the figure 1 of the code to re – birth index.shtml can not be generated, and report 500 errors… Do not understand ah…
Ask the great God to help diagnose the problem. Thank you…
The processing buffer should be ob_start (), and 500 is code error.
What user do you run with PHP?
It doesn’t have permission to start this way
sudo killall php-fpm
Then reboot through sudo