@kasse, you've already got your answer here.
An example from my FBSD box:
Code:
mrbig# cd /usr/ports/lang/php5 && make showconfig
===> The following configuration options are available for php5-5.2.6_2:
CLI=off "Build CLI version"
CGI=on "Build CGI version"
APACHE=on "Build Apache module"
DEBUG=off "Enable debug"
SUHOSIN=off "Enable Suhosin protection system (not for jails)"
MULTIBYTE=off "Enable zend multibyte support"
IPV6=off "Enable ipv6 support"
MAILHEAD=off "Enable mail header patch"
REDIRECT=off "Enable force-cgi-redirect support (CGI only)"
DISCARD=off "Enable discard-path support (CGI only)"
FASTCGI=on "Enable fastcgi support (CGI only)"
PATHINFO=on "Enable path-info-check support (CGI only)"
===> Use 'make config' to modify these settings
mrbig# locate libphp5.so
/usr/local/libexec/apache22/libphp5.so
OK?