How to deal with XAMPP learning PHP configuration environment

Source: Internet
Author: User
XAMPP learns how to solve the problem of port 80 modification by ApacheBusy in the PHP configuration environment ------ solution ------------------ find confhttpd. in the conf file, change Listen80 to Listen8080 (configured by yourself) ServerNamelocalhost: 80 to ServerNamelocalhost: 8080-XAMPP to learn how to configure the PHP environment.
How to solve the problem of Apache Busy modifying port 80


------ Solution --------------------
Find the conf \ httpd. conf file and modify the following
Change Listen 80 to Listen 8080 (configured by yourself)
ServerName localhost: 80 changed to ServerName localhost: 8080

------ Solution --------------------
Find the httpd. conf file in the apache \ conf file.
Modify Listen to the port to use.
ServerName localhost: change the port to be used
------ Solution --------------------

The landlord said that the Apache server cannot be started.
In Windows, port 80 is occupied by Web servers by default, such as IIS,
The default port of the Apache server is 80, so the solution is:

1. modify the default port of Apache. The procedure is as follows:
Modify xampp \ apache \ conf \ httpd. conf file. open it in a text editor. because there are too many contents, use Ctrl + F to find the default port 80, which has two parts: Listen and ServerName. change the port as needed, it is best to change it to a larger value (for example, 4498), because I changed it to 123 at the beginning. I tried it many times but it was not successful.
Then restart xampp-control.exe and you will be OK.

2. if the problem persists, check whether port 80 is occupied by other applications. The specific method is as follows:
First, open cmd and check the port 80 occupied by the program. netstat-a-n-o
Find the PID corresponding to port 80 and kill it in task manager !!!

Good luck !!!

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.