I installed apache server 2.2.19 on a vista machine. It had been running fine however i attempted to configure it to make use of php by modifying the httpd.conf file. Fundamental essentials lines I added

AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
PHPIniDir “C:\PHP”

I added this below this line

AddType application/x-gzip .gz .tgz

I additionally added this line

LoadModule php5_module “C:\PHP\php5apache2_2.dll”

I added this below this line

#LoadModule vhost_alias_module modules/mod_vhost_alias.so

I attempted to restart the apache server but each time i actually do therefore it returns a mistake message the asked for operation has unsuccessful. What is the issue?

I don´t have knowledge about setting up it on home windows, however the following lines appear very wrong in my experience:

PHPIniDir “C:\PHP”
LoadModule php5_module “C:\PHP\php5apache2_2.dll”

Is the fact that really that which you added? If it's, I recommend altering it to:

PHPIniDir "C:\PHP"
LoadModule php5_module "C:\PHP\php5apache2_2.dll"

Note that i'm using " rather than the curly is quoting you are utilizing.

If you're getting problems I recommend just installing Xampp for Windows. It requires the manual steps from setting up the separate components.

Normaly, this is the way you'd setup PHP under Apache...

(adjust for the pathways)

LoadFile "D:/WampDeveloper/Components/Php/php5ts.dll"
LoadModule php5_module "D:/WampDeveloper/Components/Php/php5apache2_2.dll

<IfModule php5_module>

PHPIniDir "D:/WampDeveloper/Config/Php"

    <Directory "D:/WampDeveloper/Websites/*/webroot">
        AddType text/html .php .php4 .php5 .phps
        AddHandler application/x-httpd-php .php .php4 .php5
        AddHandler application/x-httpd-php-source .phps
    </Directory>
</IfModule>

You is going to do better to utilize a pre-made Apache, PHP, and MySQL solution for Home windows.

XAMPP

WampServer

WampDeveloper Pro