What are the steps to change the default port of Apache server in XAMPP to avoid conflicts with other programs using the same port?

When setting up an Apache server in XAMPP, the default port used is 80. However, if there are other programs running on the same port, conflicts may arise. To avoid this, you can change the default port of the Apache server in XAMPP to a different port number, such as 8080. This can be done by modifying the httpd.conf file in the Apache configuration.

1. Open the XAMPP control panel and stop the Apache server.
2. Navigate to the XAMPP installation directory and locate the 'httpd.conf' file in the 'apache\conf' folder.
3. Open the 'httpd.conf' file in a text editor and search for 'Listen 80'.
4. Change 'Listen 80' to 'Listen 8080' (or any other available port number you prefer).
5. Save the 'httpd.conf' file and restart the Apache server in the XAMPP control panel.