In XAMPP, the Apache port is changed and the solution to enabling localhost is not available.

Source: Internet
Author: User

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.

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.