The goal of this guide is to install OwnCloud 9 using OwnCloud's best practices, and recommended software.
I will do my best to make sure it's secure as possible.
Credit goes to @JaredBusch and @scottalanmiller for there guides provided me a roadmap.
First, we will update our fresh install
yum -y update
Now install packages:
yum -y install wget mariadb-server php-mysql httpd epel-release wget
Install REMI Repository
wget http://rpms.famillecollet.com/enterprise/remi-release-7.rpm rpm -Uvh remi-release-7.rpm
Enable REMI repository
Edit file remi.repo,
vi /etc/yum.repos.d/remi.repo
Find the line enabled =0 and change it to 1 to enable REMI repository and PHP 5.6 for CentOS7
[...] enabled=1 [...]
Save and close the file.
Install owncloud
rpm --import https://download.owncloud.org/download/repositories/stable/CentOS_7/repodata/repomd.xml.key wget http://download.owncloud.org/download/repositories/stable/CentOS_7/ce:stable.repo -O /etc/yum.repos.d/ce:stable.repo setenforce permissive #is this needed? yum clean expire-cache yum -y install owncloud
Now enable the services:
systemctl start httpd systemctl enable httpd systemctl start mariadb systemctl enable mariadb
Placeholder
chown -R apache:apache /var/www/html/owncloud chown -R apache:apache /data
Firewall Rules
firewall-cmd --zone=public --add-port=http/tcp --permanent
firewall-cmd --zone=public --add-port=https/tcp --permanent
firewall-cmd --reload
Make a data dir
mkdir /data mysql_secure_installation
<output>
Sign in to the database and create the ownCloud instance and user.
mysql -uroot -p
You will then be prompted to enter your database root password.
Now you will run 4 SQL commands, please note the ; at the end of each. It is a required part of the SQL syntax . These are simplified defaults, I would generally recommend you set them to something a little less obvious just to help with security.
create database ownclouddb; create user 'ownclouduser'@'localhost' identified by 'ownclouduserpassword'; grant all on ownclouddb.* to 'ownclouduse'@'localhost'; flush privileges; quit
'Linux > Cloud' 카테고리의 다른 글
Call to undefined function OC\Settings\Controller\posix_getuid() 오류 해결 (0) | 2019.10.03 |
---|---|
nextcloud 알림메일설정 (google smtp 설정) (0) | 2019.10.02 |
nextcloud(nginx) 로그인 페이지 리다이렉션 루프(로그인실패), 무한루프 (0) | 2019.08.01 |
NextCloud 업로드 정크파일이 쌓이는 현상 (0) | 2018.06.15 |
ownCloud 업데이트후 점검모드로 접속이 안될때 (0) | 2017.03.20 |