Knol will be discontinued on Tue, 01 May 2012 07:00:00 GMT. Learn more.

Steps for PHP installation.

Install PHP in Windows for doing Website Development

PHP is the most popular open source scripting language used with Apache server for doing website development.
This knol will explain the steps required for setting up php with Apache server in Windows machine.


eBook for learning Software Testing and QTP



PHP is having lot of optional modules such as php_gd2 (for graphic display), php_mysql (database connectivity). Find below the steps for setting up php with required modules along with Apache server in Windows environment.

We can follow below steps for installing php with Apache server.

  • Install Apache-2 while (installing it give domain name and server name as "localhost")

  • Create a folder inside Apache with name=”php”.

  • Unzip the file “php-5.2.6-Win32.zip” inside the folder “php”.

  • Rename the file “php.ini-recommanded” as “php.ini”.

  • Open php.ini and change the following:

    • Remove ; present from the lines “extension=php_gd2.dll”, “extension=php_mysql.dll”
      (; means comment)

    • Change extension_dir = "C:\Program Files\Apache Group\Apache2\php\ext"

    • Copy and paste “php.ini” inside “windows”

  • Open “httpd.conf” file that is present inside “Apache\conf”.

  • Paste the following line ServerRoot "C:/Program Files/Apache Group/Apache2"

  • Don’t use # symbol. It is used for comment.

  • Paste the following line at the end of loadmodule: LoadModule php5_module "C:\Program Files\Apache Group\Apache2\php\php5apache2.dll"

  • After documentroot paste this: DocumentRoot "C:/Program Files/Apache Group/Apache2/htdocs"

  • Add this: AddType application/x-httpd-php .php after the following line: #AddType application/x-tar .tgz

You can follow similar steps if you want to include any additional modules such as curl.
This knol is part of the collection: QualityPoint Knols
« Previous (Google Voice gives One number for al...
(Reverse Auction and finding best pri... Next »

Comments

Rajamanickam Antonimuthu
Entrepreneur
Chennai,India
Article rating:
Your rating:
All Rights Reserved.
Version: 5
Versions
Last edited: Mar 10, 2010 12:50 AM.

Activity for this knol

This week:

4pageviews

Totals:

2452pageviews