I've been struggling for days trying to get php4 and apache2 to get along.
What I have:
linux 7.2
httpd-2.0.39
php-4.2.1
I can get apache2 to work fine but when I try to get the php4 module to work with it I get make/make install errors.
How I installed Httpd/Apache2 (in the src dir):
1) ./configure --enable-module=rewrite
--enable-module=so
--prefix=/usr/local/soft/apache2
--sysconfdir=/www/conf
2) make
3) make install
Ok, that worked and I could start-up the server and see the webpage. Now the tricky part, getting the php4 module to work with apache2.
How I installed php4 (in the src dir):
1) ./configure
--with-mysql=/usr/local/mysql/
--with-apxs2=/usr/local/soft/apache2/bin/apxs
--enable-track-var
2) make <---HERE IS WHERE THINGS GOT STICKY
3) make install
Upon "make"ing, I got an error part way through that looked like this:
php_functions.c:93:27: missing binary operator before '!'
make[3]: [php_functions.lo] Error 1
make[3]: Leaving directory /usr/local/src/php-4.2.1/sapi/apache2filter'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory/usr/local/src/php-4.2.1/sapi/apache2filter'
make[1]: [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/php-4.2.1/sapi'
make: *** [all-recursive] Error 1
PLEASE help me. There must be an expert somewhere that can help! =/ I swear I'm losing hair (which at age 16 is quiet scary) over this matter. Thanx!