Facing problem in PHP5 installation in Apache server 2.2

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
soumitrar
Forum Newbie
Posts: 4
Joined: Thu Feb 22, 2007 11:09 am

Facing problem in PHP5 installation in Apache server 2.2

Post 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?
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post 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
Post Reply