Resolve xampp port conflicts and xampp port conflicts

Source: Internet
Author: User

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,

 

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.