cd /usr/ports/databases/phpmyadmin && make install clean
Manually (any platform):
Download phpMyAdmin, unzip in the Apache Document Root folder (or use the Alias configuration option in Apache if you want to use another folder).
Optionally rename the extracted phpMyAdmin-x.y.z folder to a name easier to rename, let's say phpmyadmin.
Configure phpMyAdmin: cd to the phpMyAdmin directory, which is /usr/local/www/phpMyAdmin/ if you installed the FreeBSD port. cp libraries/config.default.php config.inc.php
Edit config.inc.php: