I installed the php server according to the instructions on the Internet, but it failed to pass the test.
After searching, it was found that it was caused by permission issues. The record is as follows:
If you open your /etc/php5/fpm/pool.d/www.conf file, you'll notice that fastcgi is listening to /var/ run/php5-fpm.sock. You'll need to grant your webserver privileges to the unix socket by uncommenting the following lines:
listen.owner = www-data
listen.group = www-data
listen.mode = 0660
The above introduces the permission configuration for installing PHP on Ubuntu 1204, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.