Here’s how to install Kloxo-MR, Deploy Centos 5,6 32bit or 64bit version on your server and follow these steps,
A. pre-install -- better for fresh install
# update centos to latest version
# install some packages like package-cleanup, etc
Mã:
yum install yum-utils yum-priorities vim-minimal subversion curl zip unzip -y
Mã:
yum install telnet wget -y
Mã:
setenforce 0
echo 'SELINUX=disabled' > /etc/selinux/config
B. Install Kloxo-MR (select B.1 or B.2)
B.1 For Dev (alpha, beta, candidate) Release:
B.1.1. via non-RPM (not recommended for dev)
- Install/reinstall/upgrade -- data not destroyed with this fork
for existing kloxo (6.1.x), run 'sh /script/update' first.
# delete if exist, create kloxo temp dir
rm -rf /tmp/kloxo; mkdir /tmp/kloxo ; cd /tmp/kloxo;
rm -f ./kloxo-mr-dev.sh
# get kloxo-mr-dev installer from github
wget https://github.com/mustafaramadhan/k...loxo-mr-dev.sh --no-check-certificate
# install kloxo
sh ./kloxo-mr-dev.sh
# better reboot
reboot
B.1.2. via RPM (recommended for dev)
# get repo file -- no need for 6.5.0.c and after
wget https://github.com/mustafaramadhan/k.../kloxo-mr.repo --no-check-certificate
# move to /
cd /
# edit /etc/yum.repos.d/kloxo-mr.repo
from:
[kloxo-mr-testing-neutral-noarch]
name=Kloxo-MR - testing-neutral-noarch
baseurl=https://github.com/mustafaramadhan/kloxo/raw/rpms/testing/neutral/noarch/
#mirrorlist=http://rpms.potissima.com/repo/mirrors/mratwork-testing-neutral-noarch-mirrors.txt
enabled=0
gpgcheck=0
to:
[kloxo-mr-testing-neutral-noarch]
name=Kloxo-MR - testing-neutral-noarch
baseurl=https://github.com/mustafaramadhan/kloxo/raw/rpms/testing/neutral/noarch/
#mirrorlist=http://rpms.potissima.com/repo/mirrors/mratwork-testing-neutral-noarch-mirrors.txt
enabled=1
gpgcheck=0
includepkgs=kloxomr
yum clean all
yum install kloxomr
B.2. For Final Release:
- Install/reinstall/upgrade -- data not destroyed with this fork
for existing kloxo (6.1.x), run 'sh /script/update' first.
# move repo dir
# get repo file -- no need for 6.5.0.c and after
Mã:
rm -rf kloxo-mr.repo
wget https://github.com/mustafaramadhan/kloxo/raw/release/kloxo-mr.repo --no-check-certificate
# move to /
# need update mysql because need mysql/mariadb version 5.1++
Mã:
yum clean all
yum install yum-plugin-replace -y
yum replace mysql --replace-with=mysql55 -y
chkconfig mysqld on
# install (and then run 'sh /script/upcp')
Mã:
yum install kloxomr -y
sh /script/upcp
Mã:
sh /script/restart-all
chkconfig mysqld on
chkconfig httpd on
# better reboot
WARNING:
1. Need running 'sh /script/backup-patch' in Kloxo Official (6.1.12) before backup data.
- In Kloxo offical run:
cd /script
wget https://github.com/mustafaramadhan/k...t/backup-patch
sh ./backup-patch
2. Since 6.5.0.f-20130701, Kloxo-MR using MySQLi API instead MySQL API. Need update mysql 5.0.x to 5.1.x or above for Centos 5.
- Check mysql version with:
mysql -V|awk '{print $5}'
- Update with 'yum replace mysql --replace-with=mysql55' (ask to forum for update to MariaDB)