Install PHP Server in Local machine

Push notifications in Android requires server, if you are finding difficulty in setting up server, then here is a simple procedure to set-up PHP server in local machine. Using this, you can easily test  push notification.

  • Download and install XAMPP
  • Launch the XAMPP control panel.XAMMP Control Panel
  • Try starting Apache services, if Skype is already installed in local machine then by default it uses port 80 & 443 for incoming connections. In this case, XAMPP throws error

“7:44:18 PM [Apache] Problem detected!
7:44:18 PM [Apache] Port 80 in use by “C:\Program Files (x86)\Skype\Phone\Skype.exe” with PID 2396!
7:44:18 PM [Apache] Apache WILL NOT start without the configured ports free!
7:44:18 PM [Apache] You need to uninstall/disable/reconfigure the blocking application
7:44:18 PM [Apache] or reconfigure Apache and the Control Panel to listen on a different port
7:44:18 PM [Apache] Problem detected!
7:44:18 PM [Apache] Port 443 in use by “C:\Program Files (x86)\Skype\Phone\Skype.exe” with PID 2396!
7:44:18 PM [Apache] Apache WILL NOT start without the configured ports free!
7:44:18 PM [Apache] You need to uninstall/disable/reconfigure the blocking application
7:44:18 PM [Apache] or reconfigure Apache and the Control Panel to listen on a different port”

  • To overcome this issue, login to skype, go to Tools–>Options–>Advanced–>Connection. Un-check use port 80 & 443 option as shown in below image.

Skype disable port Apache server

  • Now Logout of skype and then login again. Changes will get applied successfully.
  • Start the Apache server from XAMPP Cpanel, it should work without any issues.

XAMMP Apache services

Note: We have tried this in Windows 8, it works perfectly fine.