Jump to content

Problems with Windows installation and Apache


Recommended Posts

Hello all,

 

I'm quite new to this tecchie stuff, so you may have to bear with me a bit.

 

Right, so to give a little back story I am attempting to set up Apache, PHP and MySQL on a machine running Windows XP but running into a problem when installing the latest version of PHP as it doesn't come up with the option for me to configure it for Apache during the installation process and thus when I try and test it with a php info script it comes up saying HTTP 404 error.

 

Any ideas what's going on here and how to resolve it? (I'd quite like to find a way to resolve this before resorting to just installing WAMP so that I know for future reference).

 

Thanks

Don't use the installer for installing PHP. Just download the the zipped binaries package from php.net. Extract the contents of the zip file to C:\php

 

Next open Apaches configuration file (Start > Apache HTTP Server > Configure Apache Server > Edit the Apache httpd.conf Configuration File)

 

Scroll to the very bottom of the httpd.conf and add the following lines:

LoadModule php5_module "C:/PHP/php5apache2_2.dll"
AddType application/x-httpd-php .php

Save the the httpd.conf and restart Apache.

 

NOTE: I assume you have installed Apache2.2.x, if you have installed Apache2.0.x then you'll need to change php5apache2_2.dll to php5apache2.dll, for the LoadModule line[/b].

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.