PHP5 module location on OS X

/usr/libexec/apache2/libphp5.so

and to change the loaded module edit

/Library/Server/Web/Config/apache2/httpd_server_app.conf

and look for libphp5.so