Wampserver2.5 download, installation, and virtual host configuration
1. Download wampserver2.5. 2. After wampserver2.5 is installed, click "next" until the installation is successful. After the installation is completed, a green icon appears in the lower-right corner of the computer, as shown in the highlighted red box, the default value is English. Now we switch to chinese. 3. For wampserver virtual host configuration (this is my installation directory), open E: \ wamp \ bin \ apache \ apache2.4.9 \ conf \ httpd. the conf file is found in row 154 # LoadModule rewrite_module modules/mod_rewrite.so remove the previous # In line 515 # Include conf/extra/httpd-vhosts.conf remove the previous # Open E: \ wamp \ bin \ apache \ apache2.4.9 \ conf \ extra \ httpd-vhosts.conf Add the following content: NameVirtualHost *: 80 <VirtualHost *: 80> DocumentRoot "D: /phpxm/yanshi "ServerName www.yanshi.com ServerAlias www.yanshi.com yansh I .com <Directory "D:/phpxm/yanshi"> Options Indexes FollowSymLinks AllowOverride All Require all granted </Directory> ErrorLog "D:/phpxm/yanshi/error. log "CustomLog" D:/phpxm/yanshi/access. log "combined </VirtualHost> open the C: \ Windows \ System32 \ drivers \ etc \ hosts file and add the following content: 127.0.0.1 yanshi. com127.0.0.1 www.yanshi.com finally creates the index in the path D:/phpxm/yanshi. PHP file, index. the php content is hello. Restart the wamp browser to access yanshi.com. The following page appears, indicating that the configuration is successful.