How to install php, mysql, apache and visual studio on same computer?

from 3 years, I am unable to find the solution for this thing, I want to use http://localhost/ for either for XAMPP for PHP testing, and something like http://localhost:32465/ default locations for Visual Studio for .NET C# and ASP.NET. Is this possible to run both on same computer. I want to learn both of them. Please help !

I´m not sure what ports are being used by Visual Studio but you should change it to different than the one used by wamp/xampp which is 80. Here might be the solution