How to install Owncloud 10 on Fedora 26

Fedora Tutorial – Hello Linux users, today we will guide you how to install Owncloud 10 on Fedora 26. The latest version of Owncloud 10.0.1 is now available for download. Owncloud is a free web application for file sharing and storage service. Owncloud requires LAMP (Apache) or LEMP (Nginx) Server to work, so you will need to install and configure the web server first prior to Owncloud installation.

Steps to install Owncloud 10 on Fedora 26

Step 1. Install LAMP Server on Fedora 26

First, install LAMP Server on Fedora 26 by following this LAMP Server install instruction.

Step 2. Install additional php modules

On the LAMP Server installation instruction above, we still need to install some php modules in order Owncloud to run well.

dnf install --enablerepo=remi,epel php-mcrypt php-curl php-gd php-xml php-dom php-mbstring php-zip

Output sample

[root@fedora tmp]# dnf install --enablerepo=remi,epel php-mcrypt php-curl php-gd php-xml php-dom php-mbstring
Last metadata expiration check: 1:42:30 ago on Tue 22 Aug 2017 07:30:14 PM WIB.
Package php-common-7.1.8-1.fc26.remi.x86_64 is already installed, skipping.
Dependencies resolved.
============================================================================================================
 Package                            Arch              Version                       Repository         Size
============================================================================================================
Installing:
 php-gd                             x86_64            7.1.8-1.fc26.remi             remi               74 k
 php-mbstring                       x86_64            7.1.8-1.fc26.remi             remi              581 k
 php-mcrypt                         x86_64            7.1.8-1.fc26.remi             remi               58 k
 php-xml                            x86_64            7.1.8-1.fc26.remi             remi              208 k
Installing dependencies:
 aajohan-comfortaa-fonts            noarch            2.004-7.fc26                  fedora            150 k
 fontconfig                         x86_64            2.12.1-4.fc26                 fedora            243 k
 fontpackages-filesystem            noarch            1.44-18.fc26                  fedora             14 k
 gd                                 x86_64            2.2.4-3.fc26                  fedora            137 k
 libXpm                             x86_64            3.5.12-2.fc26                 fedora             55 k
 libmcrypt                          x86_64            2.5.8-19.fc26                 fedora            106 k
 libwebp                            x86_64            0.6.0-2.fc26                  fedora            259 k
 libxslt                            x86_64            1.1.29-1.fc26                 fedora            252 k

Transaction Summary
============================================================================================================
Install  12 Packages

Total download size: 2.1 M
Installed size: 7.0 M
Is this ok [y/N]:

Step 3. Create new MySQL database and user

Now we need to create new MySQL user and database for Owncloud.

[root@fedora tmp]# mysql -u root -p
Enter password: 
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 10
Server version: 10.1.25-MariaDB MariaDB Server

Copyright (c) 2000, 2017, 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 '12345';
Query OK, 0 rows affected (0.00 sec)

MariaDB [(none)]> GRANT ALL PRIVILEGES ON owncloud.* TO owncloud@localhost IDENTIFIED BY '12345';
Query OK, 0 rows affected (0.00 sec)

MariaDB [(none)]> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.00 sec)

MariaDB [(none)]> EXIT;
Bye

Step 4. Download Owncloud package

Now we need to download the latest Owncloud 10 package from the official website. You may check the latest version of Owncloud from this page.

cd /tmp
wget https://download.owncloud.org/community/owncloud-10.0.2.tar.bz2

Step 5. Extract Owncloud package

Once the download completed, we need to extract it and change the permission to it.

tar -xvf owncloud-10.0.2.tar.bz2

Change permission

chown -R apache.apache owncloud
chmod -R 755 owncloud

Now move the owncloud directory to /var/www/html

mv owncloud /var/www/html

Now restart Apache

systemctl restart httpd

Step 6. Configure Owncloud via web browser

Open web browser from other computer and then type the Ip address of the Fedora Server as follow

http://ip-address/owncloud

Enter the required information shown on that page.

Now enjoy Owncloud

install owncloud 10 on fedora 26

Thanks for reading this how to install Owncloud 10 on Fedora 26. See you in the next tutorial.

2 Comments

Leave a Reply

Your email address will not be published.


*