OS/Linux
Ubuntu 20.04 : OwnCloud 설치
파란크리스마스
2020. 11. 24. 23:58
728x90
출처
- 우분투 자작 NAS 설치하기 - (7) OwnCloud - 살만한 세상 만들기 - Tistory
- 우분투 리눅스 서버 16.04 LTS에서 APM설치(PHP5 설치가 안될때) - 따뜻한 커피한잔
MySQL - OwnCloud DB와 사용자 생성
pi@Kubuntu:~$ cd /bluesanta/mysql-5.7.23 pi@Kubuntu:/bluesanta/mysql-5.7.23$ bin/mysql -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 1161 Server version: 5.7.23-log Source distribution Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> CREATE DATABASE owncloud; Query OK, 1 row affected (0.01 sec) mysql> use mysql Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Database changed mysql> create user 'owncloud'@'localhost' identified by 'owncloud!!'; Query OK, 0 rows affected (0.02 sec) mysql> GRANT ALL privileges ON owncloud.* TO 'owncloud'@'localhost' identified by 'owncloud!!'; Query OK, 0 rows affected, 2 warnings (0.00 sec) mysql> flush privileges; Query OK, 0 rows affected (0.00 sec) mysql> exit Bye pi@Kubuntu:/bluesanta/mysql-5.7.23$
OwnCloud 설치
bluesanta@Kubuntu:~$ cd /bluesanta/apps bluesanta@Kubuntu:/bluesanta/apps$ wget https://download.owncloud.org/community/owncloud-complete-20200731.tar.bz2 bluesanta@Kubuntu:/bluesanta/apps$ tar xvf owncloud-complete-20200731.tar.bz2 bluesanta@Kubuntu:/bluesanta/apps$ sudo chown -R www-data:www-data owncloud
Apache2에 경로 추가
bluesanta@Kubuntu:~$ vi /bluesanta/apps/apache24/conf/httpd.conf
Alias /cloud "/bluesanta/apps/owncloud/" <Directory /bluesanta/apps/owncloud/> Options +FollowSymlinks AllowOverride All Require all granted <IfModule mod_dav.c> Dav off </IfModule> SetEnv HOME /bluesanta/apps/owncloud SetEnv HTTP_HOME /bluesanta/apps/owncloud </Directory>
Apache2 재시작
$ sudo service apache2 restart