2012年11月12日

CentOS 6.3 學習筆記 (10) - 安裝 Coppermine Photo Gallery 網絡相簿

http://coppermine-gallery.net/ 下載原始碼 cpg1.5.20.zip
#unzip cpg1.5.20.zip
#cp -rf cpg15x/ /home/play/cpg/

#mysql -p
mysql>create database cpg;
建立資料庫 cpg
mysql>grant all on cpg.* to cpg;
將 cpg 資料庫的所有權限授與 cpg 這個使用者
mysql>update user set password=password('asd@123') where user='cpg';
設定使用者 cpg 的密碼為 asd@123
mysql>update user set host=’127.0.0.1’ where user=’cpg’;
設定使用者 cpg 只能從127.0.0.1登入
mysql>flush privileges;
更新記憶體資料
mysql>exit
離開

#cd /home/play/cpg/
將 "include", "albums", "albums/userpics", "albums/edit" 權限改為 777

開啟瀏覽器 http://網址/cpg/install.php

0 意見:

張貼留言