I thought I replied to that post... I guess not.
PHP is much, much better as a DSO. As a binary CGI, it must be called and build it's overhead for each page request. As a DSO, it's loaded into Apache's code space when Apache starts and it's there and all the overhead is already created and running.
The apxs problem is easily fixed. Just do a "make apxs" in the Apache source folder. And just install the apxs binary in the Apache bin folder. But I my own feeling you should download the latest Apache (1.3.14) and make sure you compile it with "--enable-shared=max".
Make install it and restart your Apache. Now get the PHP4 source and compile it with "--with-apxs=/usr/local/apache/bin/apxs" or whatever your path to apxs is. Even though the following settings are generally automatically assumed by PHP4, I recommend you apply them anyway because I had a copy of PHP that didn't do it correctly once. "--enable-track-vars" and "--disable-debug". Another helpful one is "--with-config-file-path=/etc" so you can put your php.ini file in /etc. At this point you can add whatever you want, like "--with-mysql" and "--with-xml" or whatever.
PHP4 will automatically adjust your httpd.conf file to enable it, all you have to do is restart Apache.
Another recommendation, go to www.Zend.com
and get their Zend Optimizer. (They make PHP). Download it and follow the instructions and install. But I don't recommend optimization level 15. I recommend 7. 15 was kinda buggy for me still and when it was working fine it didn't do too much better then 7 did.
<A HREF="http://www.netherworldrpg.net" target="_new">http://www.netherworldrpg.net</A>