/usr/ports/databases/phpmyadmin
MySQLサーバーのwebインターフェース。
# cd /usr/ports/databases/phpmyadmin # portinstall
でOK。
# /usr/local/www/phpMyAdmin # cp ./libraries/config.default.php config.inc.php
でconfig.inc.phpを編集。最低限下記で動かせます。
$cfg['PmaAbsoluteUri'] = 'https://URL/ほげほげ'; $cfg['Servers'][$i]['port'] = '3306'; $cfg['Servers'][$i]['password'] = '(mysqlのrootのパスワード)'; $cfg['DefaultLang'] = 'ja';
https://URL/ほげほげでアクセスしたいので、/usr/local/etc/apache22/extra/http-ssl.confに下記追記。
Alias /ほげほげ "/usr/local/www/phpMyAdmin" AllowOverride All Options FollowSymLinks ExecCGI Includes Allow from All
当然、/usr/local/www/phpMyAdminに.htaccessを置いてベーシック認証をかけるべし。
参考リンク: phpMyAdmin 設置手順