ownCloud

Questions about hosting a Website, using MySQL and PhP may be posted here.
Forum rules
This is a user forum for Synology users to share experience/help out each other: if you need direct assistance from the Synology technical support team, please use the following form:
https://myds.synology.com/support/suppo ... p?lang=enu

ownCloud

Postby jmurre » Mon Nov 14, 2011 8:08 pm

Hi everyone,

Is there a way to install ownCloud (http://www.owncloud.org) on a Synology? This is a cloud service that can use WebDav and FTP.
On the install page I can see that "Web server with Apache, PHP >= 5.2 & MySQL/SQLite" is needed, so it should work somehow with a Synology. I tried it, but my knowledge is not sufficient for this.

Below is the install guide (looks simple enough):

1. Download ownCloud from repository: git clone git://gitorious.org/owncloud/owncloud.git

2. Give rights to the web server via FTP client, create a directory data, set permissions to 750 and those of config/ to 777
If you are in a shared hosting environment, your ftp-user and the user the webserver runs on might not be the same. If you get an error about permissions while trying to install or while trying to upload use 770 instead, but be aware of that your data could be writable for other users on the server then. Please refer to your web host’s documentation for their specific implementation of user rights.

3. via SSH without root: setfacl -Rm d:u:YOUR-SSH-USERNAME:rwx,u:www-data:rwx owncloud/ (only works when acl is installed)

4.via SSH with root: chown -R www-data:www-data owncloud/
(on Debian-like distributions, the Apache user & group is www-data, while on e.g. CentOS, it’s apache.)

5.Enable the .htaccess if that’s not automatic for your server
You need to edit /etc/apache2/sites-enabled/000-default, look for /var/www and change AllowOverride None to AllowOverride All if not already set. Otherwise your files will be viewable from the web.
Then restart Apache: sudo /etc/init.d/apache2 restart

6.Open the address of ownCloud’s subdirectory in a web browser and fill out the installation form.

I have cloned the installation and set the rights on the data folder. From point 3, I have trouble executing the given lines. When I try to open the page without points 3,4 and 5 I get:
Code: Select all
Data directory (/volume1/web/owncloud/data) not writable by ownCloud

Permissions can usually be fixed by giving the webserver write access to the ownCloud directory

Anyone who can help me with this?
User avatar
jmurre
Rookie
Rookie
 
Posts: 35
Joined: Mon Mar 16, 2009 10:01 am
Location: The Netherlands

Re: ownCloud

Postby sjeph8je » Mon Nov 14, 2011 10:50 pm

Hi,

Looks like a nice piece of software :D

You should use the CLI via SSH and change the permissions for the ownCloud directory to nobody:nobody. The apache runs as nobody.
If you use mysql be careful to name the database without any capitals because the wizard will try to create the database with only lowercase letters
Synology DS-209 | DSM 4.1-2668 | 2 x WD20EARS (RAID1) (Time Backup | PhpMyAdmin | PhpLdapAdmin | PhpPgAdmin | Mailstation 2 | Svn | Directory server | Syslog server)
  • USB Conceptronic CHD3SU | WD20EARS (Ext-4)
Synology DS-209 | DSM 4.2-3202 | 2 x WD5000AAKS (RAID0) (syslog server)
  • USB Conceptronic CHD3NET | WD5000AAVS (Ext-4)
Corruption wears infinite disguises.
User avatar
sjeph8je
Knowledgeable
Knowledgeable
 
Posts: 324
Joined: Fri Jan 29, 2010 10:06 pm
Location: Netherlands

Re: ownCloud

Postby kerryandjane » Tue Nov 15, 2011 9:53 am

sjeph8je wrote:You should use the CLI via SSH and change the permissions for the ownCloud directory to nobody:nobody. The apache runs as nobody.


sjeph8je is right.
So to install owncloud.

1. SSH in as root
2. Paste the following code.
Code: Select all
cd /volume1/web/
git clone git://gitorious.org/owncloud/owncloud.git
mkdir /volume1/web/owncloud/data
chmod 750 /volume1/web/owncloud/data
chmod 777 -R /volume1/web/owncloud/config
chown -R nobody:nobody /volume1/web/owncloud/


.... you should be good to go after that.
DS209+ 2 x 2TB HD's (2xWD20EARS-00S8B1)
running latest firmware DSM 4.2
SparkLAN CAS-371W IP Cam
iPhone 3GS with SynoDS
and slim PS3
Get tech or die trying
User avatar
kerryandjane
Versed
Versed
 
Posts: 218
Joined: Tue Feb 03, 2009 3:39 pm

Re: ownCloud

Postby jmurre » Tue Nov 15, 2011 10:02 am

Great, that helped a lot. I was able to configure the application now with MySQL and a login. There are still some minor issues I see pop-up, but it seems to be working for now.
User avatar
jmurre
Rookie
Rookie
 
Posts: 35
Joined: Mon Mar 16, 2009 10:01 am
Location: The Netherlands

Re: ownCloud

Postby Mysticalman » Wed Nov 16, 2011 12:01 am

Looks like an awesome package I have been looking for something like this for a while.

Did you get everything running yet?
Mysticalman
I'm New!
I'm New!
 
Posts: 2
Joined: Tue Mar 22, 2011 7:39 pm

Re: ownCloud

Postby kerryandjane » Wed Nov 16, 2011 7:55 am

Works for me.

I've created an spk feel free to download and use as you will.

http://www.mediafire.com/?51xq6paa7i515og
DS209+ 2 x 2TB HD's (2xWD20EARS-00S8B1)
running latest firmware DSM 4.2
SparkLAN CAS-371W IP Cam
iPhone 3GS with SynoDS
and slim PS3
Get tech or die trying
User avatar
kerryandjane
Versed
Versed
 
Posts: 218
Joined: Tue Feb 03, 2009 3:39 pm

Re: ownCloud

Postby sjeph8je » Wed Nov 16, 2011 8:04 am

Just follow the instructions above and from the install and you should get it up an running.

That said it looks like browser support is flaky, with opera I can't upload any files because the button isn't working. IE doesn't show all titles / options.

Still it is workable :wink:
Synology DS-209 | DSM 4.1-2668 | 2 x WD20EARS (RAID1) (Time Backup | PhpMyAdmin | PhpLdapAdmin | PhpPgAdmin | Mailstation 2 | Svn | Directory server | Syslog server)
  • USB Conceptronic CHD3SU | WD20EARS (Ext-4)
Synology DS-209 | DSM 4.2-3202 | 2 x WD5000AAKS (RAID0) (syslog server)
  • USB Conceptronic CHD3NET | WD5000AAVS (Ext-4)
Corruption wears infinite disguises.
User avatar
sjeph8je
Knowledgeable
Knowledgeable
 
Posts: 324
Joined: Fri Jan 29, 2010 10:06 pm
Location: Netherlands

Re: ownCloud

Postby jmurre » Thu Nov 17, 2011 8:52 am

I still have some strange issues. When I open the Settings page and then go to admin, the upper part of the page is filled with:
Code: Select all
Warning: is_executable(): open_basedir restriction in effect. File(/usr/bin/php/mp3info) is not within the allowed path(s): (/etc:/etc.defaults:/opt/share/pear:/tmp:/usr/bin/php:/usr/syno/synoman:/var/packages/MailStation/target/roundcubemail:/var/run:/var/services/blog:/var/services/homes:/var/services/photo:/var/services/web:/var/spool/php:/volume1/@tmp/php:/volume1/web/owncloud/data) in /volume1/web/owncloud/lib/helper.php on line 324 Warning: is_executable(): open_basedir restriction in effect. File(/var/packages/MailStation/target/roundcubemail/mp3info) is not within the allowed path(s): (/etc:/etc.defaults:/opt/share/pear:/tmp:/usr/bin/php:/usr/syno/synoman:/var/packages/MailStation/target/roundcubemail:/var/run:/var/services/blog:/var/services/homes:/var/services/photo:/var/services/web:/var/spool/php:/volume1/@tmp/php:/volume1/web/owncloud/data) in /volume1/web/owncloud/lib/helper.php on line 324 Warning: is_executable(): open_basedir restriction in effect. File(/volume1/@tmp/php/mp3info) is not within the allowed path(s): (/etc:/etc.defaults:/opt/share/pear:/tmp:/usr/bin/php:/usr/syno/synoman:/var/packages/MailStation/target/roundcubemail:/var/run:/var/services/blog:/var/services/homes:/var/services/photo:/var/services/web:/var/spool/php:/volume1/@tmp/php:/volume1/web/owncloud/data) in /volume1/web/owncloud/lib/helper.php on line 324 Warning: is_executable(): open_basedir restriction in effect. File(/usr/bin/php/ldap_bind) is not within the allowed path(s): (/etc:/etc.defaults:/opt/share/pear:/tmp:/usr/bin/php:/usr/syno/synoman:/var/packages/MailStation/target/roundcubemail:/var/run:/var/services/blog:/var/services/homes:/var/services/photo:/var/services/web:/var/spool/php:/volume1/@tmp/php:/volume1/web/owncloud/data) in /volume1/web/owncloud/lib/helper.php on line 324 Warning: is_executable(): open_basedir restriction in effect. File(/var/packages/MailStation/target/roundcubemail/ldap_bind) is not within the allowed path(s): (/etc:/etc.defaults:/opt/share/pear:/tmp:/usr/bin/php:/usr/syno/synoman:/var/packages/MailStation/target/roundcubemail:/var/run:/var/services/blog:/var/services/homes:/var/services/photo:/var/services/web:/var/spool/php:/volume1/@tmp/php:/volume1/web/owncloud/data) in /volume1/web/owncloud/lib/helper.php on line 324 Warning: is_executable(): open_basedir restriction in effect. File(/volume1/@tmp/php/ldap_bind) is not within the allowed path(s): (/etc:/etc.defaults:/opt/share/pear:/tmp:/usr/bin/php:/usr/syno/synoman:/var/packages/MailStation/target/roundcubemail:/var/run:/var/services/blog:/var/services/homes:/var/services/photo:/var/services/web:/var/spool/php:/volume1/@tmp/php:/volume1/web/owncloud/data) in /volume1/web/owncloud/lib/helper.php on line 324

Anyone has any idea what to do about this?
User avatar
jmurre
Rookie
Rookie
 
Posts: 35
Joined: Mon Mar 16, 2009 10:01 am
Location: The Netherlands

Re: ownCloud

Postby mheidt » Tue Jan 31, 2012 6:37 pm

@ kerryandjane
Thanks for your shell commands. They worked like a charm.
The pkg didn't btw.

I followed the instructions here first.
http://www.chainsawonatireswing.com/201 ... on-ds411j/

and installed git and mp3info

which @jmurre, should solve your problem.
mheidt
I'm New!
I'm New!
 
Posts: 5
Joined: Sun Nov 23, 2008 10:09 am

Re: ownCloud

Postby local.bin » Fri Feb 24, 2012 2:38 pm

Thanks for the pkg :)

