Connection error of phpMyAdmin ( MacPorts )

If you have below error, you should see 1~3 step.

You don't have permission to access /phpmyadmin/ on this server.

1. If you do not install phpMyAdmin yet, install by below command.

% sudo port install phpmyadmin +php54[55][56]

2. Does your setting match?

// Setting Apache

% sudo vi /opt/local/apache2/conf/httpd.conf

// Add below setting

AliasMatch ^/phpmyadmin(?:/)?(/.*)?$ "/opt/local/www/phpmyadmin$1"
<Directory "/opt/local/www/phpmyadmin">
    Options -Indexes
    AllowOverride None
    Order Allow,Deny
    Allow from all
    Allow from
    LanguagePriority en de es fr ja ko pt-br ru
    ForceLanguagePriority Prefer Fallback

3. You must not change authorization of directly otherwise you have error.

You must not do it as follows

% sudo chmod -R 777 /opt/local/www/phpmyadmin

% sudo chmod -R 775 /opt/local/www/phpmyadmin