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
2. Use ctrl+f to search, change all 80 ports to 8080 ports, and the #behind can not be changed
This solves the Apache startup problem
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...
Cause: The MySQL port in XAMPP is 3306. My previous computer has MySQL and it is running
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
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
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
Just complete the control directly.
After going through ups and downs, it can be used normally.