Anyone else tried the package to understand what is missing from the install perhaps?

KR
local.bin
Novice
Novice
 
Posts: 53
Joined: Tue Aug 12, 2008 11:14 pm

Re: ownCloud

Postby oldenslow » Sat Apr 21, 2012 12:50 pm

I found this package source:

http://update.10trum.de/packageupdate/getpackages.php

easy config and set up.

Now just trying to figure out how to log in from outside my network and configure iCal and iPhone Address Book
oldenslow
Trainee
Trainee
 
Posts: 15
Joined: Thu Nov 18, 2010 9:50 pm

Re: ownCloud

Postby syncmaster » Sun Apr 29, 2012 3:38 pm

oldenslow wrote:I found this package source:

http://update.10trum.de/packageupdate/getpackages.php

easy config and set up.

Now just trying to figure out how to log in from outside my network and configure iCal and iPhone Address Book


With this package it just works out of the box, using sqlite database.

I've just setup this on my DS and it works fine.

Just make sure that you upgrade to version 3.0.2 (download from the owncloud site, and overwrite the installation on /volume1/web/owncloud) to solve some vulnerability issues, and the set it up via the url: http://nas_ip/owncloud/index.php

After that I was able to setup Calendar sharing and Contact sharing on Thunderbird using these urls:

