Saturday, 24 August 2013


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


/etc/init.d/mysqld start


cd /var/www/owncloud


tar xvf owncloud-5.0.10.tar.bz2

rm -rf owncloud-5.0.10.tar.bz2

service iptables stop

chown -R apache:apache owncloud

yum install keepalived
chkconfig keepalived on

rpm -Uvh rpmforge-release-0.5.3-1.el6.rf.i686.rpm
yum install unison   

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 with your DNS approved domain name or server IP address (it should be the same as the common name on the certificate):
#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