PHP on Apache 2.2.x how to use?

0

Issue

I am using Windows XP SP3. I have installed Apache 2.2.9 followed by PHP 5.3 VC6.
I am able to view any plain html on localhost but i can’t do so for php files.
Please help

Solution

You need to configure Apache to use PHP for .php files:

 # load module and add handler
 LoadModule php5_module "c:/php/php5apache2.dll"
 AddHandler application/x-httpd-php .php

 # configure the path to php.ini
 PHPIniDir "C:/php"

Answered By – spankmaster79

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave A Reply

Your email address will not be published.

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More