如何在Ubuntu 13.04中安装owncloud
时间:2019-08-20 17:58:26 来源:igfitidea点击:
更新apt 存储库源列表
sudo echo 'deb http://download.opensuse.org/repositories/isv:ownCloud:community/xUbuntu_13.04/ /' >> /etc/apt/sources.list.d/owncloud.list
向apt添加存储库密钥
sudo wget http://download.opensuse.org/repositories/isv:ownCloud:community/xUbuntu_13.04/Release.key apt-key add - < Release.key
更新系统
sudo apt-get update
安装owncloud
sudo apt-get install owncloud apache2 mysql-server php5 php5-mysql
编辑owncloud.conf文件
Hyman@theitroad:~$ sudo su - [sudo] password for linux: root@theitroad:~# root@theitroad:~# cd /etc/apache2/conf.d/ root@theitroad:/etc/apache2/conf.d# cp -p owncloud.conf owncloud.conf.orig root@theitroad:/etc/apache2/conf.d# vi owncloud.conf <Directory var www owncloud /> AllowOverride All order allow,deny Allow from all </Directory> root@theitroad:/etc/apache2/conf.d#
重启apache服务
root@theitroad:/etc/apache2/conf.d# /etc/init.d/apache2 restart
在mysql中创建用户和数据库,并赋予用户权限
root@theitroad:~# mysql -u root -p Enter password: mysql> create database ownlcoud; mysql> CREATE USER 'ownclouduser'@'localhost' IDENTIFIED BY 'password'; mysql> GRANT ALL ON owncloud.* TO 'ownclouduser'@'localhost'; mysql> flush privileges; mysql> exit;
在浏览器中打开owncloud控制台
地址 http://localhost/owncloud
填写一些设置后,就可以开始使用owncloud了。