Sei sulla pagina 1di 11

How to Install and Configure Php 5.2.5 and Apache 2.2.8 in Windows Vista http://www.wikihow.com/Install-and-Configure-Php-5.2.5-and-Apache-2...

1 of 11

How to Install and Configure Php 5.2.5


and Apache 2.2.8 in Windows Vista
Many web developers want to run Apache and PHP on their own computer.
This article gives a step by step guide on how you can install and configure
PHP5 to work together with the Apache HTTP Server on Windows Vista

Ad

Download Free PC Software


mobogenie.com/download-pc-software
Download Free PC Manager Software for Android. Download Now !

Steps

Download correct version of PHP-5.2.5 and Apache-2.2.8.


To download apache 2.2.8, go the website http://httpd.apache.org/download.cgi
and then find and click on apache_2.2.8-win32-x86-no_ssl.msi in the page and
then click on save. Choose the path where do you want to download and save
the file.

To download php 5.2.5, go to the website http://de.php.net/downloads.php. In


particular, download the zip package from the "Windows Binaries" section that is
click on PHP 5.2.5 zip package. (Warning: Do not get the installer.) You should
be directed to a page where you have mirror options to download. You can
choose any option from the recommended mirrors which will be automatically
detected. Click on that mirror and then download and save it to your hard drive.

08-01-2014 12:06

How to Install and Configure Php 5.2.5 and Apache 2.2.8 in Windows Vista http://www.wikihow.com/Install-and-Configure-Php-5.2.5-and-Apache-2...

2 of 11

Ad

Download Software
www.mobogenie.com/Android-Manager
Download Free PC Manager Software for Android Devices,
Download Now !

Installing Apache 2.2.8


Double click on the installation file (apache_2.2.8-win32-x86-no_ssl).

Click on next.

08-01-2014 12:06

How to Install and Configure Php 5.2.5 and Apache 2.2.8 in Windows Vista http://www.wikihow.com/Install-and-Configure-Php-5.2.5-and-Apache-2...

3 of 11

Select I accept the terms in the license agreement and then click next. Click
next again.

Write localhost on server domain.

Write localhost in server Name box.

08-01-2014 12:06

How to Install and Configure Php 5.2.5 and Apache 2.2.8 in Windows Vista http://www.wikihow.com/Install-and-Configure-Php-5.2.5-and-Apache-2...

4 of 11

Write your own email address at Administrators Email Address.

Select for all users, on Port 80, as a Service Recommended and then click
on next.

Select custom setup type and then click next.

08-01-2014 12:06

How to Install and Configure Php 5.2.5 and Apache 2.2.8 in Windows Vista http://www.wikihow.com/Install-and-Configure-Php-5.2.5-and-Apache-2...

5 of 11

Change the destination folder to C:\Program Files\apache and then click on


ok. Then click on next. Finally click on install.

Apache webserver should install in few minutes. Click on finish.

Testing if Apache is successfully installed or not.

08-01-2014 12:06

How to Install and Configure Php 5.2.5 and Apache 2.2.8 in Windows Vista http://www.wikihow.com/Install-and-Configure-Php-5.2.5-and-Apache-2...

6 of 11

To check if apache has been successfully installed in your windows pc you need
to open a web browser and then on the address bar type //localhost and then
hit enter. You should see a page that says It Works! on the top left hand
corner.

Installing PHP 5.2.5


Right click on the zip folder php-5.2.5-Win32 and then click on Extract all.
On the Destination folder type C:\Program Files\php then click on Extract.

Configuring Apache 2.2.8

08-01-2014 12:06

How to Install and Configure Php 5.2.5 and Apache 2.2.8 in Windows Vista http://www.wikihow.com/Install-and-Configure-Php-5.2.5-and-Apache-2...

7 of 11

Now that you have successfully installed both apache web server and php
scripting language your next most important task is to configure them so that
they can recognize each other.
Go to your apache installation path, and then open httpd.conf which is located
under the conf directory C:\Program Files\apache\conf double click on
httpd.conf file. Find (ctrl+F) 'loadmodule'. After the last line of the loadmodule
section type: LoadModule php5_module C:/Program Files/php
/php5apache2_2.dll

After you have done look for <IfModule mime_module> and then add the
following lines

AddType application/x-httpd-php .php


AddType application/x-httpd-php-source .phps
Before the closing statement </IfModule> for mime_module

08-01-2014 12:06

How to Install and Configure Php 5.2.5 and Apache 2.2.8 in Windows Vista http://www.wikihow.com/Install-and-Configure-Php-5.2.5-and-Apache-2...

8 of 11

After that on the same page find <IfModule dir_module> and then add
DirectoryIndex index.html and index.php before </IfModule> if it already does
not exists.

Add the following line PHPIniDir C:/Program Files/php to the bottom of the
file.

08-01-2014 12:06

How to Install and Configure Php 5.2.5 and Apache 2.2.8 in Windows Vista http://www.wikihow.com/Install-and-Configure-Php-5.2.5-and-Apache-2...

9 of 11

After you have done that save the file and close it.

Configuring PHP 5.2.5


Inside the folder C:\Program Files\php find php.ini-development and then
rename it to php.ini. Open that file and then inside the file find the following and
replace it as follows:

08-01-2014 12:06

How to Install and Configure Php 5.2.5 and Apache 2.2.8 in Windows Vista http://www.wikihow.com/Install-and-Configure-Php-5.2.5-and-Apache-2...

10 of 11

doc_root = C:\Users\[my name]\Documents\[My websites folder]

extension_dir = C:\Program Files\php\ext


Save it. After that go to Start menu->> All Programs ->> Apache HTTP Server
2.2 ->> Control Apache Server ->> Restart. This should restart the apache
server.

Testing if Apache and PHP are successfully configured or not.


To check if apache and php are configured successfully, create a new text
document (in Notepad for example) in the doc_root folder you defined a few
lines above; in that text document type <?php phpinfo(); ?> and then Save As
(File Name) "phpinfo.php", type All Files. Now you have done that go to new
web browser and then type //localhost/phpinfo.php.
If you get the following page then you have successfully downloaded, installed
and configured php 5.2.5 and apache 2.2.8.

Ad

Download Free PC Software


mobogenie.com/download-pc-software
Download Free PC Manager Software for Android. Download Now !

7TUNED.com
Dr. Batra's Hair Clinic

08-01-2014 12:06

How to Install and Configure Php 5.2.5 and Apache 2.2.8 in Windows Vista http://www.wikihow.com/Install-and-Configure-Php-5.2.5-and-Apache-2...

11 of 11

Related wikiHows

How to
How to

Back Up Your
Computer in
Windows Vista

Take a
Screenshot with
the Snipping Tool
on Microsoft
Windows

How to

How to

Speed up
Windows Vista

Use Windows
Photo Gallery

Article Info

Categories: Vista Instructions


Recent edits by: Jeff, Teresa, June
In other languages:
Espaol: Cmo instalar y configurar PHP 5.2.5 y Apache 2.2.8 en Windows Vista
Ad

Download Free Software


mobogenie.com/download-software
Download Free PC Manager Software for Android. Download Now
!

Thanks to all authors for creating a page that has been read 40,558 times.

08-01-2014 12:06

Potrebbero piacerti anche