To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
PHPBuilder.com  
 

 

Go Back   PHPBuilder.com > PHP Help > Install

Install Conversation regarding installation and upgrade of PHP

Reply
 
Thread Tools Rate Thread Display Modes
Old 05-18-2002, 09:13 PM   #1
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
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
Anon is offline   Reply With Quote
Old 05-19-2002, 11:57 AM   #2
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
RE: PHP 4.2.2 with Apache 2.0.36 on XP

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 ;-)
Anon is offline   Reply With Quote
Old 05-20-2002, 12:52 AM   #3
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
RE: PHP 4.2.2 with Apache 2.0.36 on XP

it's work !!!!!!!!!!

thanks
Anon is offline   Reply With Quote
Old 05-20-2002, 08:48 AM   #4
tahirn
 
Join Date: May 2002
Posts: 3
RE: PHP 4.2.2 with Apache 2.0.36 on XP

Hi,

That was great, worked fine on NT I will test it on XP later tonight, thanks again
tahirn is offline   Reply With Quote
Old 05-20-2002, 03:53 PM   #5
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
RE: SERIOUS Problem here...

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...
Anon is offline   Reply With Quote
Old 05-20-2002, 04:18 PM   #6
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
RE: SERIOUS Problem here...

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
Anon is offline   Reply With Quote
Old 05-20-2002, 04:50 PM   #7
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
RE: SERIOUS Problem here...

replace 4.2.1 with 4.2.0
and
4.2.2 with 4.2.1

;-)
Anon is offline   Reply With Quote
Old 05-20-2002, 06:37 PM   #8
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
Ok...but?

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.

:)
Anon is offline   Reply With Quote
Old 05-20-2002, 08:33 PM   #9
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
RE: Ok...but?

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
Anon is offline   Reply With Quote
Old 05-20-2002, 10:06 PM   #10
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
RE: PHP 4.2.2 with Apache 2.0.36 on XP

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?
Anon is offline   Reply With Quote
Old 05-21-2002, 08:07 AM   #11
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
RE: Ok...but?

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.

Anon is offline   Reply With Quote
Old 05-22-2002, 12:10 PM   #12
ndrtkr
 
Join Date: May 2002
Posts: 2
RE: PHP 4.2.2 with Apache 2.0.36 on XP

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!!!
ndrtkr is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 01:42 PM.






Acceptable Use Policy


The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.