Website Root Directory"; finally, put the website source code in the root directory."/> Website Root Directory"; finally, put the website source code in the root directory.">

Home >Backend Development >PHP Problem >Method of local deployment of php project

Method of local deployment of php project

藏色散人
藏色散人Original
2020-10-06 09:48:066275browse

Method for local deployment of php project: first download and start phpStudy; then select "Other options menu->Website root directory"; finally, put the website source code in the root directory.

Method of local deployment of php project

Recommended: "PHP Video Tutorial"

Search phpStudy on Baidu and see the official website, we click The first searched content link.

Method of local deployment of php project

In the carousel on the homepage of the official website, you can see the words phpStudy download immediately. It is a convenient PHP integrated development environment and currently only supports the windows platform.

Method of local deployment of php project

After downloading, double-click the software to decompress it. I decompress it now on the d drive. Let’s open the software.

Method of local deployment of php project

Click the start button like a fool to start nginx and mysql services.

Method of local deployment of php project

After startup, you need to pay attention to the running status bar. Both nginx and mysql running status need to be green!

Method of local deployment of php project

Select the other options menu->Website root directory, and the root directory of the site will pop up. We put the relevant source code here.

Method of local deployment of php project

Enter 127.0.0.1/phpinfo.php in the browser input box, and we can see the configuration of php.

Method of local deployment of php project

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!

Method of local deployment of php project

Notes

introduces the deployment of PHP projects in the windows environment.

The above is the detailed content of Method of local deployment of php project. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn