2014-01-22
英文網站
http://xoops.org/
中文網站
http://xoops.tnc.edu.tw/
相關文件
http://xoops.org/modules/mediawiki/index.php/Main_Page
安裝指引
http://xoops.org/modules/mediawiki/index.php/Installation_Guide
資料庫名稱 : XoopsDB
資料庫帳號 : XoopsUser
資料庫密碼 : XoopsPassword
這些值大家可以在安裝程式執行前自行變更
#!/bin/bash
# xoops2.5.6_centos6.5x64_install.sh
echo -e "\033[31;42m ********** Xoops 2.5.6 Install Shell Script on CentOS 6.5 x64 ********** \033[0m"
echo -e "\033[31m 2014/01/22 ********** \033[0m"
if [ "`grep SELINUX=disabled /etc/selinux/config`" == "" ]; then
/usr/sbin/setenforce 0
# 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
fi
yum -y install mysql mysql-server httpd php php-mysql wget php-mbstring php-gd
chkconfig httpd on
service httpd restart
chkconfig mysqld on
service mysqld restart
wget http://xoops.tn.edu.tw/uploads/tad_uploader/user_11853/23_564_xoops-2.5.6_tw_20130502.zip
unzip 23_564_xoops-2.5.6_tw_20130502.zip
mkdir /var/www/html/xoops
cp -r xoops-2.5.6/htdocs/. /var/www/html/xoops/.
chmod -R 777 /var/www/html/xoops/uploads
chmod 777 /var/www/html/xoops/mainfile.php
chmod 777 /var/www/html/xoops/include/license.php
chmod 777 /var/www/html/xoops/xoops_data/caches
chmod 777 /var/www/html/xoops/xoops_data/caches/xoops_cache
chmod 777 /var/www/html/xoops/xoops_data/caches/smarty_cache
chmod 777 /var/www/html/xoops/xoops_data/caches/smarty_compile
chmod 777 /var/www/html/xoops/xoops_data/configs
chmod -R 777 /var/www/html/xoops/xoops_data/data
mysql -e "create database XoopsDB"
mysql -e "show databases; "
mysql -e "grant all on XoopsDB.* to XoopsUser@localhost; "
mysql -e "set password for XoopsUser@localhost=password('XoopsPassword'); "
mysql -e "flush privileges; "
mysql -e "use mysql; select Host,User,Password from user; "
firefox http://localhost/xoops &
rm -fr /var/www/html/xoops/install
chmod 444 /var/www/html/xoops/mainfile.php
#不可刪除或改名,網站會無法使用
#mv /var/www/html/xoops/xoops_lib /var/www/html/xoops/xoops_lib.bak
#mv /var/www/html/xoops/xoops_data /var/www/html/xoops/xoops_data.bak
(完)
相關
[研究] Xoops 2.5.6 快速安裝程式 (CentOS 6.5 x64)
http://shaurong.blogspot.com/2014/01/xoops-256-centos-65-x64.html
[研究] XOOPS 2.5.0 快速安裝程式 (CentOS 5.5 x86)
http://forum.icst.org.tw/phpbb/viewtopic.php?t=19283
Due to SELinux Enable mode ( setenforce 1 )
回覆刪除if you want to allow write uploads folder:
chcon -Rv --type=httpd_sys_rw_content_t /var/www/html/xoops/uploads/