Exclusive Affiliate-Only Offer:
$9.99 Domain Names
Drive sales with one of the most aggressive domain offers out there: A domain and professional email account for only $9.99!
Install Php on Apache 2.2.8 Webserver running on Vista
Pag 2
Find more tutorials at
The second page is about configuring Apache for PHP.
Steps to configure Apache
Open Windows
Explorer and browse to where apache is located,and if you
followed the previous steps is C:\WebServer\Apache2.2
dbl click on the folder Conf and open the file
httpd,conf with Notepad
Fig 1
At the real
beginning of the file add the directory of the php.ini file.
PHPIniDir "C:/php5"
(see Fig 1).Remember to use slash forward in the Apache conf file.
Find LoadModule section and at the beginning of the LoadModule
list add LoadModule php5_module
"C:/php5/php5apache2_2.dll". (See Fig 2)
Fig 2
In the same way, find
AddType section
and add AddType application/x-httpd-php
.php(see Fig 3)Save the file and close it.
Restart Apache
Fig 3
Open a new
document in Notepad and type <?php
phpinfo(); ?> , then save it in C:\WebServer\Apache2.2\htdocs
as test.php,change the type of file from .txt to All Type before
you save it.Then go to your browser and open this file by typing
http://localhost/test.php in the address bar.If everything is ok
you should see the PHP info page on your screen.If it fails,go
back and review all the steps paying attention to any detail
explained in this tutorial.Consider that a simple white space
more or less may cause the failure of the entire configuration.
A nice article this is and following it step by step, i was able to finally get Apache to run on my system running Windows Vista Business. But then, to enable Apache run php scripts properly, this needs to be done:
from the c:\php5 folder, copy these .dll files (php5apache2_2.dll, php5apache2_2_filter.dll, php5apache_hooks.dll, php5ts_2.dll) and put them in the apache installation folder (C:\WebServer\bin\)