PDA

View Full Version : Help with the php4.2 installation on redhat 7.2 with apache2


joe.somebody
08-25-2002, 08:02 AM
Dear All,

I am new for the php and just want to get my hands on it. I tried to install the php4.2 on my redhat 7.2 with apache 2.
I used the following command to do the configure, it is OK.
./configure --with-mysql --with-pgsql --with-marray --with-apxs2=/usr/local/apache2/bin/apxs
But when I did the make there is always an error message said the following:
make[3]: *** [sapi_apache2.lo] Error 1
make[3]: Leaving directory `/local/backup/software/php/php-4.1.2/sapi/apache2filter'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/local/backup/software/php/php-4.1.2/sapi/apache2filter'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/local/backup/software/php/php-4.1.2/sapi'
make: *** [all-recursive] Error 1It is due to the /local/backup/software/php/php-4.1.2/sapi/apache2filter/php_functions.c
In the line 93 of this program, the code is like the following:
#if !MODULE_MAGIC_AT_LEAST(20020506,0)
ADD_STRING(boundary);
#endif
The error message said that "php_functions.c:93:27: missing binary operator before '!' "
I really don't know what is wrong with it.
Does anybody can give me some advice? Thanks in advance!!

Regards,
Joe

firepages
08-25-2002, 11:37 AM
hi the PHP SAPI module for apache2 in PHP is still experimental as far as I know so why not use 1.3.26 ?

anyway - I have seen this posted around more than once so its worth a try...

change line 93 of /sapi/apache2filter/php_functions.c

#if !MODULE_MAGIC_AT_LEAST(20020506,0)

to

#if !AP_MODULE_MAGIC_AT_LEAST(20020506,0)

joe.somebody
08-26-2002, 05:17 PM
Thank you, Firepages!
I changed to Apache 1.3.26 and it works fine!
Seems that the php is not ready for apache 2.