I'm new here, and just recording some of my gotchas to PHP installation in case anyone else has the same problem.
I was following the quick instructions for a static link in the php-4.1.0/INSTALL file as follows:
$ gunzip -c apache_1.3.x.tar.gz | tar xf -
$ cd apache_1.3.x
$ ./configure
$ cd ..
$ gunzip -c php-4.0.x.tar.gz | tar xf -
$ cd php-4.0.x
$ ./configure --with-mysql --with-apache=../apache_1.3.x --enable-track-vars
$ make
$ make install
$ cd ../apache_1.3.x
$ ./configure --prefix=/www --activate-module=src/modules/php4/libphp4.a
(The above line is correct! Yes, we know libphp4.a does not exist at this
stage. It isn't supposed to. It will be created.)
$ make
(you should now have an httpd binary which you can copy to your Apache bin dir if
is is your first install then you need to "make install" as well)
But when i got to the part about making Apache, the make had a lot of undefined references to things starting with mysql, etc.
It should have been obvious to me, but wasn't until i browsed farther down in the verbose part of the file, that i had misconfigured the --with-mysql flag back when i was auto-configuring PHP. As the INSTALL file explains:
For MySQL support, since newer versions of MySQL installs its various
components under /usr/local, this is the default. If you have
changed the location you can specify it with: --with-mysql=/opt/local
for example. Otherwise just use: --with-mysql
In fact, my mysql stuff was set up as /usr/mysql, not /usr/local/mysql.
When all else fails read the directions (even the verbose ones). No big deal, but i figured someone else might hit the same issue and come as far as searching this forum.
HTH someone.