OwnCloud/Installation
From r00tedvw.com wiki
(Difference between revisions)
(→Prerequisites) |
|||
Line 10: | Line 10: | ||
=Prerequisites= | =Prerequisites= | ||
<nowiki>~$ sudo yum install -y epel-release yum-utils | <nowiki>~$ sudo yum install -y epel-release yum-utils | ||
− | ~$ sudo yum install -y httpd mariadb-server | + | ~$ sudo yum install -y httpd mariadb-server |
~$ sudo systemctl enable httpd</nowiki> | ~$ sudo systemctl enable httpd</nowiki> | ||
Line 19: | Line 19: | ||
=Install OwnCloud= | =Install OwnCloud= | ||
− | <nowiki>~$ sudo yum install -y owncloud | + | <nowiki>~$ sudo yum install -y owncloud</nowiki> |
− | + | ||
=Set Firewall rules= | =Set Firewall rules= | ||
Line 35: | Line 34: | ||
mariadb> FLUSH PRIVILEGES; | mariadb> FLUSH PRIVILEGES; | ||
mariadb> exit</nowiki> | mariadb> exit</nowiki> | ||
+ | |||
+ | =Setup PHP= | ||
+ | <nowiki>~$ sudo yum install -y http://rpms.remirepo.net/enterprise/remi-release-7.rpm | ||
+ | ~$ sudo yum-config-manager --enable remi-php73 | ||
+ | ~$ sudo yum install php php-gd php-intl php-mbstring php-process php-xml</nowiki> | ||
=Configure OwnCloud using the GUI= | =Configure OwnCloud using the GUI= | ||
+ | <nowiki>~$ sudo systemctl start httpd</nowiki> | ||
https://fqdn/owncloud | https://fqdn/owncloud |
Revision as of 22:59, 16 April 2021
OwnCloud Installation
Contents |
Requirements
CentOS 7
LAMP stack.
- MariaDB 10+
- httpd 2.4+ with prefork and mod_php
- PHP 7.4+
- 512MB RAM
Prerequisites
~$ sudo yum install -y epel-release yum-utils ~$ sudo yum install -y httpd mariadb-server ~$ sudo systemctl enable httpd
Setup Repo
~$ sudo rpm --import https://download.owncloud.org/download/repositories/stable/CentOS_7/repodata/repomd.xml.key ~$ sudo curl -L https://download.owncloud.org/download/repositories/stable/CentOS_7/ce:stable.repo -o /etc/yum.repos.d/ownCloud.repo ~$ sudo yum clean expire-cache
Install OwnCloud
~$ sudo yum install -y owncloud
Set Firewall rules
~$ sudo firewall-cmd --permanent --zone=public --add-service=http ~$ sudo firewall-cmd --permanent --zone=public --add-service=https ~$ sudo firewall-cmd --reload
Setup MariaDB
~$ systemctl start mariadb.service ~$ mysql_secure_installation ~$ sudo mysql -u root -p mariadb> CREATE DATABASE owncloud; mariadb> GRANT ALL ON owncloud.* to 'owncloud'@'localhost' IDENTIFIED BY 'set_database_password'; mariadb> FLUSH PRIVILEGES; mariadb> exit
Setup PHP
~$ sudo yum install -y http://rpms.remirepo.net/enterprise/remi-release-7.rpm ~$ sudo yum-config-manager --enable remi-php73 ~$ sudo yum install php php-gd php-intl php-mbstring php-process php-xml
Configure OwnCloud using the GUI
~$ sudo systemctl start httpd