Web Hosting Talk







View Full Version : apache 2.0.39 + php 4.2.1


clocker1996
06-27-2002, 03:57 PM
Am I doing something wrong..?

i'm trying to get apache 2.0.39 to work, with php 4.2.1

here's what i'm doing

first cd'ing into the apache dir
doing this:

./configure --enable-auth-dbm --disable-log-config --enable-proxy --enable-proxy-connect --enable-proxy-http --enable-ssl --enable-http --enable-info --enable-cgi --enable-cgid --enable-vhost-alias --enable-so --with-ssl --enable-suexec --with-suexec-caller=nobody --with-suexec-docroot=/mspace --with-suexec-
userdir=htdocs --with-suexec
safepath=/usr/local/bin:/usr/bin:/bin --with-suexec-logfile=/var/log/suexec_log --prefix=/usr/local/apache2

Then i'm doing make, make install -- works perfectly.

then cd'ing out and into the php 4.2.1 dir

and i'm doing this:
./configure --with-mysql --with-apxs2=/usr/local/apache2/bin/apxs --enable-track-vars


and php will compile for awhile, then it errors

/bin/sh /home/dev/ap2.0/php-4.2.1/libtool --silent --mode=compile gcc -I. -I/home/dev/ap2.0/php-4.2.1/sapi/apache2filter -I/home/dev/ap2.0/php-4.2.1/main -I/home/dev/ap2.0/php-4.2.1 -I/usr/local/apache2/include -I/home/dev/ap2.0/php-4.2.1/Zend -I/home/dev/ap2.0/php-4.2.1/ext/mysql/libmysql -I/home/dev/ap2.0/php-4.2.1/ext/xml/expat -D_REENTRANT -I/home/dev/ap2.0/php-4.2.1/TSRM -DTHREAD=1 -g -O2 -pthread -DZTS -prefer-pic -c php_functions.c
php_functions.c:93:27: missing binary operator before '!'
make[3]: *** [php_functions.lo] Error 1
make[3]: Leaving directory `/home/dev/ap2.0/php-4.2.1/sapi/apache2filter'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/dev/ap2.0/php-4.2.1/sapi/apache2filter'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/dev/ap2.0/php-4.2.1/sapi'
make: *** [all-recursive] Error 1

Has anyone got this? Surely someone has...? Am i the only one? Could someone help me out, maybe i am doing something wrong..

any help is appreciated.

clocker1996
06-27-2002, 03:57 PM
i was able to with apache 2.0.36 though, but .39 is giving me problems..

webx
06-28-2002, 02:53 AM
Looks like you are alone :o

ToTheMax
06-28-2002, 06:04 AM
There are some discussion about this issue at this site http://www.php.net/manual/en/install.apache.php

clocker1996
06-28-2002, 07:24 AM
Sorry Max, i've read that, none of that does anything for me.

Thanks for trying to help though.

That stuff is mostly AFTER compiling, and what not

I can't even get php to compile to begin with.

Shyne
06-28-2002, 08:47 PM
You can try compiling php as a static module.

clocker1996
06-28-2002, 10:41 PM
No, I dont believe you can do that yet with apache 2.0
can't do --with-apache=../httpd-2.0.39

etc

clocker1996
06-28-2002, 10:42 PM
--with-apache[=DIR] Build Apache 1.x module. DIR is the top-level Apache
build directory, defaults to /usr/local/apache.

ktuskey
06-29-2002, 12:43 AM
From what the PHP source developers have told me, PHP will not officially support Apache 2 until version 4.3. For this reason, I would not suggest using this setup in a production level scenario. I do know that they have built in experimental support, but a lack of official stability has prevented us from using it on customer machines. I would suggest the same for others.


Kyle Tuskey