Jump to content

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].

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.