Home >Backend Development >PHP Tutorial >Test Nginx's parsing function for PHP
Test Nginx’s parsing function for PHP
Create a phpinfo.php file in the /usr/local/nginx/html directory with the following content:
Then access it through the browserhttp://local/index .html, by default "Welcome to Nginx!" will be displayed in the browser to indicate that Nginx is running normally.
Then visit http://localhost/phpinfo.php in the browser. If PHP can be parsed normally, PHP installation configuration and function list statistics will appear.
Copyright Statement: This article is an original article by the blogger and may not be reproduced without the blogger's permission.
The above introduces the testing of Nginx's parsing function for PHP, including aspects of it. I hope it will be helpful to friends who are interested in PHP tutorials.