owncloud
owncloud
https://dl.iuscommunity.org/pub/ius/stable/CentOS/6/x86_64/
[root@n1 ~]# rpm -Uvh ius-release-1.0-14.ius.centos6.noarch.rpm epel-release-6-5.noarch.rpm
[root@n1 ~]# yum search php54
[root@n1 ~]# yum install php54 -y
[root@n1 ~]# yum install php54-mysql php54-mbstring php54-gd php54-dom -y
[root@n1 ~]# vim /etc/httpd/conf/httpd.conf
ServerName n1:80
[root@n1 ~]# service httpd start
[root@n1 ~]# service mysqld start
[root@n1 ~]# mysqladmin -u root password yanjin
[root@n1 ~]# mysql -uroot -pyanjin
mysql> CREATE DATABASE owncloud;
mysql> GRANT ALL ON owncloud.* to 'owncloud'@'localhost' IDENTIFIED BY 'owncloudpw';
Query OK, 0 rows affected (0.17 sec)
mysql> exit
Bye
[root@n1 ~]# chkconfig httpd on
[root@n1 ~]# chkconfig mysqld on
[root@n1 ~]# cd /var/www/html
[root@n1 html]# wget http://download.owncloud.org/community/owncloud-7.0.3.tar.bz2
[root@n1 html]# tar -jxvf owncloud-7.0.3.tar.bz2
[root@n1 html]# chown apache:apache -R owncloud
[root@n1 html]# cp -a owncloud /home/owncloud/
[root@n1 html]# vim /var/www/html/owncloud/config/config.php
'trusted_domains' => array('192.168.120.137', '10.6.3.41'),
'trusted_domains' => array('192.168.120.137'),
'datadirectory' => '/var/www/html/owncloud/data',
'datadirectory' => '/home/owncloud/owncloud/data/',
chown apache:apache -R /home/owncloud/
[root@n1 ~]# service httpd restart
http://localhost/owncloud
http://192.168.120.137/owncloud