PHP

PHP Environment Setup

PHP Environment Setup

To develop and run PHP on your computer system three vital components are needed to be installed. 

  • Web server – Virtually a PHP can work with all the webserver software. The Most frequently used Apache Server. 

Download the Apache server for free from here –

https://httpd.apache.org/download.cgi

  • Database- Similarly as Web server PHP works with all database software virtually. The most frequently used database is the MySQL database.

Download the MySQL Database for free from here – 

https://www.mysql.com/downloads/

  • PHP Parser- The role of the Parser is to Process the PHP script instructions. A Parser generates HTML output which can later be sent to the web browsers. 

Create some .php files in your web directory and the server will parse them for you as it is free. Most of the web hosts offer PHP support even though if your server doesn’t support PHP then you need to install PHP. 

You can download PHP from here – http://www.php.net/manual/en/install.php

 Type the following address in your browser’s address box 

After this, if the browser displays the information of your PHP installation then you have PHP and a web server installed. Or else you need to install it for your computer system. 

Mostly People prefer to download all in one solution –

For windows platform - WampServer 2.0i [07/11/09]

It includes 

-Apache 2.2.11

-MySQL 5.1.36

-PHP 5.3.0

http://www.wampserver.com/en/

For Linux platform- http://lamphowto.com/