Jump to content

Having trouble installing PHP


dennylin93

Recommended Posts

I recently installed Apache 2.2 and PHP 5.2 on my computer, and it works but there are a few problems. I am not sure where to modify the Apache httpd.conf Configuration File. On php.net (http://www.php.net/manual/en/install.windows.apache2.php) it says that you have to add the 3 lines below:

LoadModule php5_module "c:/php/php5apache2_2.dll"AddType application/x-httpd-php .php# configure the path to php.iniPHPIniDir "C:/php"

I successfully added:

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

but I do not know where to add

# configure the path to php.iniPHPIniDir "C:/php"

Could someone please tell me where to add it? I put the httpd.conf file at http://www.freewebtown.com/dennylin93/httpd.conf PHP works on my computer right now, but I don't know if anything will go wrong without the last line I didn't add.Thanks in advance.

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