Home  >  Article  >  Backend Development  >  How to publish php local project

How to publish php local project

尚
Original
2019-11-01 14:59:423168browse

How to publish php local project

Release of PHP project

To publish PHP code, you need a Php parsing server. The more popular one at present is apache. Deployment of Php projects in apache is very simple. You only need to put the php project into the Apache access directory to access it.

Recommended: php server

Modify Apache access directory method:

1. Find the conf folder in the Apache installation directory. There will be a text document such as httpd.conf in this folder, which is the configuration file of Apache and is responsible for directing the operation of Apache.

2. Double-click to open the text document httpd.conf, and then press the Ctrl F key combination on the keyboard at the same time to find "DocumentRoot"" (with English double quotes "). After finding it, change the string "DocumentRoot" "Change the string in double quotes to the website directory you want to set.

3. Search for "

But you must remember to stop (STOP) the Apache service once and then start (START) the change just now to take effect.

The above is the detailed content of How to publish php local 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