To test PHP on Windows (Install XAMPP)

 To test PHP on Windows (Install XAMPP)

If your environment is not suitable for Linux usage, you will need a web server and a database to test PHP language on a Windows environment.

Setting up this together can be a bit complicated, so there is a package software available for easy installation. It's called XAMPP.

For the installation instructions, you can refer to the website link below, and the original site is https://www.apachefriends.org/.

website link : https://phpandmysql.com/extras/installing-xampp/

What I'm going to inform you about is a potential error that may occur after the installation, which is a MySQL execution error. It occurs when there is a port conflict, preventing MySQL from running. In such cases, you can resolve it by changing the port number. In my case, both MySQL and Apache are running, and this is the control panel interface.




In the above screen, the red dot indicates the configuration file (my.ini) for opening. Here, you can change the port number from 3306 to 3308 or any other port number, and then restart it.

You need to modify the port number in two places. If you refer to the screen below, the section highlighted with a red pen shows the modified value as 3308.

The original default port is 3306.







Comments