Comments on Your Cloud, Your Data, Your Way! - ownCloud 4.0 On CentOS 6.2 + nginx + PostgreSQL

Your Cloud, Your Data, Your Way! - ownCloud 4.0 On CentOS 6.2 + nginx + PostgreSQL This document describes how to install and setup ownCloud by "ownCloud community" on a CentOS 6.2 based webserver from tar package on a nginx and php-fpm with postgreSQL database as backend. For other distributions there might be minor changes as to the software prerequisites installation procedures. This guide will not only help install the product, but also understand why certain points are done the way they are done (this is most helpful for users with little or no knowledge who, like me some time ago, have only started using Linux).

5 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: Jeff H

I have followed these to letter, although I can add files on the web just fine, I can't remote sync the files at all.  It complains when using owncloud client, that it can't create the folders.  I looked at opening up the "files" subdirectory with 777 permissions but that failed also, so I am at a loss for right now.

 

By: Luke Vidler

Thanks!

 Really nicely documented. Great work.

By: Brad

Thanks for taking time to post this. I know just enough about networking to be dangerous and this really sped things up for me.

 Brad

By: alexnogard

I wrotte a tutorial about active directory authentication with owncloud if you want to go further; http://alexnogard.com/owncloud-4-authentication-active-directory-windows-server-2003-2008-2012/

By: Chris B.

Hi @all,

thanks for the great description. I know this article is based on older versions I want to describe my experience applying the described steps to CentOS 6.5 and OwnCloud 6.0.3.

As I found it as one of the first matches searching for installing ownCloud on CentOS this might still be interesting for others as well.

 These are the parts where my setup deviates from the instructions above:

Pre Setup Steps

II. Software repositories

I did not install the 'remi' repository

ownCloud Setup

I. Software prerequisites

I did not install php-magpierss because of its dependency to httpd

II. nginx webserver 

/etc/nginx/conf.d/owncloud.conf

I used owncloud.conf based on the ownCloud installation instructions

Troubleshooting

login loop

After the initial setup I could not login with the ownCloud admin user. Found these errors in /var/www/owncloud/data/owncloud.log:

"session_start(): open(\/var\/lib\/php\/session\/sess_uhu89bqa6ijcio8ldgpbnb3a61, O_RDWR) failed: No such file or directory
"session_write_close(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct

Solution

cd /var/lib/php
mkdir session
chmod -R 770 session
chown -R root:apache session

Contacts App not loading

Attempt to open the 'contacts' app opened the default app 'files'.
/var/log/nginx/access.log showed http error 307 for attempts to load
https://owncloud.sally.local/index.php/apps/contacts/

Solution: This threaded pointed into the right direction:
https://github.com/owncloud/core/issues/6840
I switched off eAccelerator in /etc/php.d/eaccelerator.ini by setting

eaccelerator.enable = "0"

Once more, thanks Denis for the great tutorial. I learned a lot and you saved me lots of time.

... Chris