PHP 7 Installation Guide

To run PHP 7 applications, either you should have a web hosting account that supports PHP 7 and MySQL or, you should have Web Server, PHP 7 and MySQL software installed on your local machine. Generally PHP is used with MySQL.

There are two ways to install these on your local machine, either you can install a package that contains all (Web Server, PHP 7 and MySQL) or you can install each individually.

Package Installation

Click on the below link based on the operating system you are using and download the most recent version. WAMP - This is recommended for Windows Operating System users only. This provides support for Apache, MySQL and PHP.
XAMPP - This is more powerful and available for Windows, Linux and OS X. This provides support for Apache, MySQL, PHP and Perl.
LAMP - This is recommended for Unix and Linux users. This provides support for Apache, MySQL and PHP.

Manual Installation

Manual Installation takes more installation time from package installation, but for learning purpose, it would be better to install each individually.

These are the official sites to download and install each manually.

Apache -

These are the full installation and configuration guide provided by the PHP official site based on the operating system.

Installation on Windows systems -
Installation on Unix/Linux systems -
Installation on Mac OS -

Testing the installation

It is necessary to test out the installation. For this create a php file in your web directory and write the following script in it.

<?php phpinfo(); ?>  

Let us save the above script as sample.php and start the server installed on your machine, suppose the webserver is running at -


Invoke the above url, if the installation is fine, you will see all the php configuration variables and their values.

The PHP official website provides information of each of the latest releases and future releases and features planned of the language.