Resolve xampp port conflicts and xampp port conflicts
Today, when I press xampp on my computer and run wamp, the following occurs:
I checked it online. The result is that the port is occupied, and then I manually modified it.
1. Modify the xampp port number
Find the installation directory of XAMPP (for example, D: \ xampp) \ apache \ conf \ httpd. conf, and open httpd. conf with notepad or notepad,
Or open the xampp page directly,
Double-click it and press Ctrl + F to search for listen and change port 80 to 8081.
After modification, search for the Server and change localhost to 8081.
The modification is complete. Let's start it again. Can we see it,
2. Modify the root directory of the xampp file: Open httpd. conf, press Ctrl + F to search for document, and change it to the file directory you want.
3. Use Dreamweaver to create a site, enable Apache of xampp, write a test. php page, and test whether the site is successful.
Test. php
1 <? Php2 phpinfo (); 3?>
You can see this, for example:
4. When Sqlyog is used, open the mysql of xampp. The connection is normal because nothing related to the database is changed,