Page 1 of 1

Facing problem in PHP5 installation in Apache server 2.2

Posted: Thu Feb 22, 2007 11:32 am
by soumitrar
Hi All,
I am trying PHP with Apache server for the firsttime. I have installed Apache webserver2.2 under program files. Then unzipped PHP5.zip installatn files under PHP folder under apache2.2 folder. Then I copied the file php.ini-dist in PHP directory to windows directory ( C:\Windows) and renamed the file to php.ini.

Next, I placed php5ts.dll in other places such as :

1.In the directory where apache.exe is start from ( C:\Program Files\Apache Group\Apache2.2 \bin)

2.In whole %PATH%

Then opened the Apache configuration file in C:\Program Files\Apache Group\Apache2.2\conf\httpd.conf and add the following three lines :

LoadModule php5_module php/php5apache2.dll
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

Now restarted Apache for the changes to take effect ( Start > Programs > Apache HTTP Server 2.0.50 > Control Apache Server > Restart ).

But unfortunately, Apache now not starting.

The event log(Application) says "The Apache service named reported the following error:>>> not an Apache module DSO? ."

Can anyone suggest where lies the problem and how to solve it?

Posted: Thu Feb 22, 2007 1:51 pm
by volka
The zip package you get from http://de2.php.net/get/php-5.2.1-Win32. ... m/a/mirror cotains a php5apache2.dll suitable for apache 2.0 and a php5apache2_2.dll suitable for apache 2.2.
You need

Code: Select all

LoadModule php5_module php/php5apache2_2.dll