Wampserver2.5 download, installation, and virtual host configuration

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.