How to Install and Configure ownCloud on CentOS 8 - MS TV Life.COM

How to Install and Configure ownCloud on CentOS 8

How to Install and Configure ownCloud on CentOS 8

We hope this post helped you to find out  How to Install and Configure ownCloud on CentOS 8

ownCloud is an open-source, self-hosted cloud platform for managing and sharing recordsdata. It may be used as a substitute for Dropbox, Microsoft OneDrive, and Google Drive. ownCloud is extensible through apps and has desktop and cellular shoppers for all main platforms.

This tutorial explains the way to set up and configure ownCloud with Apache on CentOS 8.

Blog Design Tips to Make Sure People Stop to Read Your Content

Conditions #

Earlier than persevering with with the steps beneath, please be sure that the next conditions are met:

Creating Database #

ownCloud helps SQLite, Oracle 12g, PostgreSQL 9, MariaDB and MySQL. We’ll use MariaDB as a database back-end

Login in to the MariaDB shell by typing:

sudo mysql

Run the following SQL statement to create a new database:

CREATE DATABASE owncloud CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;

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

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

Once done, exit the MariaDB console by typing:

EXIT;

Installing Apache and PHP Modules #

ownCloud is a PHP software. CentOS Eight ships with PHP 7.2, which is supported by ownCloud, however their official documentation recommends PHP 7.3.

Run the next command to put in all required 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 modules by restarting the FPM service:

sudo systemctl restart php-fpm

Downloading ownCloud #

On the time of writing this text, the most recent secure model of ownCloud is model 10.3.2. Earlier than persevering with with the following step, go to the ownCloud obtain web page and verify if there’s a new model of ownCloud obtainable.

Use the next wget command to obtain the ownCloud zip archive:

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

Once the download is complete, extract the archive to the /var/www directory:

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

Set the correct ownership so that the Apache webserver can have full access to the ownCloud’s files and directories.

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

If SELinux is running on your system, you’ll need to update the SELinux security context:

sudo chcon -tR httpd_sys_rw_content_t /var/www/owncloud

Configuring Apache #

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

sudo nano /etc/httpd/conf.d/owncloud.conf
/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 the changes:

sudo systemctl restart httpd

Installing ownCloud #

Now that ownCloud is downloaded, and the services are configured, open your browser and start the ownCloud installation by visiting your server’s domain name or IP address followed by /owncloud :

https://domain_name_or_ip_address/owncloud

You will be presented with the ownCloud setup page.

How to Install and Configure ownCloud on CentOS 8

If you can’t access the page, then probably your firewall is blocking port 80 or 443.

Use the following commands to open the necessary port:

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

Enter your required admin username and password and the MySQL person and database particulars you beforehand created.

Click on on the End setup button. As soon as the set up course of is accomplished, you’ll be redirected to the ownCloud dashboard logged in as admin person.

How to Install and Configure ownCloud on CentOS 8

Conclusion #

You will have realized the way to set up and configure ownCloud in your CentOS Eight machine. In case you have a website identify related together with your ownCloud server, you need to safe your Apache with a free Let’s Encrypt SSL certificates.

To seek out extra details about the way to handle your ownCloud occasion, go to the ownCloud documentation web page.

We hope the How to Install and Configure ownCloud on CentOS 8 help you. If you have any query regarding How to Install and Configure ownCloud on CentOS 8 drop a comment below and we will get back to you at the earliest.

We hope this post helped you to find out  How to Install and Configure ownCloud on CentOS 8  . You may also want to see – How to Install Gradle on CentOS 8.

Copy link
Powered by Social Snap