Questions about the XAMPP installation process

Today, in order to study PHP deserialization, XAMPP was installed. However, during the installation process, I encountered a lot of problems (you are lucky, I learned more).
First install XAMPP
. It cannot be opened when starting Apache. At this time, the port is blank, so the website search found that the port needs to be changed because the default port 80 is already occupied.
The steps are as follows:
1. Click config to select the first
Insert picture description here

2. Use ctrl+f to search, change all 80 ports to 8080 ports, and the #behind can not be changed

Insert picture description here

This solves the Apache startup problem
Insert picture description here

two. When MySQL cannot be opened when starting MySQL, it
keeps showing in red. Yes, something went wrong. It keeps showing Attempting to start MySQL service...
Insert picture description here

Cause: The MySQL port in XAMPP is 3306. My previous computer has MySQL and it is running
Insert picture description here

Therefore, it is occupied
. The most common solution on the Internet is to modify the port number. I have tried it, but it still has no effect. Therefore, the next method is effective in the pro-test.
Solution: need to modify the path to the MySQL used by XAMPP, open the registry to modify
Insert picture description here

Change the path to: "D:\xampp\mysql\bin\mysqld.exe" –defaults-file="D:\xampp\mysql\bin\my.ini" MySQL
then restart Apache to open MySQL, success
Insert picture description here

three. It displays xampp-control.ini denied access when exiting.
Solution: Modify the security of this ini file, file → properties → security, and then set permissions
Insert picture description here

Just complete the control directly.
After going through ups and downs, it can be used normally.

Guess you like

Origin blog.csdn.net/bring_coco/article/details/107581663