I think I ran into an unadvertised feature of Apache 2.x yesterday trying to compile it with PHP 4.3.1 on Redhat 8.
The reason for this post, to save some poor soul the few hours that I lost down to what must be a bug in either PHP but more likely Apache.
First of all, if you want to compile in a typical set of modules for PHP, eg, GD, jpeg/png support, freetype2, zlib … forget it. Even though all these libs are present on Redhat 8, same as RH 7.3, what works on the latter will not compile in RH 8.