Difference between revisions of "Talk:OwnCloud"

From SME Server
Jump to navigationJump to search
(IMAP auth (for optional inclusion on main wiki page))
 
(10 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 +
== relocated outdated php warning ==
 +
=='''Installation Notes'''==
 +
{{Note box|msg=The CVE-2006-7243 has been corrected in SME 8 with the package php-5.3.3-14.el5.sme (or for centos release php53-5.3.3-21.el5_10). Please see the bug [[bugzilla : 7613]] if you need more informations}}
 +
--[[User:Stephdl|Stephdl]] ([[User talk:Stephdl|talk]]) 03:12, 5 January 2014 (MST) ola hsf, why did you remove this installation notes, it could be useful to people who have known the security warning ?
 +
* Hi Stephane, I relocated it from the main page for the warning is no longer valid for the how-to as it stands. I believe there is no need to confuse people with old info that they can not use, and keep the how-to clean and simpel. Hence why I moved it and not removed it.
 +
* vale :)
 +
==[[User:Mmccarn|Mmccarn]] ([[User talk:Mmccarn|talk]]) 17:55, 30 December 2013 (MST)==
 +
Note:
 +
Despite the supposed dependancy of OwnCloud 6 on PHP v5.3.8, I was able to install Owncloud 6.0a without problems on SME8 using the OwnCloud 'web installer'.
 +
 +
 
==[[User:Mmccarn|Mmccarn]] 08:14, 2 December 2012 (MST)==
 
==[[User:Mmccarn|Mmccarn]] 08:14, 2 December 2012 (MST)==
 
Notes:
 
Notes:
Line 8: Line 19:
 
However, I suspect that it's related to this change in PEAR: http://pear.php.net/bugs/bug.php?id=19582
 
However, I suspect that it's related to this change in PEAR: http://pear.php.net/bugs/bug.php?id=19582
  
As reported, downloaded release v4.5.3 installed fine.
+
As reported, downloaded releases (v4.5.3 and v4.5.4) installed fine.
 +
 
 +
===webtatic-el5===
 +
