php developer Mumbai
php developer India
Website development Mumbai
website optimization seo
php freelancers India

install php install

This post if for all php beginners who dont know how to install php, and searching for php installation steps.

Prerequisites
In order to install and learn php on your local computer system you need php
installation and an server software as well i.e.(Apache/IIS).


First we have to install apache server and then php and mysql.
so go through following steps to install apache server on your local system.
-------------------------------------------------------------------------------------
Download the latest Win32 Binary (MSI Installer) of apache web server.
click here for apache installation

You should download following version.

Version: 2.0.55
File Name: apache_2.0.55-win32-x86-no_ssl.msi

1. Download the apache installation file i.e. apache_2.0.55-win32-x86-no_ssl.msi.
2. Double click it and start the apache installation.
3. It is a normal installation so no need of brief explanation.
4. The installation wizard will ask you some fields "Network domain", "server name", "administrators email id" etc - you can enter anything in this fields.
5. Then choose typical installation and click on next button.
6. Finish the installation.
7. Open http://localhost/ and you will see the apache test page.
8. Apache installation is done.

Apache server's configuration settings is stored in a file called httpd.conf.
This file is located at C:\Program Files\Apache Group\Apache2\conf\ directory. You have to edit this file while installing php.
_____________________________________________________________

Install PHP
On the PHP download page, click on the zip package under the Windows Binaries section to download php. CLICLK HERE FOR PHP

You should download following version.
Version: 5.1.2
File Name: php-5.1.2-Win32.zip.

-------------------------------------------------------------------------------------
Now go through following simple steps to install php.

1. Extract php-5.1.2-Win32.zip to C:\php.
2. There is one file in php directory ( php-ini-recommended.ini ).
This is a configuration file of php.
Create a copy of this php configuration file and rename it to c:\php\php.ini.
3. Now open php.ini file in any text editor which you like and do the following changes and then save it.

a)Uncomment the "include_path" on. line 505.
include_path = ".;C:\php\includes"

b)Change the "doc_root" to match your httpd.conf DocumentRoot directory. line 512.
doc_root = "C:\Program Files\Apache Group\Apache2\htdocs"

c)Change "extension_dir". Line 519.
extension_dir = "C:\php\ext"

d)Change "session.save_path" and "session.cookie_path" on
line no 939 & 958, respectively
session.save_path = "C:\Temp"
session.cookie_path = \

4. Add C:\php to your PATH System Environment Variable
a.Right-click on My Computer and choose Properties.
b.Select the Advanced tab.
c.Click Environment Variables.
d.Under System variables, select “Path” and choose Edit.
e.Move the cursor to the end of the string and add
;C:\php. A basic path will look something like the following:
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\php
5. Click ok and finish it.

6.Open your httpd.conf file located at C:\Program Files\Apache Group\Apache2\conf\ and Append the following lines.

LoadModule php5_module "c:/php/php5apache2.dll"

AddType application/x-httpd-php .php

PHPIniDir "C:/php"


7.Add index.php to the DirectoryIndex, and then save. Line 321.
DirectoryIndex index.php index.html index.html.var

8. Restart the apache server and check that test apache page is displaying or not.