I got the silly Apache/Advanced Extranet Server package from Mandrake and installed that as my webserver. PHP3 worked no problem out of the box. Then I tried PHP4. I tried several RPMs before giving up.
Apache would restart fine with no errors in error_log. Great. But if I requested a .php page, child processes of Apache would start segfaulting. This is a problem I don't know how to fix, so I removed the php RPMs and downloaded the source. It compiled cleanly AFAIK, and I did a 'make install' to get going.
Apache just pukes while trying to load the module I compiled:
Cannot load /etc/httpd/modules/libphp4.so into server: /etc/httpd/modules/libphp4.so: undefined symbol: __dn_expand
What the hell is that? It compiled cleanly... does Apache not recognize this as a valid module for some odd reason? My hair is turning grey.