2015-05-13
phpbb 官方網站
https://www.phpbb.com/
3.1.4英文原版 直接下載
https://www.phpbb.com/files/release/phpBB-3.1.4.zip
https://www.phpbb.com/files/release/phpBB-3.1.4.tar.bz2
[2015-05-08] phpBB 3.1.4 完整包 (包含 3.1.4 英文版 + 繁體中文介面)
https://www.phpbb.com/customise/db/translation/mandarin_chinese_traditional_script/
[2015-05-08] phpBB 3.1.4 完整包 (包含 3.1.4 英文版 + 繁體中文介面) 直接下載 <== 本次測試使用,但是實測結果,安裝第一個畫面根本沒有 "正體中文" 可以選
http://1.34.15.69/temp/phpBB-3.1.4.zip
後來另外又做了兩個測試
[2015-05-08] phpBB 3.1.4 完整包 + CentOS 6.6 x64,也沒有 "正體中文" 可選
[2015-05-06] phpBB 3.0.14 完整包 + CentOS 6.6 x64,有 "正體中文" 可選,正常
繁體中文支援網站 - 竹貓星球
http://phpbb-tw.net/phpbb/
正體中文語言包
https://www.phpbb.com/customise/db/translation/mandarin_chinese_traditional_script/
資料庫名稱:phpbbDB
資料庫帳號:phpbbUser
資料庫密碼:phpbbPassword
可以依據自己喜好變更 (記得要修改快速安裝程式內容)
快速安裝程式 phpbb3.1.4_centos7.1x64_install.sh 建立和執行方法如下
* 你可以用 putty.exe 連上 CentOS,執行
vi phpbb3.1.4_centos7.1x64_install.sh
把內容貼上,執行
chmod +x *.sh
變成可執行,再執行
./phpbb3.1.4_centos7.1x64_install.sh
* 或在 MS-Windows 上寫好,用 WinSCP.exe 丟到 CentOS,執行下面命令安裝dos2unix
yum -y install dos2unix
再執行dos2unix 把 .sh 轉成轉成 Unix-Like 格式
dos2unix ./phpbb3.1.4_centos7.1x64_install.sh
再執行下面安裝程式
./phpbb3.1.4_centos7.1x64_install.sh
# phpbb3.1.4_centos7.1x64_install.sh echo -e "\033[31;42m ********** Install phpbb 3.1.4 on CentOS 7.1 x64 ********** \033[0m" echo -e "\033[31m 2015-05-13 ********** \033[0m" # CentOS 7.0 上 systemctl/service 和 iptable 有相容 Bug,請改用 systemctl 和 firewalld # 先啟動,才能設定 systemctl restart firewalld #要暫時開放 http port,可執行 # firewall-cmd --add-service=http #要永久開放 http port,可執行 firewall-cmd --permanent --add-service=http firewall-cmd --permanent --add-port=22/tcp systemctl restart firewalld firewall-cmd --list-all #要停掉 #systemctl stop firewalld
#常用 firewall-cmd 命令
# firewall-cmd --state# firewall-cmd --list-all # firewall-cmd --list-interfaces # firewall-cmd --get-service # firewall-cmd --query-service service_name # firewall-cmd --add-port=8080/tcp #service iptables start #iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT #iptables -A INPUT -p icmp -j ACCEPT #iptables -A INPUT -i lo -j ACCEPT #iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT #iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT #iptables -A INPUT -j REJECT --reject-with icmp-host-prohibited #iptables -A FORWARD -j REJECT --reject-with icmp-host-prohibited # save iptables firewall rules to /etc/sysconfig/iptables # iptables-save or service iptables save #service iptables save # check rules after iptables restart #service iptables restart # show all rules # service iptables status or iptables -L #service iptables status if [ "`cat /proc/version | grep centos | grep el7`" != "" ]; then OS="CentOS 7.x" echo "Detection your OS is CentOS 7.x" else echo "[ERROR] Only Support CentOS 7.x" exit fi # Check SELinux status if [ "`grep SELINUX=disabled /etc/selinux/config`" == "" ]; then # disable SELinux now /usr/sbin/setenforce 0 # disable SELinux after every reboot # echo "/usr/sbin/setenforce 0" >> /etc/rc.local #or # disable SELinux always sed -i -e "s@SELINUX=enforcing@#SELINUX=enforcing@" /etc/selinux/config sed -i -e "s@SELINUX=permissive@#SELINUX=permissive@" /etc/selinux/config sed -i -e "/SELINUX=/aSELINUX=disabled" /etc/selinux/config cat /etc/selinux/config | grep SELINUX fi # Kill nptd on running... ProcessID="`ps aux | grep ntpd | awk '{print $2}' `" for i in $ProcessID do echo $i kill -9 $i done ntpdate tick.stdtime.gov.tw # Kill yum on running... ProcessID="`ps aux | grep yum | awk '{print $2}' `" for i in $ProcessID do echo $i kill -9 $i done if [ "`grep SELINUX=disabled /etc/selinux/config`" == "" ]; then /usr/sbin/setenforce 0 echo "/usr/sbin/setenforce 0" >> /etc/rc.local fi # CentOS 7.0 用 MariaDB 取代 MySQL #yum -y install mysql mysql-server httpd php php-mysql php-mbstring php-gd yum -y install mariadb mariadb-server httpd php php-mysql php-mbstring php-gd #chkconfig httpd on systemctl enable httpd #chkconfig mysqld on systemctl enable mariadb #service httpd restart systemctl restart httpd #service mysqld restart systemctl restart mariadb if test -f phpBB-3.1.4.zip then echo "phpbb 3.1.4.zip exist" else yum -y install wget #wget https://www.phpbb.com/files/release/phpBB-3.0.12.tar.bz2 wget http://1.34.15.69/temp/phpBB-3.1.4.zip fi unzip phpBB-3.1.4.zip -d /var/www/html
mv /var/www/html/phpBB-3.1.4/phpBB3 /var/www/html/phpbb
mysql -e "show databases; " mysql -e "grant all on phpbbDB.* to phpbbUser@localhost; " mysql -e "set password for phpbbUser@localhost=password('phpbbPassword'); " mysql -e "flush privileges; " mysql -e "use mysql; select Host,User,Password from user; " chmod a+w /var/www/html/phpbb/config.php chmod a+w -R /var/www/html/phpbb/cache chmod a+w -R /var/www/html/phpbb/files chmod a+w -R /var/www/html/phpbb/store chmod a+w -R /var/www/html/phpbb/images/avatars/upload # 檢查 3.0.12 中文相關目錄 #[root@localhost ~]# find /var/www/html/phpbb -name zh_cmn_hant # 結果應該這樣 #/var/www/html/phpbb/language/zh_cmn_hant #/var/www/html/phpbb/styles/prosilver/imageset/zh_cmn_hant #/var/www/html/phpbb/styles/subsilver2/imageset/zh_cmn_hant # ------------------------------------------------------------ # 3.1.4 版的目錄似乎有變化 [root@localhost ~]# find / -name zh_cmn_hant find: ‘/run/user/1000/gvfs’: Permission denied /var/www/html/phpbb/language/zh_cmn_hant /var/www/html/phpbb/styles/prosilver/theme/zh_cmn_hant /var/www/html/phpbb/styles/subsilver2/theme/zh_cmn_hant # ------------------------------------------------------------ # 上面做好後,手動啟動瀏覽器,輸入 http://localhost/phpbb # firefox http://localhost/phpbb & # echo "When you finish Web-based Installation, press any key to continue ..." # read |
接下來進行 Web 介面安裝設定
(下圖) 沒有 "正體中文" 可切換,"完整包" 有 Bug 嗎 ? 還是有其他原因 ?
(下圖) 如果出現有紅色 Unwritable 訊息,請檢察寫入權限
chmod a+w /var/www/html/phpbb/config.php
chmod a+w -R /var/www/html/phpbb/cache
chmod a+w -R /var/www/html/phpbb/files
chmod a+w -R /var/www/html/phpbb/store
chmod a+w -R /var/www/html/phpbb/images/avatars/upload
修改後按下 F5 更新畫面
(下圖) 照網頁說面刪除 install 目錄,拿掉 config.php 寫入權限
rm -fr /var/www/html/phpbb/install
chmod a-w /var/www/html/phpbb/config.php
(下圖) 按下 F5 更新網頁畫面,警告訊息該消失了
安裝完畢,只是不是中文版。
(完)
相關文章
[研究] phpBB 3.1.4 完整包-論壇快速安裝程式 (CentOS 7.1 x86_x64)
http://shaurong.blogspot.com/2015/05/phpbb-314-centos-71-x86x64.html
[研究] phpBB 3.0.14 完整包-論壇快速安裝程式 (CentOS 6.6 x86_x64)
http://shaurong.blogspot.com/2015/05/phpbb-34-centos-66-x86x64.html
[研究] phpBB 3.0.12 論壇套件快速安裝程式 (CentOS 7.0 x86_x64)
http://shaurong.blogspot.com/2014/08/phpbb-3012-centos-70-x86x64.html
[研究] phpBB 3.0.12 論壇套件快速安裝程式 (CentOS 6.4 x64)
http://shaurong.blogspot.com/2013/10/phpbb-3012-centos-64-x64.html
[研究] phpbb 3.0.10 快速安裝程式 (CentOS 6.2 x86)
http://shaurong.blogspot.tw/2012/01/phpbb-3.html
[研究] phpbb 3.0.10 安裝RSS模組(simple syndication 1.1.1b)
http://shaurong.blogspot.tw/2012/01/phpbb-3010-rsssimple-syndication-111b.html
simple syndication 1.1.1b 最後一次改版為 2007-06-20
http://sourceforge.net/projects/canver/files/phpBB3%20MODs/
[研究] phpbb 3.0.10 安裝TOP5模組(Integrated Topiclist 2.0 beta)
http://shaurong.blogspot.tw/2012/01/top5integrated-topiclist-2.html
沒有留言:
張貼留言