php as isapi on apache2

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
notAtrace
Forum Newbie
Posts: 2
Joined: Thu Jul 10, 2003 6:56 am

php as isapi on apache2

Post by notAtrace »

I have trouble running php as an isapi module on apache2. I have already configured the php.ini and placed it in the c:\windows directory. By the way, i'm using windows xp pro with apache2 and php4.3.2. In the install.txt file which came along with php, it said there to add the lines:

LoadModule php4_module c:/php/sapi/php4apache.dll
AddModule mod_php4.c
AddType application/x-httpd-php .php

to my apache httpd.conf file. So i did. Now, i can't start my apache server anymore. It pops up a message saying that the request operation has failed. The address of the php4apache.dll file is in c:\php\sapi\php4apache.dll. So I also tried using ''' rather than '/'. Still nothing.

the php4ts.dll file is in c:\php. But I don't think that this is the problem. Any help would be greatly appreciated!
notAtrace
Forum Newbie
Posts: 2
Joined: Thu Jul 10, 2003 6:56 am

Post by notAtrace »

i got it to work in apache2. instead of using

LoadModule php4_module c:/php/sapi/php4apache.dll

i used

LoadModule php4_module c:/php/sapi/php4apache2.dll

and removed

AddModule mod_php4.c

since it wasn't recongnized by the server.
Apache started but it still can't recognize my .php files. When I try to view a page.php, I can see the <?php ?> tags in the html code. The php commands weren't executed. Please help!
Post Reply