Jump to content

Installing PHP with Apache


ThePsion5

Recommended Posts

I've been beating myself up trying to install PHP with an Apache server, and no matter what I try nothing seems to work. I'm running Windows XP with Apache version 2.0.55, I've tried installing PHP 4.4.2 and PHP 5.1.2 and so far nothing's worked. I've moved the various DLL files into the system folder, added the "C:\PHP" line to the PATH variable, added all the needed lines of code to the Apache config file, and so far it's either broken Apache or simply not worked. Has anyone else encountered these problems, and if so what did you do to solve them? So far the guides I've found online have been virtually useless.

Link to comment
Share on other sites

Update:I downloaded the complete PHP 5.1.2 install, and added these two commands to the httpd file:LoadModule php5_module "c:/PHP/php5apache2.dll"AddType application/x-httpd-php .phpPHPIniDir "C:/ PHP"After this, the apache service monitor (at the bottom of the window) but php commands still don't work. A tutorial said that I should add the line "AddModule mod_php5.c" to the config file, but when I do Apache crashes upon starting/restarting. Any Ideas?(Sorry to double post)

Link to comment
Share on other sites

I also tried this out a while ago. As I was encountering frustration like you, I felt like it wasn't really worth it :)You could probably find your mistakes if you want, but I think that it's easiest to download an all-in-one package, like WAMP (http://www.en.wampserver.com/download.php). It even has a nice little interface that allows you to easily enable/disable the services.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...