storm_dancer Posted July 9, 2008 Share Posted July 9, 2008 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 Quote Link to comment https://forums.phpfreaks.com/topic/113877-problems-with-windows-installation-and-apache/ Share on other sites More sharing options...
wildteen88 Posted July 9, 2008 Share Posted July 9, 2008 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]. Quote Link to comment https://forums.phpfreaks.com/topic/113877-problems-with-windows-installation-and-apache/#findComment-585638 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.