Linux

owncloud 설치

Naan 2015. 4. 14. 16:13
반응형

owncloud 설치 방법이다.

정말 수 많은 방법으로 설치가 가능하다.


https://owncloud.org/install/

원하는 방법으로 설치 하면 된다. 뭐 제일 간단한 방법은 img 파일로 설치 하는 방법이겠지만

선행 작업이 필요하므로 걍 일반적인 설치 방법으로 하겠다.

https://demo.owncloud.org

데모도 있다. 한번 해보자


centos 7.0 기반으로 설치를 하였다.


필요한 프로그램들을 yum으로 받아서 설치 하자

# yum install httpd php php-mysql mariadb-server mariadb sqlite php-dom php-mbstring php-gd php-pdo 


방화벽 관련 http, https 예외를 시키자

# setsebool -P httpd_unified 1

# firewall-cmd --permanent --zone=public --add-service=http

# firewall-cmd --permanent --zone=public --add-service=https

# firewall-cmd --reload


apache 서비스 구동

# systemctl start httpd.service


부팅시에도 서비스 가능하게 on

# systemctl enable httpd.service

# systemctl enable mariadb.service


mysql db생성하자


# mysql -u root -p

Enter password:

ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

[root@localhost html]# mysql -u root -p

Enter password:

Welcome to the MariaDB monitor.  Commands end with ; or \g.

Your MariaDB connection id is 12

Server version: 5.5.41-MariaDB MariaDB Server


Copyright (c) 2000, 2014, Oracle, MariaDB Corporation Ab and others.


Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.


MariaDB [(none)]> create database owncloud;

Query OK, 1 row affected (0.00 sec)


MariaDB [(none)]> create user 'owncloud'@'localhost' identified by'123qwe!@';

Query OK, 0 rows affected (0.00 sec)


MariaDB [(none)]> grant all on owncloud.* to 'owncloud'@'localhost';

Query OK, 0 rows affected (0.00 sec)


MariaDB [(none)]> flush privileges;

Query OK, 0 rows affected (0.00 sec)


MariaDB [(none)]> quit


apache 설정

# vi /etc/httpd/conf.d/owncloud.conf

</IfModule>

<Directory “/var/www/html/owncloud”>

Options Indexes FollowSymLinks

AllowOverride All

Order allow,deny

allow from all

</Directory>


owncloud 설치

# wget https://download.owncloud.org/community/owncloud-8.0.2.tar.bz2

# tar -xvf owncloud-8.0.2.tar.bz2 

# mv owncloud /var/www/owncloud/


추가

아파치 재구동

# systemctl start httpd.service

# systemctl start mariadb.service


htto://localhost/owncloud 접속




딱히 한글 설정을 안했는데 자동으로 한글이 나온다.

admin 계정과 암호를 입력하고 데이터 스토리지&데이터베이스 항목을 누르면 위 이미지처럼 세부 셋팅 화면이 나온다

아까 mysql 정보를 입력하고 설치 완료를 누르면 모든 설치가 완료가 된다.



반응형