If everything is correct, the Apache label will become green, and you will see the default ports – 80. If you have Skype or a torrent client running, the Apache server will not start. You need to exit the program that holds port 80, and the Apache server will start.
Part II: Connect the Debugger, Apache Server and MySQL DB to PhpStorm
This part will show you how to configure XAMPP with PhpStorm.
5.Go to the PhpStorm Home Page
If it’s the first time you start PhpStorm, it will be quite easy. You will start there. If you have started PhpStorm before, you need to either close your current project using File -> Close Project option or simply skip this step and go to File -> DefaultSettings. You should see this screen:
As you can see in the picture, you need to go to the settings menu.
6.Install the PHP Debugger
Once you are in the setting menu you need to go to Languages & Frameworks tab and select PHP. We need to change the PHPversion to PHP7.
Add new server with Host = localhost, on port 80 with Xdebug debugger.
At last we need to select the newly created server, and edit the URL. In the URL part you need to locate the file that you want to debug starting from localhost. In the example below my file is in project DebuggerConfig with file name homeController.php.