For Caldav:

Create a Calendar named Default (The calendar named Default Calendar won't work with Thunderbird.
Install the Lightning plugin, and the URL to use is:
https://nas_ip/owncloud/apps/calendar/caldav.php/calendars/admin/default

Presto, calendar syncing!

For Cardav:

Just install the latest SOgO connector from http://inverse.ca/downloads/extensions/, in my case the http://inverse.ca/downloads/extensions/sogo-connector-10.0.1.xpi, and on the address book just add:

https://nas_ip/owncloud/apps/contacts/carddav.php/addressbooks/admin/default/

Just make sure that you replace admin with your owncloud user.

On KDE, for KMail2, just fire up the Akonadi console and add the DAV provider, choosing ownCloud as the DAV provider. With this provider, everything works out of the box.
syncmaster
Rookie
Rookie
 
Posts: 35
Joined: Fri Sep 10, 2010 3:26 pm

Re: ownCloud

Postby m_later » Wed May 30, 2012 1:15 am

oldenslow wrote:I found this package source:

http://update.10trum.de/packageupdate/getpackages.php

easy config and set up.

Now just trying to figure out how to log in from outside my network and configure iCal and iPhone Address Book


I get an empty page there. Is there any package with the latest 4.* owncloud?
m_later
I'm New!
I'm New!
 
Posts: 6
Joined: Thu Sep 08, 2011 11:49 pm

Re: ownCloud

Postby syncmaster » Fri Jun 01, 2012 7:00 pm

m_later wrote:
oldenslow wrote:I found this package source:

http://update.10trum.de/packageupdate/getpackages.php

easy config and set up.

Now just trying to figure out how to log in from outside my network and configure iCal and iPhone Address Book


I get an empty page there. Is there any package with the latest 4.* owncloud?


That's the update URL.

The package URL for OC 4.0.3 is http://package.10trum.de/index.php?id=40&pid=42

So far I'm using 3.0.3, and I'm waiting that all pending issues with the 4.0 release are solved.

Anyway, great software.
syncmaster
Rookie
Rookie
 
Posts: 35
Joined: Fri Sep 10, 2010 3:26 pm

Re: ownCloud

Postby john.doe1 » Tue Jun 26, 2012 4:26 pm

I found this one useful:
http://www.eg-blog.de/?p=459
john.doe1
Novice
Novice
 
Posts: 59
Joined: Fri Feb 26, 2010 3:04 pm

Next

Return to Web Server + PHP / MySQL

Who is online

Users browsing this forum: No registered users and 1 guest