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
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
tar -xvf owncloud-10.0.2.tar.bz2
chown -R http:http owncloud chmod -R 755 owncloud
mv owncloud /srv/http/
Step 4. Configure Owncloud via web browser
Open web browser and type the Arch Linux IP address
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.