Click to See Complete Forum and Search --> : PHP 4.2.2 with Apache 2.0.36 on XP
Hi there,
Could anyone please help me with installation of PHP on APache, I have installed previous versions and they work fine. The problem I am having on XP is that everytime I edit httpd.conf with
LoadModule php4_module c:/php/sapi/php4apache.dll
AddModule mod_php4.c
AddType application/x-httpd-php .php
and start Apache it doesnt seem to start, the error logs dont help much either. Has anyone been successful with compiling these together. If you have could you please tell me what I need to do. Thanks very much
This is all I need in my httpd.conf to have php 4.2.1 with apache 2.0.36 on NT4
LoadModule php4_module c:/php-4.2.1-Win32/sapi/php4apache2.dll
<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
And of course copy c:/php-4.2.1-Win32/php4ts.dll
to ur winnt\system32 directory
Then it should work,
yves
p.s. php4.2.2 is not out yet ;-)
it's work !!!!!!!!!!
thanks
tahirn
05-20-2002, 08:48 AM
Hi,
That was great, worked fine on NT I will test it on XP later tonight, thanks again
I am trying to install PHP with Apache 2 on Windows 2000. I thoguht I had found the answer with this thread, but it appears not...
My PHP is kept at d:/Web/PHP. Even though the path is correct in httpd.conf, and the .dll is in system32, (I have also tried with c:/PHP - same prob) it will not load with the PHP lines included in the file, either those which come with PHP or the lines above...however, I do notice that the lines in the above post use the file "php4apache2.dll" rather than "php4apache.dll." I am running Apache 2 with PHP 4.2.1 and don't seme to have php4apache2.dll. Is this the reason it is not working? And if so, where can I get it?
Thanks for your help...
u have to use another dll for php4.2.1
it is in the "experimental" direcory
and it's called apache2filter.dll or something like that.
php4apache.dll was introduced with php 4.2.2
yves
replace 4.2.1 with 4.2.0
and
4.2.2 with 4.2.1
;-)
OK...
But so what? I have version 4.2.1 (which includes php4apache.dll). I have tried replacing the line in httpd.conf with apache2filter.dll and it has had no effect. I'm afraid that I'm rather a newbie with both Apache and PHP and so will need a little bit more guidance.
:)
If you look inside your PHP installation within Sapi folder you should have both php4apache.dll and php4apache2.dll, let me know if you dont have and I can mail it to you
i'm using php 4.2.1 on apache 2.0.36 with windows xp, i have set it up to use the sapi module, php4apache2.dll and when i try loading a page with php on it it just shows up a blank page. i made sure to add the section in my httpd.conf file to parse .php pages so it should work right?
Despite having the latest version of PHP, I do not have php4apache2.dll. I have found nowhere which will let me download it. If you could email it to me (address above) I will love you for ever. Strictly virtual, of course.
ndrtkr
05-22-2002, 12:10 PM
make sure you are Loading the module with the correct path specified! i had the same problem this morning and just added single quotes to the path!!!
LoadModule php4_module 'c:/Program Files/PHP/sapi/php4apache2.dll'
###Then i loaded this other support module:
LoadModule php4_module mod_php4-4.1.2-module-mysql-ftp-imap-freetype-gd.so
### and as Scott said:
<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
### and this types regs
AddType application/x-httpd-php .php .php4 .phtml
AddType application/x-httpd-php-source .phps
obviously remember to copy the php4ts.dll to the system32 dir!!!
PHP Builder
Copyright WebMediaBrands Inc. All Rights Reserved.