Your friend most likely needs to install the php extensions (/usr/ports/lang/php5-extensions from the FreeBSD ports collection. Make sure MySQL support is among the options enabled, which I believe it is by default. There may or may not also have to be some hcanges made in the web server’s config file (httpd.conf). Due to that, it would almost be easier to uninstall php as it exists right now and install mod_php5, which will make those changes for you automatically, but in either case, the php extensions will still have to be installed, I’m pretty sure.