The solution proposed as you can see below is to upgrade your php version with the [[Webtatic |webtatic repository]]
 +
{{Warning box|msg= if you update php with the webtatic repository, you can experience some problems with contribs such as phpmyadmin which need php53 dependencies. see [http://bugs.contribs.org/show_bug.cgi?id=7613#c12 bug 7613c12] }}
 +
first we need to install the webtatic repository, see the relevant [[Webtatic |wiki page]]
 +
 
 +
/sbin/e-smith/db yum_repositories set webtatic repository \
 +
Name 'webtatic - EL5' \
 +
MirrorList 'http://mirror.webtatic.com/yum/centos/5/$basearch/mirrorlist' \
 +
EnableGroups no \
 +
GPGCheck yes \
 +
GPGKey http://repo.webtatic.com/yum/RPM-GPG-KEY-webtatic-andy \
 +
Visible no \
 +
status disabled
 +
 
 +
After adding it to the database updating the configuration file is required:
 +
signal-event yum-modify
  
I made the following changes to the settings for the 'owncloud' ibay:
+
check your php version
  <nowiki>db accounts owncloud setprop \
+
  [root@sme8dev-3 ~]# rpm -q php
AllowOverride All \
+
php-5.3.3-13.el5.sme.2
FollowSymLinks enabled \
 
Group www \
 
PHPBaseDir /home/e-smith/files/ibays/owncloud/:/tmp/ \
 
PublicAccess global \
 
UserAccess wr-group-rd-everyone
 
</nowiki>
 
  
 +
upgrade your php version
 +
[root@sme8dev-3 ~]# yum update --enablerepo=webtatic php
 +
verify your php version
 +
[root@sme8dev-3 ~]# rpm -q php
 +
php-5.3.27-2.w5
 +
and reconfigure your server
 +
signal-event post-upgrade; signal-event reboot
  
* Shall we include your iBay settings on the front page of the how-to, and why these settings are applied? [HF]
+
After that you can continue the HowTo
** Sure.  As for the reasoning:
 
*** AllowOverride: because until I added this, owncloud complained about .htaccess not working, and consequent security issues.
 
*** FollowSymLinks: well, we may not need this.  I was originally trying to set it up symlinked to the git downloads in another location.
 
*** Group: I *think* this maintains useable file ownership and access rights through an execution of "signal-event ibay-modify" - at least it has been working for me for Wordpress.
 
*** PHPBaseDir: per your note.
 
** I'd suggest adding the other settings that get things going (I've added these to the block above)
 
*** PublicAccess global
 
*** UserAccess wr-group-rd-everyone
 
** I will test in the coming week whether "FollowSymLinks" is required or not.
 
  
 +
== OwnCloud 7.x on SME8.1 ==
  
===IMAP Authentication===
+
We have successfully installed OC version 7.0.1 on SME8.1.
Configure owncloud to authenticate against an IMAP server
 
====Enable and Configure IMAP Authentication====
 
# Login to your running owncloud configuration as an administrator
 
# Enable the app named "External user support" <br />Note: "External user support" is included with owncloud as an "Internal app". There is an older add-on app named "IMAP user backend" that did not work for me.
 
# Edit <owncloud>/config/config.php and insert the text below inside the $CONFIG array
 
#* in front of the last closing parenthesis in the file (make sure there's a comma at the end of the preceding entry)
 
#* Replace "mail.mydomain.tld" with your mail server name or IP address
 
#* Remove "/novalidate-cert" if your chosen mail server uses a signed SSL certificate):
 
<nowiki>  'user_backends' =>
 
  array (
 
    0 =>
 
    array (
 
      'class' => 'OC_User_IMAP',
 
      'arguments' =>
 
      array (
 
        0 => '{mail.mydomain.tld:993/imap/ssl/novalidate-cert}',
 
      ),
 
    ),
 
  ),</nowiki>
 
  
When done, users will be able to login to your owncloud web interface using their mail server username and password.
+
I could not get ldap authentiication working properly so I used Mmccarn's imap authentication successfully WITHOUT adding the users to thwe OwnCloud "oc_users" MySQL table.
  
More information can be found here: http://owncloud.org/support/custom-user-configuration/
+
webdav, caldav and carddav access are working for the users and also sharing of files/folders between users. The only detail that is not working (missing) is the user individual email setup. That section to setup their email details is missing for all imap authenticated users and only available for the one and only local OC user, the local administrator.
  
====Problems====
+
I have reported this in their forum: http://forum.owncloud.org/viewtopic.php?f=29&t=22633
* Users who login using IMAP Authentication are not automatically added to the owncloud "oc_users" table. Consequently, they are not offered as options when other users want to share files with them.
 
*  IMAP authenticated users will be unable to connect using the owncloud client sync program.
 
* If your IMAP server allows alternative username syntax, owncloud will create a separate account for each username format that allows successful authentication. That is, if your IMAP server allows users to optionally include or omit the domain name, you might create a user account entry for "xyzuser@mail.mydomain.tld", then find that the user always logs in using simply "xyzuser", which succeeds during the IMAP authentication, but is a different account within owncloud.
 
  
=====Allow Sharing with IMAP Users=====
+
I would like to work towards solving the ldap authentication issue and would hopw that we can work as group?
To allow sharing with your IMAP users, you need to manually add the each IMAP user account to the oc_users table using commands like those below at a shell prompt on your SME server:
 
mysql owncloud
 
insert into oc_users (uid,password) values ('xyzuser@mail.mydomain.tld','*');
 
* '''owncloud''': replace with the name of the database you created for owncloud
 
* '''xyzuser@mail.mydomain.tld''': replace with the exact login string used by the user when they login
 
  
=====Using the Owncloud Client=====
+
Regards,
In order for an IMAP-authenticated user to configure the owncloud client sync program, s/he must:
+
Michael
* login to the web interface
 
* open his/her personal settings
 
* "change" the password in owncloud to match the password on the IMAP server.
 

Latest revision as of 22:19, 12 August 2014

relocated outdated php warning

Installation Notes

Important.png Note:
The CVE-2006-7243 has been corrected in SME 8 with the package php-5.3.3-14.el5.sme (or for centos release php53-5.3.3-21.el5_10). Please see the bug bugzilla : 7613 if you need more informations


--Stephdl (talk) 03:12, 5 January 2014 (MST) ola hsf, why did you remove this installation notes, it could be useful to people who have known the security warning ?

  • Hi Stephane, I relocated it from the main page for the warning is no longer valid for the how-to as it stands. I believe there is no need to confuse people with old info that they can not use, and keep the how-to clean and simpel. Hence why I moved it and not removed it.
  • vale :)

Mmccarn (talk) 17:55, 30 December 2013 (MST)

Note: Despite the supposed dependancy of OwnCloud 6 on PHP v5.3.8, I was able to install Owncloud 6.0a without problems on SME8 using the OwnCloud 'web installer'.


Mmccarn 08:14, 2 December 2012 (MST)

Notes: Installing from a git clone generated a blank screen during installation, with the following error in /var/log/messages:

httpd: PHP Fatal error:  Cannot access protected property MDB2_Driver_mysql::$varchar_max_length in /home/e-smith/files/ibays/owncloud/html/3rdparty/MDB2/Driver/Datatype/mysql.php on line 156

This was reported to owncloud and determined to be "not a bug": http://bugs.owncloud.org/thebuggenie/owncloud/issues/oc-1583

However, I suspect that it's related to this change in PEAR: http://pear.php.net/bugs/bug.php?id=19582

As reported, downloaded releases (v4.5.3 and v4.5.4) installed fine.

webtatic-el5

The solution proposed as you can see below is to upgrade your php version with the webtatic repository
Warning.png Warning:
if you update php with the webtatic repository, you can experience some problems with contribs such as phpmyadmin which need php53 dependencies. see bug 7613c12


first we need to install the webtatic repository, see the relevant wiki page

/sbin/e-smith/db yum_repositories set webtatic repository \
Name 'webtatic - EL5' \
MirrorList 'http://mirror.webtatic.com/yum/centos/5/$basearch/mirrorlist' \
EnableGroups no \
GPGCheck yes \
GPGKey http://repo.webtatic.com/yum/RPM-GPG-KEY-webtatic-andy \
Visible no \
status disabled

After adding it to the database updating the configuration file is required:

signal-event yum-modify

check your php version

[root@sme8dev-3 ~]# rpm -q php
php-5.3.3-13.el5.sme.2

upgrade your php version

[root@sme8dev-3 ~]# yum update --enablerepo=webtatic php

verify your php version

[root@sme8dev-3 ~]# rpm -q php
php-5.3.27-2.w5

and reconfigure your server

signal-event post-upgrade; signal-event reboot

After that you can continue the HowTo

OwnCloud 7.x on SME8.1

We have successfully installed OC version 7.0.1 on SME8.1.

I could not get ldap authentiication working properly so I used Mmccarn's imap authentication successfully WITHOUT adding the users to thwe OwnCloud "oc_users" MySQL table.

webdav, caldav and carddav access are working for the users and also sharing of files/folders between users. The only detail that is not working (missing) is the user individual email setup. That section to setup their email details is missing for all imap authenticated users and only available for the one and only local OC user, the local administrator.

I have reported this in their forum: http://forum.owncloud.org/viewtopic.php?f=29&t=22633

I would like to work towards solving the ldap authentication issue and would hopw that we can work as group?

Regards, Michael