安裝完FAMP後 接下來使用網頁管理 mysql 的部分 所以通常我的都是使用 phpmyadmin來做管理
# cd /usr/ports/databases/phpmyadmin/
# vmake install clean
****************************************************************************
===> Adjusting file ownership in /usr/local/www/phpMyAdmin
phpMyAdmin-suphp-3.5.3 has been installed into:
/usr/local/www/phpMyAdmin
Please edit config.inc.php to suit your needs.
To make phpMyAdmin available through your web site, I suggest
that you add something like the following to httpd.conf:
Alias /phpmyadmin/ "/usr/local/www/phpMyAdmin/"
<Directory "/usr/local/www/phpMyAdmin/">
Options none
AllowOverride Limit
Order Deny,Allow
Deny from all
Allow from 127.0.0.1 192.168.0.0/16 .example.com
</Directory>
****************************************************************************
修改apache 設定檔
# vi /usr/local/etc/apache22/httpd.conf
Alias /phpmyadmin/ "/usr/local/www/phpMyAdmin/"
<Directory "/usr/local/www/phpMyAdmin/">
Options none
AllowOverride Limit
Order Deny,Allow
Deny from all
Allow from 127.0.0.1 192.168.0.0/16 .example.com
</Directory>
重新啟動 apache22
/usr/local/etc/rc.d/apache22 restart
連接你的主機
http://your.ip.address/phpmyadmin
打開網頁 就可以看到管理程式頁面
沒有留言:
張貼留言