PHP and Apache 2.0
Moderator: General Moderators
PHP and Apache 2.0
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! 
- chiefmonkey
- Forum Commoner
- Posts: 25
- Joined: Sat Apr 20, 2002 5:21 am
- Location: Glasgow UK
Re: PHP and Apache 2.0
I have 4.2.1 running with apache2 I just compiled PHP with the --with=apxs2=/path/to/apache/apxsHagar 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!
then added
AddType Application/x-httpd-php .php
to the httpd.conf file
George
this one is for linux/solaris/...I have 4.2.1 running with apache2 I just compiled PHP with the --with=apxs2=/path/to/apache/apxs
take a look at the user contributed notes for Details of installing PHP with Apache on Unix
PHP and Apache 2.0
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
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
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
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