Raspberry Pi OwnCloud 9 (Drop box Clone)

Updated to install owncloud-9.1.4-2.1

Convert your  35$ Raspberry Pi + OwnCloud into a DropBox Clone

Raspberry pi Personal Dropbox
Raspberry pi Personal Dropbox

To build your own private cloud storage (Dropbox alternative), ownCloud will need to be running on the Pi.

ownCloud is a self hosted Cloud storage that provides access to your data through a web interface or WebDAV while providing a platform to view, sync and share across devices easily—all under your control…ie Your own Dropbox 🙂

Security Footnote : ownCloud is best used to share files across the Internet. Sharing files across the Internet (that is, accessing ownCloud on your Pi from a remote location, such as your work) requires that you make your Pi “Internet facing” – by forwarding port 80 from your router. But before doing so, you should research and be aware of the attendant security risks and some of the measures needed to address them. A foot note at the bottom of the guide will give you a few pointers.

Strongly recommend using a Raspberry Pi 2 for this project. ownCloud will work with the older Pi models but might be slow.

Overview :

  • You will first need to configure your Pi to host a webserver.
  • Install ownCloud
  • Configure ownCloud.

Time and Difficulty :

  • Time : 45 to 60 mins  once you have the Raspbian Image file and the rest of the software.
  • Newbie Difficulty level : Moderately easy ; Will need to use terminal and type in commands.

What you will need :

  • Raspberry Pi 2 Model B or one of its clones like Banana Pi M1 or M2 or Banana Pro
  • Ethernet connection or a supported USB Wifi adapter for the Pi
  • SD or Micro SD Card that fits into your Pi (4GB or above is recommended)
  • USB Keyboard and Mouse
  • Connection to a TV or Monitor

You should seriously consider :

  • Learning about SSH and how to remotely access the Pi from another machine on your network.
  • Learning about Port forwarding settings for your Router.

STEP 1 : Update the Pi 

Log in to Raspbian and enter the following commands with out the quotes  :

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade

The steps above will update the software and the raspbian distribution to the latest available.

reboot your pi with “sudo reboot

STEP 2 : Build a Pi Webserver ( Step 1 is about 80% of the process and will take the better part of 2 hours)

STEP 3 : Install ownCloud and Associated Packages

 

To install ownCloud, we will enter commands at root level.

This needs to be done by logging in to Raspbian  and typing in “ sudo -i

To show that you are performing actions at root level, the terminal will display root@...#  

Enter the following commands at root level :

wget -nv https://download.owncloud.org/download/repositories/stable/Debian_8.0/Release.key -O Release.key
apt-key add - < Release.key

sh -c "echo 'deb http://download.owncloud.org/download/repositories/stable/Debian_8.0/ /' > /etc/apt/sources.list.d/owncloud.list"

(to create the file owncloud.list with the repository details)
apt-get update

(update the sources  )

  1. apt-get install owncloud

    (Install ownCloud)

You will need to enter a new password twice for root during the mysql package installation.

Once all the packages are installed, your Pi is running the latest version of ownCloud

From a web browser on your network, go to the ip address of yourpi/owncloud ( eg.  projpi.dyndns.com/owncloud or on your intranet via 192.168.x.xxx/owncloud)

You should be seeing your admin page to create your admin account at first run.

You now have fully functional OwnCloud server on your Raspberry Pi!

To point to webserver to load Owncloud as the default landing page, You will need to change the settings of Apache.

sudo nano /etc/apache2/sites-enabled/000-default.conf

 

Change the settings of DocumentRoot so that it reads

DocumentRoot /var/www/owncloud

Press Ctrl+x to exit and save changes.

Owncloud should now load as the default landing page.

 

 

Recommended steps to follow through :

  • Enable SSL and enforce logging in securely through https://yourserver.com/owncloud
  • Move your data folder from the default SD card to an auto mounted HDD or USB drive.
Enabling SSL on your Raspberry Pi webserver

Enter the following commands at the terminal with out the quotes :

  1. sudo -i” (to elevate to root from current user)
  2. mkdir /etc/apache2/ssl ” (create the folder ssl under apache2)
  3. openssl req -x509 -nodes -days 1095 -newkey rsa:2048 -out /etc/apache2/ssl/server.crt -keyout /etc/apache2/ssl/server.key ” (use openssl to generate a 3 year valid certificate in the folder created above). You will be asked to enter your data to fill out during the certificate creation.  It is important that you give a FQDN – Fully Qualified Domain Name format for Common Name. ( eg. rpi.projpi.com)
  4. nano /etc/apache2/sites-available/default-ssl”  (to use nano to edit file default-ssl  and add in the newly created certificate and key to apache)

