How to install and configure Owncloud on CentOS 8

ownCloud is an open source, self-built cloud platform, mainly used to manage and share files. It can be used to replace Dropbox, Microsoft OneDrive, and Google Drive. ownCloud is extended through apps and has desktop and mobile clients on all major platforms.

This guide explains how to install and configure ownCloud and Apache on CentOS 8.

1. Prerequisites##

Before starting the steps below, make sure that the following prerequisites are met:

Second, create a database##

ownCloud supports SQLite, Oracle 12g, PostgreSQL 9, MariaDB and MySQL. We will use MariaDB as the database backend. Enter the following command to log in to the MariaDB shell:

sudo mysql

Run the following SQL statement to create a new database:

CREATE DATABASE owncloud CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;

Create a database user and grant it access to the database:

GRANT ALL ON owncloud.* TO 'ownclouduser'@'localhost' IDENTIFIED BY 'change-with-strong-password';

Once completed, exit the MariaDB terminal and enter:

EXIT;

Third, install Apache and PHP modules##

ownCloud is a PHP application. When CentOS 8 is released, it corresponds to PHP 7.2. ownCloud supports PHP 7.2, but their official documentation recommends PHP 7.3. Run the following command to install the necessary PHP extensions:

sudo dnf install php php-curl php-gd php-intl php-json php-ldap php-mbstring php-mysqlnd php-xml php-zip php-opcache 

Load the new module by restarting the FPM service:

sudo systemctl restart php-fpm

Fourth, download ownCloud

At the time of writing this article, the latest document version of ownCloud is 10.3.2. Before proceeding to the next step, please browse ownCloud download page and check if there is a newer version of ownCloud available.

Use the wget command to download the zip package of ownCloud:

wget https://download.owncloud.org/community/owncloud-10.3.2.tar.bz2 -P /tmp

Once the download is complete, unzip the compressed package to the /var/www directory:

sudo tar jxf /tmp/owncloud-10.3.2.tar.bz2 -C /var/www

Set the correct attribution information so that the Apache web server can have all permissions to ownCloud files and directories:

sudo chown -R apache:/var/www/owncloud

If SELinux is running on your system, you will need to upgrade the SELinux security content:

sudo chcon -tR httpd_sys_rw_content_t /var/www/owncloud

Five, configure Apache

Open your text editor and create the following Apache configuration file.

sudo nano /etc/httpd/conf.d/owncloud.conf
Alias /owncloud "/var/www/owncloud/"<Directory /var/www/owncloud/>
 Options +FollowSymlinks
 AllowOverride All

 < IfModule mod_dav.c>
 Dav off
 < /IfModule>

 SetEnv HOME /var/www/owncloud
 SetEnv HTTP_HOME /var/www/owncloud

< /Directory>

Restart the Apache service to activate these changes:

sudo systemctl restart httpd

Six, install ownCloud

Now that ownCloud has been downloaded, and the server is configured, open your browser and add /owncloud by browsing your server domain name or IP address:

https://domain_name_or_ip_address/owncloud

You will see the ownCloud settings page.

If you cannot access the page, you may have encountered a firewall blocking port 80 or 443.

Use the following command to open the necessary ports:

sudo firewall-cmd --zone=public--add-port=80/tcp
sudo firewall-cmd --zone=public--add-port=443/tcp
sudo firewall-cmd --runtime-to-permanent

Enter the desired administrator username and password, and MySQL user and database details.

Click the Finish setup button. Once the installation process is complete, you will be taken to the ownCloud background interface (administrator user identity).

Seven, summary##

You have learned how to install and configure ownCloud on a CentOS machine. If you have a domain name and want to use it to associate with ownCloud server, you need Configure Apache SSL Certificate.

Recommended Posts

How to install and configure Owncloud on CentOS 8
How to install and configure Elasticsearch on CentOS 7
How to install and configure ownCloud on Ubuntu 16.04
How to install and configure VNC on CentOS 8
How to install and configure phpMyAdmin on CentOS 6
How to install and configure Redmine on CentOS 8
How to install and configure NFS server on CentOS 8
How to install and configure Postfix mail server on CentOS8
How to install and configure NATS on Ubuntu 16.04
How to install and configure Gogs on Ubuntu 18.04
How to install and use Docker on CentOS 7
How to install and configure Cyberpanel on Ubuntu 18.04
How to install and configure GitLab on Ubuntu 18.04
How to install and configure Ansible on Ubuntu 18.04
How to install and use Composer on CentOS 8
How to install and configure PostGIS on Ubuntu 14.04
How to install Node.js and npm on CentOS 8
How to install and configure VNC on Ubuntu 18.04
How to install and configure Sphinx on Ubuntu 16.04
How to install and configure OrientDB on Ubuntu 14.04
How to install jdk1.8.0_151 and mysql5.6.38 on centos7.2.1511
How to install and use Curl on CentOS 8
How to install and configure AppScale on Ubuntu 12.04
How to install and uninstall tomcat on centos
How to install and configure PostGIS on Ubuntu 14.04
How to install jdk1.8 on centOS7
How to install MySQL on CentOS 8
How to install Memcached on CentOS 8
How to install FFmpeg on CentOS 8
How to install Virtualbox on CentOS 8
How to install TensorFlow on CentOS 8
How to install TeamViewer on CentOS 8
How to install Perl 5 on CentOS
How to install Git on CentOS 8
How to install Gradle on CentOS 8
How to install Jenkins on CentOS 8
How to install Java on CentOS 8
How to install Go on CentOS 8
How to install GCC on CentOS 8
How to install Yarn on CentOS 8
How to install Nginx on CentOS 8
How to install Jenkins on CentOS 8
How to install Vagrant on CentOS 8
How to install Python 3.8 on CentOS 8
How to install Tomcat 9 on CentOS 8
How to install Webmin on CentOS 8
How to install Ruby on CentOS 8
How to install Skype on CentOS 8
How to install htop on CentOS 8
How to install Python on CentOS 8
How to install Elasticsearch on CentOS 8
How to install Postgresql on CentOS 8
How to install Wordpress on Centos
How to install htop on CentOS 8
How to install TeamViewer on CentOS 8
How to install MariaDB on CentOS 8
How to install MongoDB on CentOS 7
How to install Odoo 13 on CentOS 8
How to install Apache on CentOS 8
How to install OpenCV on CentOS 8
How to install PHP on CentOS 8