A: First familiar with a few commands
which PHP---> which is to find the executable file through the PATH environment variable to that route, so the basic function is to find the executable file
Whereis php----> Find files related to php file
Service Php-fpm/nginx/mysqld Restart Restart services
Two: Find the Nginx configuration file nginx.conf
#find/-name nginx.conf
Find the path:/etc/nginx/nginx.conf
Two: Find Ngin the default virtual host configuration
#find/-name default.conf
# CD/ETC/NGINX/CONF.D
#cp default.conf host1.conf (Nginx each virtual host is a configuration file, configure multiple virtual hosts need to create a new file)
These two places need to be changed.
Third: Change the hosts under the local
You can display configuration settings that have index.php to show that no other directory list displays this item
Configuring virtual hosts under Linux