How to install Owncloud 10 on Arch Linux 2017

Arch Linux Tutorial – Hello Linux users, today we will show you how to install Owncloud 10 on Arch Linux 2017. Owncloud is a great web appliance for file sharing and file storage service. You will have a Dropbox like service on your own server. The latest version of Owncloud 10.0.2 is now available on the official website. To install Owncloud server on Arch Linux, there are several things we need to do first. In this tutorial, I am using LAMP Server (Apache web server) as the back end.

Steps to install Owncloud 10 on Arch Linux 2017

Step 1. Install LAMP Server

First, we need to install LAMP (Linux Apache MySQL and PHP) on Arch Linux. I have created a complete tutorial to install LAMP Server on Arch Linux. There are few things we need to setup after installing LAMP using that linked tutorial.

Edit the PHP config file

sudo nano /etc/php/php.ini

Then, find and uncomment the following lines

extension=pdo_mysql.so
extension=mysqli.so
extension=gd.so

Install PHP modules

We also need to install several php modules needed by Owncloud

pacman -S php-gd php-intl php-mcrypt

Restart Apache afterward

systemctl restart httpd

Step 2. Create new MySQL/MariaDB database and user for Owncloud

Login to MySQL as root and create new database and user. See my example below. You can modify its database name, user and password as you like.

[root@archServer]: /tmp># mysql -u root -p
Enter password: 
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 16
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.02 sec)

MariaDB [(none)]> CREATE USER owncloud@localhost IDENTIFIED BY '12345';
Query OK, 0 rows affected (0.07 sec)

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

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

MariaDB [(none)]> EXIT
Bye

Step 3. Download and extract Owncloud 10

Download Owncloud

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

Extract Owncloud

tar -xvf owncloud-10.0.2.tar.bz2

Change permission

chown -R http:http owncloud
chmod -R 755 owncloud

Move Owncloud

mv owncloud /srv/http/

Step 4. Configure Owncloud via web browser

Open web browser and type the Arch Linux IP address

http://ip-address/owncloud

Now we need to create Admin user. Enter the MySQL/MariaDB database name, user and password created earlier.

Now finally, log in to your newly installed Owncloud 10 on Arch Linux.

install Owncloud 10 on Arch Linux

2 Comments

  1. Hola, buen dia realice todo el proceso y no tube ningun problema pero al momento de logearme con el usuario que se crea se queda en blanco. y no me permite acceder me puedes ayudar estoy muy interesado en este proyecto de nube privada.

  2. Hello, I followed all the steps and did not make any mistakes, but the last thing when I’m logging in I accept the password and the web page remains blank.

Leave a Reply

Your email address will not be published.


*


This site uses Akismet to reduce spam. Learn how your comment data is processed.