The download can be done either by going to PHP Home page and the PHP website has a download section where both the source code and pre-compiled binaries of PHP are available, or Windows users can go to Windows.php.net where Windows binaries of PHP are found.
Other operating systems like Linux, for instance, have package managers which can install PHP with the web server. Some operating systems even come with PHP already installed or at least built-in. So depending on the operating systems, the steps to get a working PHP system up and running might a bit different.
Install web server (Apache), PHP and Database separately ( LAMP – Linux-Apache-MySql-PHP) or use third part tools (eg: WAMP ) that can get all the three package in one file.Once installed that file, it will configure all the settings and will be ready to run the PHP files.
Below are some of the third party packages, which will install Web Server (Apache), PHP, MySql.