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!