Click to See Complete Forum and Search --> : Cannot Install PHP4 As Apache Module - Please Help


qokepow
08-24-2006, 04:06 PM
I've successfully installed Apache 2.2.3, and wish to install PHP4 as an Apache module. Ive downloaded the relevant zip file, copied the neccessary files to C:\PHP and copied php.ini to C:\Windows.
I then added:
LoadModule php4_module "C:/php/php4apache2.dll"
to the httpd.conf file but everytime I try and restart apache after making this change, it causes an error.
Adding the "AddType application ......." line in the httpd.conf file does not seem to cause any problems.
The PHP "install.txt" help file mentions adding the reference "PHPIniDir "C:/php" to the php.ini file, but I don't know where in the apache config file this should go.

Any help on this would be very much appreciated! :queasy:

qokepow
08-24-2006, 04:20 PM
Oops, just read the thread below. It's working fine now, thank god. Still not sure about defining the directory to php.ini though? I havent included it as I'm not exactly sure where to, but everything seems to be working fine. Will this cause any problems?

JCBarry
08-25-2006, 04:54 PM
You can define the directory at the bottom of your httpd.conf file with:
PHPIniDir "C:/PHP"