#安裝
cd /usr/ports/databases/phpmyadmin
make install clean

#複製phpmyadmin到apache根目錄中(可以修改資料夾名稱)
cp -r  /usr/local/www/phpMyAdmin /usr/local/www/apache22/data/phpmyadmin

#建立phpmyadmin設定檔並修改權限
cd /usr/local/www/apache22/data/phpmyadmin
cp config.sample.inc.php config.inc.php
chmod 644 config.inc.php
Categories: FreeBSD