From Alpine Linux
Revision as of 15:03, 14 November 2012 by Larena (talk | contribs) (avail since 2.5)
Jump to: navigation, search

ownCloud is WedDAV-based solution for storing and sharing on-line your data, files, images, video, music, calendars and contacts. You can have your ownCloud instance up and running in 5 minutes with Alpine!


Currently ownCloud is available from Alpine 2.5 or greater. So, make sure you have it in /etc/apk/repositories. We will install it together with PostgreSQL and lighttpd. SQLite and Apache are also supported (not tested though).

# apk add owncloud-pgsql lighttpd

The web server user needs to have ownership on the following dirs:

  • /etc/owncloud
  • /usr/share/webapps/owncloud/apps
  • /var/lib/owncloud/data
# chown -R lighttpd.lighttpd /etc/owncloud
# chown -R lighttpd.lighttpd /usr/share/webapps/owncloud/apps
# chown -R lighttpd.lighttpd /var/lib/owncloud/data

Make sure you have FastCGI enabled in /etc/lighttpd/lighttpd.conf:

include "mod_fastcgi.conf"

Consider adding the following line for additional security to the owncloud configuration file, where the password database is stored:

url.access-deny = ("config.php")

Start the web server and PostgreSQL:

# /etc/init.d/lighttpd start
# /etc/init.d/postgresql start

Create a Postgresql user and database for ownCloud:

# psql -U postgres
postgres=# CREATE DATABASE owncloud;
postgres=# GRANT ALL ON DATABASE owncloud TO owncloud;
postgres=# \q

Link owncloud installation to web server directory:

 # ln -s /usr/share/webapps/owncloud /var/www/localhost/htdocs/owncloud

Some large apps, such as texteditor and videoviewer are in separate package:

 # apk add owncloud-texteditor owncloud-videoviewer

Finish Installation and Go!

Point your browser at http://<%MY_SERVER_IP%>/owncloud and follow the on-screen instructions to complete the installation, supplying the PostgreSQL user and password created before.


There are clients available for many platforms, Android included:

[ownCloud Sync clients]

[Android client]