Windows environment installation and configuration wampserver detailed tutorial

  

For the first time to do PHP website friends, the first step is definitely to build a PHP environment in their own computer, save space and upload trouble! But setting up the environment is not an easy task, especially for novice classmates! So here I introduce to you as a newcomer in the use of easy to use PHP server erection software, that is wampserver, this software has been inherited Apache, MySQL, PHP in the process of installation, but also do Well, the corresponding configuration, in addition to the addition of SQLitemanager and Phpmyadmin, eliminating a lot of complicated configuration process, allowing us to spend more time on program development. Even more gratifying is that this software is also completely free. Important: Basically, after each operation of changing the configuration file is completed, it will take effect after restarting the corresponding service. That is to say, if you want to modify the immediate effect, you must restart the corresponding service after the modification is saved!

The process of installing wampserver is very simple, double-click the installation file, click NEXT, as shown in the figure

Click to agree to the agreement, click NEXT, as shown

Select the installation path, as shown in the figure

Whether to create a shortcut, as shown



Select the default browsing tool, such as As shown in the figure, but pay attention, this browsing tool refers to the browser, it refers to the windows browser, which is explorer.exe, the default is this, click "ld"; open & rdquo; .

Enter the administrator's mailbox and the SMTP server's window. If you are willing to fill it out, you can fill it out, but in general, you can click next to it, it will not affect the installation, click NEXT. Br>

Complete installation

Configuration

After installation, a mark will appear in the lower right corner of the screen, right click, and then select Language—Chinese,< Br>

Left click, then click “www directory” will open the install wampserver default web folder, but many times, the folder where we store the web page is not in that directory How can I change this directory? Of course, there is a way to open the wampserver installation directory, open the "script" folder inside, open the config.inc.php inside Notepad, find “$wwwDir = $c_installDir.'/www';”, Change to the directory you want, for example, change to D:\\website, the corresponding code is $wwwDir = ‘D:/website’; (Note that the path under Windows indicates "";" “/”). Then close the wampserver and then open it again. The www directory becomes our D:\\website.

Copyright © Windows knowledge All Rights Reserved