First, confirm
1. Go to the \ XAMPP \ apache \ conf directory.Open httpd. conf and change all port 80 to an unused port, such as 8001.
2. Go to this directory \ XAMPP \ apache \ conf \ extra, open the httpd-ssl.conf, replace all port 443 in the file with an unused port, such as 4431
First, make sure that all 80 and 443 under the two directories are modified (we recommend that you use search and replace)
When the Apache port is not changed, http: // localhost is used to access the XAMPP homepage.
After the change, assume that 80 is changed to 8001 and http: // localhost: 8001 is used to access the XAMPP homepage. This is also true for accessing other PHP files under XAMPP.
You can create sub-directories to store your own PHP files in the XAMPP/htdocs/directory.
For example, XAMPP/htdocs/donkey/test. php
// Test. php
<? PHP phpinfo ();?>
Enter
Http: // localhost: 8001/donkey/test. php
The PHP version and other information are displayed.