phpMyAdminのインストールと設定
$ sudo port install phpmyadmin
/opt/local/www/phpmyadmin/config.inc.phpに以下を追加。
$cfg['Servers'][$i]['socket'] = '/opt/local/var/run/mysql5/mysqld.sock';
connect_typeをtcpからsocketに変更。
$cfg['Servers'][$i]['connect_type'] = 'socket';
blowfish_secretに46文字以内で文字列を指定。
Apacheの設定
/opt/local/apache2/conf/httpd.confに以下を追加
<Directory /opt/local/www/phpmyadmin>
Options FollowSymLinks
AllowOverride All
Order deny,allow
Deny from all
Allow from all
</Directory>
Alias /phpmyadmin /opt/local/www/phpmyadminRelated posts: