Page 1 of 1

php as isapi on apache2

Posted: Thu Jul 10, 2003 6:56 am
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!

Posted: Thu Jul 10, 2003 10:58 pm
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!