Hello guys, when you starting develop web oftenly you will using XAMPP. What is Xampp? you can read xammp. But if you was installed app using port 40 you will get error Error: Apache shutdown unexpectedly XAMPP when you start Apache.
In this tutorial i will try help you to solve this problem.
First, open your config > apche(httpd.conf)
the goal we will change number port for this
Second, find word 80
and then we change port 80 to 1337
Third, open config again in apache and open Apache(http-ssl.conf)
finding 443
change 443 to 7331
Now start your Xammp....
GOD LUCK