Home >Backend Development >PHP Problem >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!