首页 > 代码库 > owncloud
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
来自为知笔记(Wiz)
owncloud
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。