owncloud

Posted sanyuanyanjin

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了owncloud相关的知识,希望对你有一定的参考价值。

owncloud
https://dl.iuscommunity.org/pub/ius/stable/CentOS/6/x86_64/

[[email protected] ~]# rpm -Uvh ius-release-1.0-14.ius.centos6.noarch.rpm epel-release-6-5.noarch.rpm
[[email protected] ~]# yum search php54
[[email protected] ~]# yum install php54 -y 
[[email protected] ~]# yum install php54-mysql php54-mbstring php54-gd php54-dom -y
[[email protected] ~]# vim /etc/httpd/conf/httpd.conf 
ServerName n1:80
[[email protected] ~]# service httpd start
[[email protected] ~]# service mysqld start
[[email protected] ~]# mysqladmin -u root password yanjin
[[email protected] ~]# 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
[[email protected] ~]# chkconfig httpd on
[[email protected] ~]# chkconfig mysqld on
[[email protected] ~]# cd /var/www/html
[[email protected] html]# wget http://download.owncloud.org/community/owncloud-7.0.3.tar.bz2
[[email protected] html]# tar -jxvf owncloud-7.0.3.tar.bz2 
[[email protected] html]# chown apache:apache -R owncloud
[[email protected] html]# cp -a owncloud /home/owncloud/
[[email protected] 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/

[[email protected] ~]# service httpd restart
http://localhost/owncloud
http://192.168.120.137/owncloud





以上是关于owncloud的主要内容,如果未能解决你的问题,请参考以下文章