OwnCloud on WebFaction

I knew a day like that would come, but I did not know I would last so long with it. I run out of space on my free Dropbox, I have some more on Google Drive, but I do not want to use that as it has much worse UX than Dropbox. So I started to look for something else, and I found OwnCloud. A pretty neat solution for hosting your own cloud sync service.

Hosting

I use WebFaction.com as a hosting provider. I have been using them since November 2012, and I have to admit that it is really good. I have never experienced any downtime or slowness, the support is fast and helpful, and they are not that expensive. I am on 8.5 dollar monthly plan for 100GB of storage, 600GB of transfer a month, 512 MB of RAM and fair CPU share (if you use too much your process will be killed and you will be notified about it) running on CentOS 6 – 64bit. I am not sure about dedicated IP address, but since I started to use the service it changed only once during the server migration. Anyway, for more details pleas see WebFaction.com.

OwnCloud

The OwnCloud installation is pretty straightforward, but there are few obstacles. First of all, I could not make it work with PostgreSQL installation provided through WebFaction’s admin panel. I downloaded the source and compiled it on my own. Next step is to create new application, assign it to a domian/subdomain, download installation script from OwnCloud (just write wget https://download.owncloud.com/download/community/setup-owncloud.php in the command line when you are in your apps folder). Then launch the script from the browser. The OwnCloud will install itself the only thing you have to do is to remember to provide the correct port number for Postgres as when compiled from source it will not work on the default 5432. You need to open a port in WebFaction’s admin panel – you do it by adding application pgport, this opens a port for a custom application but only for internal traffic. Having that and after finishing the wizard process your own cloud should be usable through a browser. To make it work with the Desktop App you have to modify .htaccess file in the OwnCloud’s folder. The only line you need to add is

RequestHeader set XAuthorization %{HTTP_AUTHORIZATION}e env=HTTP_AUTHORIZATION

which should appear just after

RewriteRule .* - [env=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

That’s it. You can download now Desktop App, and try using that. If you have any problems or questions regarding setting up your own OwnCloud, please write them in the comments.

Leave a Reply