Home  >  Article  >  Backend Development  >  Basic PHP Learning (Part 3)

Basic PHP Learning (Part 3)

PHP中文网
PHP中文网Original
2016-08-08 09:30:27997browse

Chapter 3 Configuration of WAMPServer Integrated Environment


3.1 Customize the website root directory

                                                                                                                                  www directory option) as shown in the figure below, but in actual situations we often hope that the project files will not be placed in WAMPServe, so as to achieve separation and facilitate management.


The selection steps are as follows:

(1) Create a new folder E:phpdemodemo (will be used later), used to put project files, as shown in the picture


(2) WAMPServe Left-click on the icon and select apached's httpd.conf, as shown in the picture


(3) Click to open the httpd.conf file, Ctrl+f to search documentroot and directory, and modify the path to E:phpdemodemo (the file you just created folder), save, restart the service (you need to restart after modifying the configuration file to take effect)


(4) View, enter the URL http://localhost/demo.php to view, if success is displayed, it is correct. (Note: The wamp root directory has not been modified at this time)


Here is an advertisement for the two projects I am responsible for developing. The access addresses are http://www.hth.tv/ and http:/ /www.dreamerkr.com.cn.

(5) Enter the wamp root directory and find the following 2 files


(6) Open the file wampmanager.ini and modify the circled part to E:phpdemodemo, as shown in the figure below


(7) Open wampmanager.tpl, modify the circled part to E:phpdemodemo, as shown in the picture


(8) Restart the service, the modification is successful (click the underlined content to jump to the E:phpdemodemo directory)


The above introduces the basic learning of PHP (Part 3). For more related content, please pay attention to the PHP Chinese website (www.php.cn)!



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