In order to develop and run PHP Web pages, these three components required to be installed on your computer system.
Web Server
PHP will work with virtually all Web Server software, including Microsoft's Internet Information Server (IIS) but then most often used is freely available Apache Server. To download this server, install XAMPP and start the APACHE SERVER. Alternatively, you can also WAMP Server,
Database
PHP will work with virtually all database software, including SQL Server, Oracle, etc, but most commonly used with MySQL database. It is freely available to download. It is also available with ZAMPP Software. To start its Phpmyadmin Database server, just START MYSQL.
PHP Parser
In order to process PHP script instructions, a parser must be installed to generate HTML output that can be sent to the Web Browser. it is important to make sure that you have a proper environment setup on your machine to develop your web programs using PHP. To check the type URL on the browser http://127.0.0.1/info.php.
If this displays a page showing your PHP installation-related information, then it means you have PHP and Webserver installed properly.