Cómo cambiar el puerto para XAMPP
open the "httpd.conf" file
replace
Listen 80
ServerName localhost:80
Listen your port
ServerName localhost:your port
SECRET MYSTERY
open the "httpd.conf" file
replace
Listen 80
ServerName localhost:80
Listen your port
ServerName localhost:your port
Edit "[path-to-xampp-folder]/mysql/bin/my.ini", change 3306 to whatever port you want to use.
1. Open xampp control panel.
2. Press Config on MySQL line.
3. Open my.ini
4. Search for the variable "port" under "The MySQL server.
5. Change the port to your desired value.
6. Start MySQL to make sure it has successfully changed.