Page 1 of 1

PHP and Apache 2.0

Posted: Mon May 20, 2002 3:28 am
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:

Re: PHP and Apache 2.0

Posted: Mon May 20, 2002 9:57 am
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

Posted: Mon May 20, 2002 3:42 pm
by volka
I took the lastest binaries. Just load the apache2filter.dll instead of the 'normal' .dll

Posted: Fri May 24, 2002 2:13 am
by Hagar
Thank you for the speedy reply!

1.I presume that these suggestions applies to Win2k OS.

Posted: Fri May 24, 2002 6:00 am
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

PHP and Apache 2.0

Posted: Mon Jul 08, 2002 1:50 pm
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

PHP and Apache2

Posted: Mon Jul 08, 2002 2:29 pm
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