cd /usr/ports/databases/phpmyadmin make install clean
Секция в nginx выглядит следующим образом
location /pma {
alias /usr/local/www/phpMyAdmin;
}
location ~ ^/pma/(.+\.php)$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME /usr/local/www/phpMyAdmin/$1;
fastcgi_param DOCUMENT_ROOT /usr/local/www/phpMyAdmin;
}