Click to See Complete Forum and Search --> : [RESOLVED] PHP Install error


naskar
05-20-2007, 10:50 AM
Hi there I manually installed PHP and Apache. I copied the php.ini file to my Windows System32 folder and the same with php5ts.dll

However when I edit my Apache's http.conf file to include the

LoadModule php5_module "c:/PHP/php5apache2.dll"

When I try to start Apache i get an error saying "Module not found"

Anyone able to help me out with this?

bradgrafelman
05-20-2007, 11:20 AM
I copied the php.ini file to my Windows System32 folder and the same with php5ts.dllYou should never copy PHP-related files to a system directory (or any other directory outside of the main c:\PHP\ directory)! Move these files back to your c:\PHP\ directory.

Then, make sure you've added the PHP directory to your system's PATH environment variable (instructions here (http://www.php.net/manual/en/faq.installation.php#faq.installation.addtopath)).

After you add the PHP directory to the PATH variable, restart your computer and let us know if that works.

Also, to get PHP to read your php.ini file, you simply need to add a PhpIniDir line in your Apache's httpd.conf file as shown on this manual page: install.windows.apache2

naskar
05-20-2007, 11:56 AM
Thanks for the reply Brad.

I did all that but it still fails to find the module.

:( I downloaded the PHP files and extracted them all into C:/PHP

HTTPD conf file has

"AddType application/x-httpd-php .php
PHPIniDir "C:/PHP""

just like the article said

and I added it to the systems path variable. Still it's not finding the module :(

naskar
05-20-2007, 11:59 AM
Do i have to change settings in the PHP.INI file ... Document root or something?

naskar
05-20-2007, 12:11 PM
Okay I did some reading here (http://au.php.net/install.windows.apache2)

I changed

LoadModule php5_module "c:/PHP/php5apache2.dll"

to

LoadModule php5_module "c:/PHP/php5apache2_2.dll"

And it works!!...

Why didn't it work with the previous setting?

bradgrafelman
05-20-2007, 12:13 PM
Because the php5apache2.dll is for Apache 2.0.x, whereas the php5apache2_2.dll is for Apache 2.2.x.

Don't forget to mark this thread resolved.