You are looking to replace the two lines below :

SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key

apache1

 

With the two lines below :

SSLCertificateFile /etc/apache2/ssl/server.crt
SSLCertificateKeyFile /etc/apache2/ssl/server.key

apache2

Press Ctrl+X to exit nano and “Y” to save changes to the file.

6. ” a2enmod ssl ” ( to enable ssl)
7. “a2ensite default-ssl
8. “service apache2 restart ” (to restart apache2 )

You will now be able to access your ownCloud securely via https://youserver.com/owncloud (at log in time, your broswer nay give you a warning since you are using a self signed ssl certificate that has not been verified. Its ok to proceed )

Move your data folder from the default SD card to an auto mounted HDD or USB drive.

By default, ownCloud stores the data under its own folder which  is in /var/www/owncloud. Since the Pi runs the OS on the SD card, it will soon run out of space once you start storing your data.

The only way to have a long term ownCloud Pi server is to have the data stored in a USB HDD or SDD.

Ext4 or Ext3 are native linux file formats and should be used on the data drive instead of opting for a drive with a NTFS or HFS or FAT formats.

To move data from within the ownCloud folder to an external USB drive, we need to perform the following steps

The HDD drive that will be used to hold the ownCloud data needs to be auto mounted so that it is available evertime the Pi boots up. This can be done by following these steps.

After completing the steps to automount a data drive,  Enter the following commands at the terminal :

  1. sudo -i” (to elevate to root privileges)
  2. mkdir /media/data/ocdata” ( In the auto mounted HDD, make a folder called ocdata )
  3. service apache2 stop” ( To stop the webserver)
  4. nano  /var/www/owncloud/config/config.php ” (use the nano editor to open config.php that resides in /var/www folder)
  5. In config.php change the line  ‘datadirectory’ => ‘/var/www/owncloud/data‘, to ‘datadirectory’ => ‘/media/data/owncloud/data‘.ocdatafolderDo not create a new folder called data under /media/data/owncloud/ yet. We will copy the existing data folder to the new location.
  6. cp -R /var/www/owncloud/data /media/data/owncloud/data” ( copy recursively the data folder from /var/www/owncloud/data to /media/data/owncloud/data)
  7. chown -R www-data:www-data /media/data/owncloud/data” ( to make sure permission and ownershop of the new data folder is with www-data)
  8. restart webserver by typing in “service apache2 restart

You owncloud server now runs with a separate folder for its data on an automounted drive and connects with a  secure ssl connection.

