Configure multi-port and multi-site XAMPP

Source: Internet
Author: User
Tags install wordpress wordpress database

Here are the installation tutorials for XAMPP (Www.apachefriends.org/zh_cn/XAMPP. Html). See how to install it!

The problems to be solved in this article are:

1. Port 8888 is allocated to XAMPP for Windows Background ManagementProgram, Access it with http: // localhost: 8888

2. Port 9888 is allocated to the WordPress website and accessed with http: // localhost: 9888.

After installing XAMPP (my installation path is c: \ XAMPP ),Note: After the following configuration file is modified, install Wordpress In the last step.

1. Modify httpd. conf

Httpd. conf in c: \ XAMPP \ apache \ confConfigure the listening port of Apache

Change Listen: 80 to listen: 8888, and then add a listen: 9888

Change servername localhost: 80 to servername localhost: 8888, and add a servername localhost: 9888

2. Modify httpd-vhosts.conf

Add two of these configurations at the bottom of the httpd-vhosts.conf in c: \ XAMPP \ apache \ conf \ extra

 <  Virtualhost  *: 9888  >  # Serveradmin postmaster@dummy-host2.localhostDocumentRoot "C:/XAMPP/htdocs/WordPress" servername localhost # serveralias www. dummy-host2.localhost # errorlog "logs/dummy-host2.localhost-error.log" # customlog "logs/dummy-host2.localhost-access.log" combined  </  Virtualhost  >  < Virtualhost  *: 8888  >  # Serveradmin postmaster@dummy-host2.localhostDocumentRoot "C:/XAMPP/htdocs/XAMPP" servername localhost ## serveralias www. dummy-host2.localhost # errorlog "logs/dummy-host2.localhost-error.log" # customlog "logs/dummy-host2.localhost-access.log" combined  </  Virtualhost  > 

After saving the preceding changes, restart the Apache server.

1. Enter http: // localhost: 8888 in the browser to display the XAMPP for Windows Background Management Program. After creating a WordPress database.

2. directly enter http: // localhost: 9888 in the browser to display the WordPress installation steps. After the installation, enter this address again and the WordPress website will appear.

 

If you want to add support for several other websites, you can modify the configuration file as above!

This article is original: reposted, please explain the source!

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.