PHP and Apache 2.0

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
Hagar
Forum Newbie
Posts: 18
Joined: Mon May 20, 2002 3:28 am
Location: Johannesburg, South Africa

PHP and Apache 2.0

Post by Hagar »

Has anybody setup PHP on Apache 2.0. If you did how and what did you do on the httpd.config file to get this right! :oops:
User avatar
chiefmonkey
Forum Commoner
Posts: 25
Joined: Sat Apr 20, 2002 5:21 am
Location: Glasgow UK

Re: PHP and Apache 2.0

Post by chiefmonkey »

Hagar wrote:Has anybody setup PHP on Apache 2.0. If you did how and what did you do on the httpd.config file to get this right! :oops:
I have 4.2.1 running with apache2 I just compiled PHP with the --with=apxs2=/path/to/apache/apxs

then added
AddType Application/x-httpd-php .php
to the httpd.conf file

George
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

I took the lastest binaries. Just load the apache2filter.dll instead of the 'normal' .dll
Hagar
Forum Newbie
Posts: 18
Joined: Mon May 20, 2002 3:28 am
Location: Johannesburg, South Africa

Post by Hagar »

Thank you for the speedy reply!

1.I presume that these suggestions applies to Win2k OS.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

I have 4.2.1 running with apache2 I just compiled PHP with the --with=apxs2=/path/to/apache/apxs
this one is for linux/solaris/...
take a look at the user contributed notes for Details of installing PHP with Apache on Unix
Gordo
Forum Newbie
Posts: 2
Joined: Mon Jul 08, 2002 1:50 pm
Location: Ottawa, Canada

PHP and Apache 2.0

Post by Gordo »

volka stated that he/she used apache2filter.dll instead of the 'normal' one. I cannot locate any such file in the 4.2.1 binaries zip file. I have loaded php4apache2.dll as in

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

However, when I try to start apache I get this error

apache: module "c:\php4build\snap\sapi\apache2filter\sapi_apache2.c" is not compatible with this version of Apache.

I do not even have php4build on the machine and the apache configuration does not mention this.

Sorry for the newbie question but that is what I am.

Ciao
Gordo
Forum Newbie
Posts: 2
Joined: Mon Jul 08, 2002 1:50 pm
Location: Ottawa, Canada

PHP and Apache2

Post by Gordo »

Futher to my last message.

I found this

http://www.phpbuilder.com/forum/read.ph ... hread=7827

which told me to get a new php4apache2.dll

I picked it up from here

http://ftp.proventum.net/pub/php/win32/

Ciao
Post Reply