Search phpStudy on Baidu and enter the official website.
Click "Download Now".
Related recommendations: "php tutorial"
Unzip the downloaded file and open phpStudy.exe.
Click "Start" to start the nginx and mysql services.
After startup, you need to pay attention to the running status bar. Both nginx and mysql running status need to be green!
Select "Other Options Menu" and then click "Website Root Directory" to pop up the root directory of the site. We put the relevant source code here.
Enter 127.0.0.1/phpinfo.php in the browser input box, and we can see the configuration of php.
For example, we can see in the picture above that I have a phpMyAdmin project. Enter 127.0.0.1/phpMyAdmin/ in the browser, so that we can access our php project and send the response Just put the source code in the directory of step 6!
The above is the detailed content of How to deploy php. For more information, please follow other related articles on the PHP Chinese website!