I compiled PHP 4.2.3 as an APXS module for Apache 2.0.43 with parameters --with-apxs2 and --with-mysql The compilation was successful, but Apache is unable to start. It writes out:
ns# Cannot load /usr/local/apache/modules/libphp4.so into server: /usr/local/apache/modules/libphp4.so: Undefined symbol "pthread_getspecific"
So, is it possible to use PHP with Apache 2?
Yes, it is possible. In your case, it sounds like incorrect compilation (but I'm not sure, however, pthreads is an FBSD kernel function, right?)
Since you're in FBSD, why not just install from the ports?