76 thoughts on “Raspberry Pi OwnCloud 9 (Drop box Clone)”

  1. You’re in reality a just right webmaster. The site loading pace is incredible. It kind of feels that you are doing any unique trick. Moreover, The contents are masterwork. you have performed a magnificent job in this matter!

  2. Many thanks for the detailed instructions! I more or less followed it from start to finish and now have a working ownCloud server on my Pi! I just have one or two clarifications:

    * you can’t move the ownCloud data store to an external drive until you’ve logged in, created an admin account, and gone through the initial setup, as the “config.php” won’t contain those variables until after setup. So if you set up your data drive beforehand, you can tell ownCloud to use it when you create the admin account.

    * there are a couple of ownCloud features that don’t work without additional configuration – there’s a cron job that should be installed so internal maintenance will run smoothly, and email notifications will require setting up the exim4 mailer with a smarthost.

    I’ve converted about 80% of the steps into an Ansible playbook, so if you ever want to update this article, please contact me and maybe you can redo it with the playbooks, as it should save a lot of time during setup.

    1. Hey Ed, thanks for the pointers. Will try them out and update the page. Great idea on the Ansible playbook! Let me know when you are done and will post a link. 🙂

  3. Hi I love your site. I am trying to setup this server.
    I have a couple questions.
    1. what are the steps I need to follow from the webserver. I am seting it up as a local cloud only at work and don’t have access to play with the router.
    2. I am having issues in step 3: see bellow the 2. under step 2 is having issues.and 3. doesn’t work
    also during the ownlcoud instal it doesn’t ask for a password for MysQl.

    wget http://download.opensuse.org/repositories/isv:ownCloud:community/Debian_7.0/Release.key
    --2015-05-07 00:37:18--  http://download.opensuse.org/repositories/isv:ownCloud:community/Debian_7.0/Release.key
    Resolving download.opensuse.org (download.opensuse.org)... 195.135.221.134, 2001:67c:2178:8::13
    Connecting to download.opensuse.org (download.opensuse.org)|195.135.221.134|:80... connected.
    HTTP request sent, awaiting response... 301 Moved Permanently
    Location: http://download.opensuse.org/repositories/isv:ownCloud:/community/Debian_7.0/Release.key [following]
    --2015-05-07 00:37:18--  http://download.opensuse.org/repositories/isv:ownCloud:/community/Debian_7.0/Release.key
    Reusing existing connection to download.opensuse.org:80.
    HTTP request sent, awaiting response... 301 Moved Permanently
    Location: http://download.opensuse.org/repositories/isv:/ownCloud:/community/Debian_7.0/Release.key [following]
    --2015-05-07 00:37:18--  http://download.opensuse.org/repositories/isv:/ownCloud:/community/Debian_7.0/Release.key
    Reusing existing connection to download.opensuse.org:80.
    HTTP request sent, awaiting response... 200 OK
    Length: 1003 [application/pgp-keys]
    Saving to: `Release.key.3'
    
    100%[===========================================================================================================================================================================================&gt;] 1,003       --.-K/s   in 0s      
    
    2015-05-07 00:37:18 (23.5 MB/s) - `Release.key.3' saved [1003/1003]
    
    root@raspberrypi:~# apt-key add – &lt; Release.key.3
    gpg: can&#039;t open `–&#039;: No such file or directory
    root@raspberrypi:~# apt-key add –&gt; /etc/apt/sources.list.d/owncloud.list
    root@raspberrypi:~# apt-get update
    E: Type '‘deb' is not known on line 1 in source list /etc/apt/sources.list.d/owncloud.list
    E: The list of sources could not be read.
    

    1. Hey Julian, You will need to enter sudo apt-key add - < Release.key instead of “apt-key add – < Release.key.3". The "–" should be changed to "-" in the "- < R.." and the extra ".3" needs to be removed. The text formatting in the browser and WordPress is changing this to the longer minus sign and throwing up the error. Hope this helps. Once your webserver is done, Just follow the ownclould installation steps. Its fairly simple but can get frustrating if there are any minor changes to the way the commands are typed in. Keep at it and you will have it setup in no time at all 🙂

    1. Hi Joe. The error is caused by the smart quotes before deb and after /. You will need to enter sudo echo 'deb http://download.opensuse.org/repositories/isv:/ownCloud:/community/Debian_7.0/ /' >> /etc/apt/sources.list.d/owncloud.list exactly as it is. Hope it helps 🙂

    1. I’m having the same issue….. can not get this to work. I’ve copied and pasted the command as suggested and I still get the Malformed line 1 error.

  4. Tanks a lot for this tutorial! My owncloud is upp and works fine. The problem is, I can’t access it through the mobile app. It crashes direct but when connected to a commercial owncloud it runs smooth. I have activated ssl and access the app with https. It asks for certificate when logging in and it seems to work but then it crashes. I guess there is something I have missed to configure but I don’t know what to do. Can You help me on the way to a fullt working owncloud?

    1. I fond out myself. I had owncloud 4 installed although I think I have followed your guide as it’s written. After upgrading from tarball on owncloud.com it works perfekt with owncloud 8.1 and then the mobile app works as a charm on android as well as ios.

      1. Hey Peter. Glad you got it sorted. Very strange how own cloud 4 got installed. An apt-get upgrade after updating the repo list should have also brought the own cloud installation upto date.

    1. hey. It looks like the noip address is not pointing to your dynamic ip address set by your isp. Looks like a minor configuration issue and should work with the free version of noip. The best way to test it is, find out the ipaddress of your home internet connection. Doing a google search of ipaddress will show you your current ipaddress. Enter that value in your noip account and test to see if https://myserver.ddns.net/owncloud works. If it does, the issue lies in the noip dynamic update client and noip account settings. If it does not work, then the issue probably lies with the port forwarding of ports 80 and 443 from your router to your owncloud server. Eitherways, there is no need to upgrade from the free to a paid account until it works. Hope this helps

    1. hey Keroro, It’s a great idea to use a program that spins down the hdd when not in use. This will extend the life of the hdd. I use hd-idle for my pi that is connected to WD elements 2TB hdd.

      1. Hello all,

        I just followed the guide and everything works fine, expect the hard drive hibernation.
        I followed the instructions of the link above (htpcguides.com) to install and configure hd-idle, but it seems that my hard drive still wakes up after some times even if I don’t access my owncloud server.
        Is there any changes in the owncloud config since last year?
        Thanks,
        Jean

  5. Hey d3v,
    first of all, thanks for this awesome guide!
    This is my third try to set up my ownCloud and this time I mean it!
    Sadly I am stuck adding the ownCloud repository.
    After “ apt-key add – > /etc/apt/sources.list.d/owncloud.list ” I recieved no answer but the “ apt-get update “ gives me “E: Malformed line 1 in source list /etc/apt/sources.list.d/owncloud.list (dist)
    E: The list of sources could not be read.

    The key download was successfull by the way.

    I hope you can help me. I rebooted and retyped everything but no chance..

    Greetings Dope

      1. hey hey d3v,

        I had the genius idea to open this site via the GUI and copy pasted the command and it worked! But I have some problems with the SSL. After did all the steps and used the noip host for FQDN, I still can connect via the IP and the domain but only via http not via https. The domain gives me no response and the IP gives me:
        “You are accessing the server from an untrusted domain.

        Please contact your administrator. If you are an administrator of this instance, configure the “trusted_domain” setting in config/config.php. An example configuration is provided in config/config.sample.php.
        Depending on your configuration, as an administrator you might also be able to use the button below to trust this domain.

        Add “192.168.0.189” as trusted domain “

        Do I have to configure my router further than forwarding port 80? Any idea?

        Greetings Dope

        1. Hey Dope. For ssl, you will need to forward port 443 as well. The warning of the ssl will happen since you are using a “self-signed” certificate. To get rid of the warning, you will need to use a 3rd party certified ssl cert like one issued by commodo. Cheers

    1. Hey Simara, errors usually creep up when the text is manually entered. I recommend, logging in via ssh or using the gui to copy and paste. Best of luck ☺

  6. Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName
    … waiting apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName

    I keep getting this when i restart apache2. I have a noip domain and have set everything else up accordingly. i am not sure which configure file to rename the server. if you have any suggestions they would be appreciated.

    thank you for the tutorial. i think i am close to getting this up and running

    1. Hey Toby, I am not sure where the issue exists. Did you try to enter the ip address of the Pi owncloud server on your network and see if that works? Eitherways 127.0.1.1 looks wrong. Typically, on an internal network, the local ip address will look something along the lines of 192.168.x.x . Hope this helps 🙂

  7. Great post, thank you very much for your help with this. It is a project I had delayed for a lot of time. I have everything running now using https. My only problem is that I do not seem to be able to move my database to my external hdd. I (think) I followed the instructions on how to automount and then how to move the database to the new hdd but no luck. Whenever I modify the config.php to point to my datadirectory I get an error:
    Data directory (/……/owncloud/directory/data) is invalid
    Please check that the data directory contains a file “.ocdata” in its root.
    I applied the chown and chmod commands after the modifications. Any comment / help / hint / guidance on this issue? It would be greatly appreciated!

    1. hey David, try elevating to root and running rsync to mirror the folder from your current data folder to your new data folder. Should work 🙂

  8. Hello, thanks for the very good guide.
    I’m hoping someone can help me, I’m trying setting this up for a month and while it does work sometimes, most of the times it doesn’t.
    Specifically: it stops working at random (apparently). Only three things I found so far as clues: 1) I find the external HDD unmounted 2) apache2 gives a segmentation 11 error. 3) internet access is fine as I can reach my basic page: https://xxx.ddns.net which only contains an index with one item: ‘owncloud’. Owncloud is not accessible, connection times out, can’t be reached.

    My configuration is: Raspbian (clean and updated), Owncloud 8, apache2, MySQL, an external HDD.
    When it works, everything works perfectly: HDD set to automatically mount at startup, apache2 goes up and stays, no-ip clinet service automatically starts up and syncs my domain name to my ext ip and my internal ip is static. Basically everything absolutely perfect.
    And yet, almost every day at random times it simply stops working. I tried possibly tens of ‘solutions’ such as disabling mods, reinstalled everything at least 5 times, every time is the absolute same result.
    Please could you help me before I go mad?

    1. Hey Lorenzo, replace the power sources for the HDD and the Pi and see if that resolves the issue. There might be a case where the powers ource is causing the hdd to disconnect or spin down. Best of luck 🙂

  9. Hello, i’ve followed the directions and have some minor issues. Currently the ‘personal’, ‘users’,’help’,’logout’ buttons in the upper right dropdown work, but the ‘admin’ does not work. it will show an empty page with no error message. I get this result from the raspberry pi browser and my safari browser.

    Is there an error log with ownCloud where i can find more info on what is going wrong?

    1. ok, so i have figured it out. apparently you cannot hit the admin pages from the same machine; it works when i hit it from another machine. Also, this app is really cool. i like this tutorial. one limitation to running this app on a raspberry pi is that it is a 32bit machine and thus file limits are 2GB.

      i just ordered a linux intel compute stick and will install this app on that cuz its 64bit. i am thinking of repurposing my raspberry pi for wordpress now that i know how capable it is.

      thanks again for this tutorial! i will put a link to it on my blog.

  10. I already have a PI with LAMP + SQL and an auto-mounted external HDD for data, however the data disk is formatted as NTFS.
    You mention that EXT should be used.
    Is this a must and I should re-partition my disk to have a properly sized EXT partition (or add another drive) with EXT or is it only a recommendation?

    1. EXT is a native linux format. Since the Pi is underpowered to start with, it is worth considering a native file format for it to work with. Other than that, I have found working with NTFS has file ownership and permission issues. You could try it and see how it performs. You always have the option to change to a ext based file system with a backup drive. have fun 🙂

  11. My plan is to use my hard drive both as a home file server AND a webserver for owncloud. In the beginning of your tutorial you mention that there are risks to having an internet facing raspberry. Is there a risk of exposing my files that aren’t on owncloud to the web? Would putting them on a different partition help? Any advice is appreciated.

    And thanks for the tutorial!

    1. Having your private files on a machine that allows outside access is “risky”. Putting them on different partitions is a very weak protection from someone who has access to your machine. Make sure you put in all the security protocols in place. Since the Pi is just 35usd, might be worth considering two pi s humming doing dedicated but very different things 🙂

  12. Hi I did try yours Enabling SSL

    I added
    SSLCertificateFile /etc/apache2/ssl/server.crt
    SSLCertificateKeyFile /etc/apache2/ssl/server.key
    then
    a2enmod ssl
    a2ensite default-ssl
    service apache2 restart

    but https not working for me.

    Just what I had before. I had apache2 with Listen 8010 because I have already on different rpi port 80 open, and I also open new port for 9443 because also I have 443 open on different rpi.

    on my rpi where I have owncloud I have also phpmyadmin. So maybe this is problem.

  13. Hey there,

    I´m running a raspberry pi 2 with kodi(xbian) on it and I wanted to run owncloud parallel.
    Whilst everything went perfect till I started the owncloud installation itself.
    The ” apt-get install owncloud ” doesn´t prompt any password entries etc. and the owncloud service is not started.
    It´s pretty weird because it seems it is installed correctly but I´m missing the typical password entries. And of course the running owncloud 🙂

    Any clue what I´m doing wrong?

    Thanks for the detailed tutorial anyways!

    1. Hey Patrick, to do this successfully, you will probably need to install raspbian and then install kodi and owncloud on raspbian using their repos. Given how small and affordable the Pi is, why not use two separate and dedicated machines 🙂

  14. There’s a typo in the “Move to an External HD” section. You do “mkdir /media/data/ocdata”, but then point the data directory to “/media/data/owncloud/data”. Confused me for a minute.

    Excellent writeup though. I’m up and running and very happy about it.

  15. Hi please help for beginer
    I have instaled owncloud on orangepi PC/ dietpi installation
    works fine but want to make https!
    try to use this tutorial but after – a2ensite default-ssl
    ERROR: Site default-ssl not properly enabled: /etc/apache2/sites-enabled/default-ssl.conf is a real file, not touching it
    So which files have to change or make for https..eg??
    starting from:
    1- mkdir /etc/apache2/ssl
    2-openssl req -x509 -nodes -days 1095 -newkey rsa:2048 -out /etc/apache2/ssl/server.crt -keyout /etc/apache2
    3-nano /etc/apache2/sites-available/default-ssl
    file inside looking diferent
    how to redirect 80 to 443 ? where ?
    where I have to put my no-ip dns server name?

    thanks in advance

  16. Hi d3v, your tutorials are very easy for noobs and beginners to follow and learn. You deserve more than 5 stars. Will you please help by putting up a very easy to understand and to follow tutorial for beginners, on how to install Turnkey on Raspberrry Pi 2 B ?

  17. I did all of the steps but I get the error of:
    Data directory(/media/data/owncloud/data) is readable by others users. Please change the permissions to 0770 so that the directory cannot by other users.

    And this only happens in the raspberry Pi, If I access from my laptop is fine.

  18. Working like a charm 🙂
    maybe one question do you know how to perform easy upgrade to 8.2.2 ?
    I had to reinstall after last try :/

  19. Hi d3v, I everything wonderful so far. 1 problem though:

    On command “apt-get install owncloud” the console returns:

    “Processing triggers for man-db (2.7.0.2-5) …
    /usr/bin/mandb: can’t write to /var/cache/man/12727: No space left on device”
    and
    “Errors were encountered while processing:
    /var/cache/apt/archives/mysql-server-5.5_5.5.44-0+deb8u1_armhf.deb
    E: Sub-process /usr/bin/dpkg returned an error code (1)”

    I’m fairly certain I didn’t make any mistakes when creating the list or any step before.

    Do you know a workaround or something?

    Cheers!

    1. Hey n3wbie, the error says ‘….no space left on the device’. You are running out of space on the SD card.trya clean install or a larger sdcard. Hope this helps. Cheers!

      1. Well, then the formatting using SDFormatter or the image writing using Win32DiskImager did not work properly because it’s an 8GB Maxwell Class 10 SD card…

        Any tips for that?

          1. Yea, sure… That’s the first thing I tried. I will just try it once again and see what I can do differently.

  20. Perfect manual, big compliments for it. Got it all working (did it prior as well but lost the SD that ran it all) but am struggling to get the apple timecapsule linked correctly. Before posting exhausting content, by any chance you have experience with that as well? 🙂

  21. edit : solution found, some stuff with the fstab passing that needed extra. posting it as it might help people struggling with the same. To get this clear, it has little to do with this article, it just attaches a apple time device as storage space for OwnCloud.

    Added line in /etc/fstab, replace ip/user/pass with your TC accounts you setup.

    //YOUR-TC-IP/Shared-or-foldername /mnt/timecapsule cifs user=USERNAME,pass=YOURPASS,rw,uid=33,gid=33,iocharset=utf8,sec=ntlm 0 0

    Might need to check user id and group id numbers in /etc/passwd tho these are the defaults. Note that it will bind TC file security to www-data (can be limited, but its a good start to keep it easy).

    Within the config.php for owncloud you can supply the /mnt/timecapsule path as media path. If you run into .ocdata errors just remove the file and copy the owncloud.log file to .ocdata (it fixes itself).

    Again, awesome tutorial.

  22. Hi, me again.
    I figured out I had to expand the filesystem in the raspi-config (I feel stupid now). Now the ownCloud server is working but my knowledge about SQL is limited. So I don’t know what to choose : SQLite;MySQL/MariaDB;PostgreSQL.

    Is SQLite suitable for a Pi larger files and multiple desktop clients?

  23. I unfortunately am not a computer expert but I found a project that has been involved in developing this item for me. I live in Italy and one company has created a project based exactly on raspberry and owncloud. (http://www.overcastcloud.it)

    1. Hey Davide. Cannot recommend this company at all. All they seem to be doing is installing owncloud on a raspberry pi with a storage device. The performance of the setup will depend on the users internet connection. While it is fun and fairly easy to set up an owncloud pi setup, even for a noob, the setup will be too slow to be used for a commercial or a soho environment. It is great for personal use though 🙂

  24. everything was going smoothly till it came time to redirect to https… I make the directory, create the key (i used my servers .ddns.net/owncloud address as the fqdn), bu when i go to edit the directory and change the two lines you say to, the directory is empty….. what is going on here?

    1. there is a typo in the article (or maybe owncloud changed files naming on recent version).
      type:
      nano /etc/apache2/sites-available/default-ssl.conf

  25. Hi,
    Thanks for this article.
    I already had apache installed so simply installed owncloud and the SSL certiicates as per the article. made sure port 443 is forwarded on my router.
    I now have a strange problem:
    Accessing via the local network ip – no problem
    Accessing using the external network ip – no problem. This means that port 443 is open.
    Accessing my website which is on the same pi with http://www.mydomainname.com – no problem. This means that my domain name is properly translated to an IP (I use DuckDNS)
    Accessing using https://mydomainname/owncloud – get a connection error.

    What could be the reason for this

  26. Hey there, when I run this command nano /etc/apache2/sites-available/default-ssl , while setting up the SSL security, I get a blank file (nano is creating a new file), so I have no other file to edit like in the picture shown. Any help please?

    Thanks!

    1. Solved it and got it working perfectly! Using
      nano /etc/apache2/sites-available/default-ssl.conf

      must have been a typo in the original guide, Thanks for the wonderful guide!! 🙂

  27. I wanted to switch from sqlite to MySql.
    Looked up this issue and it seemed a bit complicated so I decided to remove owncloud and re install it and this time select MySql.
    According to info found ont he net this involved simply deleting the owncloud directory from /var/www.
    Repeated the installation procedure, but althougeverything seems to go with no problems the /var/www/owncoud directory is not created.
    What can be the reason for this?

  28. Article title is “Raspberry Pi OwnCloud 9 (Drop box Clone)”, but after i followed the steps, I ended up with OwnCloud 8.1.8 and a message in the web page suggesting an upgrade to 8.2.5. The browser tab title for this page is “Raspberry Pi OwnCloud 8” Is there somehtign we need to change int he setup to get OwnCloud 9?

  29. Hello, so I’ve been trying to setup this cloud server and it all goes smoothly until we get to the part where I mount the HDD’s. I am using four flash drives to store data and they are connected through a USB splitter. It all works until I do the chown command. I get this output.

    root@CloudServer:~# chown -R www-data:www-data /media/data/owncloud/data
    chown: changing ownership of ‘/media/data/owncloud/data/owncloud.log’: Operation not permitted
    chown: changing ownership of ‘/media/data/owncloud/data/.htaccess’: Operation not permitted
    chown: changing ownership of ‘/media/data/owncloud/data/index.html’: Operation not permitted
    chown: changing ownership of ‘/media/data/owncloud/data/owncloud.db’: Operation not permitted
    chown: changing ownership of ‘/media/data/owncloud/data/.ocdata’: Operation not permitted
    chown: changing ownership of ‘/media/data/owncloud/data/updater_backup’: Operation not permitted
    chown: changing ownership of ‘/media/data/owncloud/data/Admin/files/Documents/Example.odt’: Operation not permitted
    chown: changing ownership of ‘/media/data/owncloud/data/Admin/files/Documents’: Operation not permitted
    chown: changing ownership of ‘/media/data/owncloud/data/Admin/files/Photos/Squirrel.jpg’: Operation not permitted
    chown: changing ownership of ‘/media/data/owncloud/data/Admin/files/Photos/San Francisco.jpg’: Operation not permitted
    chown: changing ownership of ‘/media/data/owncloud/data/Admin/files/Photos/Paris.jpg’: Operation not permitted
    chown: changing ownership of ‘/media/data/owncloud/data/Admin/files/Photos’: Operation not permitted
    chown: changing ownership of ‘/media/data/owncloud/data/Admin/files/ownCloud_User_Manual.pdf’: Operation not permitted
    chown: changing ownership of ‘/media/data/owncloud/data/Admin/files’: Operation not permitted
    chown: changing ownership of ‘/media/data/owncloud/data/Admin/cache’: Operation not permitted
    chown: changing ownership of ‘/media/data/owncloud/data/Admin’: Operation not permitted
    chown: changing ownership of ‘/media/data/owncloud/data/.locks’: Operation not permitted
    chown: changing ownership of ‘/media/data/owncloud/data’: Operation not permitted

    I have no idea why this is happening and have kind of hit a wall on what to do with it, literally everything works up to that point but it just seems to stop when I try to do this step, can anyone lend a hand as to what I’m doing wrong?

  30. Hello,

    My Internet Provider gives me a static IP address that is never changed. Is it still necessary to make a NO IP dynamic DNS configuration? If no, how to set up SSL and what to write here:
    QDN – Fully Qualified Domain Name format for Common Name. ( eg. rpi.projpi.com)

    Thank you

  31. There are ready-to-use OS images for the purpose on SourceForge, as owncloud-raspberrypi (old) or BinaryEmotions’ Raspberry ownCloud (newest).

Leave a Reply