Installation and Setup of ownCloud on Arch Linux


This tutorial presumes that a preferred stack like LAMP stack is  already deployed and configured on the system. If a file or a command needs changes at any time, then the text to be changed will appear red.

ownCloud- what is it?

An open source, online storage solution- ownCloud is very similar to Google Drive or Dropbox. ownCloud’s advantage is that the server is not located some place else but is at a place that it has been installed upon.


As stated before, LAMP should be installed alongwith MDB2 pear module.

pacman -Sy php-pear
pear install MDB2

Now install ownCloud from the repository.

pacman -Sy owncloud

In order to enable it usable, copy the sample configuration file.

cp /etc/webapps/owncloud/apache.example.conf /etc/httpd/conf/extra/owncloud.conf

Now you have to provide it for Apache. So add this line to /etc/httpd/conf/httpd.conf.

Include /etc/httpd/conf/extra/owncloud.conf

Now you will have to enable the list provided below of php extensions in /etc/php/php.ini. The lines that require to be uncommented look like ; In order to uncomment it, simply remove the semicolon (;).










In-built Webdav also needs to be disabled  in apache. Open /etc/httpd/conf/httpd.conf and search the lines LoadModule dav_module
 and LoadModule dav_fs_module modules/ and comment both of them out by using a hash.

# LoadModule dav_module modules/
# LoadModule dav_fs_module modules/

Now open /etc/httpd/conf/extra/owncloud.conf and revise the
file as per your liking.

<IfModule mod_alias.c>
Alias /owncloud /usr/share/webapps/owncloud/
<Directory /usr/share/webapps/owncloud/>
   Options FollowSymlinks
   Order allow,deny
   AllowOverride all
   allow from all
   php_admin_value open_basedir
<VirtualHost *:80>
    ServerAdmin [email protected]
    DocumentRoot /usr/share/webapps/owncloud
    ErrorLog logs/
    CustomLog logs/ common

Now mysql database for ownCloud needs to be created.

$ mysql -u root -p
sql> CREATE DATABASE owncloud;
sql> CREATE USER 'owncloud'@'localhost' IDENTIFIED BY '<span
style="color: red">password';
sql> GRANT ALL PRIVILEGES ON owncloud TO 'owncloud'@'localhost' WITH
sql> \q

Following this, simply restart (or start, just replace restart with start) httpd and this completes the installation.

# systemctl restart httpd


For the http user, you may want to make the owncloud webapp folder readable.

# chown -R http.http /usr/share/webapps/owncloud

Open any web browser, like Google Chrome, Firefox, etc. and go to your domain name or IP and the path to any alias that you set in /etc/httpd/conf/extra/owncloud.conf (e.g. Now input your preferred credentials like username, password, and complete database information.

Your ownCloud is completely set up and ready:)!

KB Admin has written 46 articles