05 June 2009

Installing PHP and Configuring Apache

Operating System: Windows Vista (32 bit)

Softwares:

1. Php : Download [PHP 5.*.*-* installer] from http://www.php.net/downloads.php.

2. Apache: Download [Win32 Binary including OpenSSL 0.9.8i (MSI Installer)] from http://httpd.apache.org/download.cgi.

Note:

1. Other installers are also available in both links, but I used this combination.

2. In Apache installation, user “localhost” for both Network Domain and Server Name.

Configurations:

After installation of PHP and Apache, you are not finished. You have to manually configure few things.

1. Open httpd.conf file in installed Apache directory (Path in my installation: D:\Program Files\Apache Software Foundation\Apache2.2\conf\httpd.conf)

2. Write the following line at the end of the file

LoadModule php5_module "D:/program files/PHP/php5apache2_2.dll"

Note: Path depends on your installed directory and used version of php.

3. Find the last occurrence of the word “directives” in httpd.conf file. Add the following two lines after the paragraph containing the search result.

AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps


I'm thankful to http://blog.taragana.com/index.php/archive/how-to-configure-php-5-with-apache-2-on-windows-in-2-minutes/

0 Comments:

 

© 2007 t!ps n tr!cks: Installing PHP and Configuring Apache



Template unik dari rohman


---[[ Skip to top ]]---