Pages

Saturday 24 August 2013

owncloud+unison+keepalived



yum -y update #

yum -y install mysql-server httpd php php-mysql unzip wget php-json php-xml php-mbstring php-zip php-gd curl php-curl php-pdo

chkconfig httpd on; chkconfig mysqld on

reboot

/etc/init.d/mysqld start

/usr/bin/mysql_secure_installation

cd /var/www/owncloud

wget http://download.owncloud.org/community/owncloud-5.0.10.tar.bz2

tar xvf owncloud-5.0.10.tar.bz2

rm -rf owncloud-5.0.10.tar.bz2

service iptables stop

chown -R apache:apache owncloud

#KEEPALIVED
yum install keepalived
chkconfig keepalived on


#UNISON
wget http://apt.sw.be/redhat/el6/en/i386/rpmforge/RPMS/rpmforge-release-0.5.3-1.el6.rf.i686.rpm
rpm -Uvh rpmforge-release-0.5.3-1.el6.rf.i686.rpm
yum install unison   


#SSL
yum install mod_ssl openssl

mkdir /etc/httpd/ssl

openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/httpd/ssl/apache.key -out /etc/httpd/ssl/apache.crt

vi /etc/httpd/conf.d/ssl.conf
# Find the section that begins with <VirtualHost _default_:443> and make some quick changes.

#Uncomment the DocumentRoot and ServerName line and replace example.com with your DNS approved domain name or server IP address (it should be the same as the common name on the certificate):
ServerName owncloud.datanet.ug:443
#in the same file
SSLEngine on
SSLCertificateFile /etc/httpd/ssl/apache.crt
SSLCertificateKeyFile /etc/httpd/ssl/apache.key

service httpd restart

No comments:

Post a Comment