How to install ownCloud on One.com

UPDATE FOR 6.0 – ownCloud with its latest release 6 is getting better and better, especially with its CalDAV and CardDAV implementation which is a good and free alternative to, e.g. Google Apps, for synchronizing your calendars and contacts with your phone. Now how can you install it on One.com, an inexpensive and good hoster, overcoming the errors and incompatibilities which you would encounter with the standard installation instructions.

Just follow these steps:

  1. Download ownCloud from owncloud.org and untar/unzip the installation files (tested with ownCloud 6.0a).
  2. Upload the whole directory via FTP to your one.com website.
  3. Make sure your FTP client is showing hidden files, then edit the .htaccess file.
  4. Comment out in .htaccess the last line saying “Options -Indexes” to “# Options -Indexes”
  5. Run the installation routine by pointing your browser to ownCloud, e.g. www.mysite.de/owncloud
  6. Complete all steps.
  7. Then, the routine will overwrite the .htaccess file again, resulting into an “Internal server error”
  8. Repeat step 4, and reload the webpage with the error, completing the post-setup-check.
  9. Done.

To enable ownCloud to send emails, please add the following to config/config.php into the $config variable (right before the “);”:

“mail_smtpmode” => “php”,
“mail_smtphost” => “mailout.one.com”,
“mail_smtpport” => 25,
“mail_smtptimeout” => 10,
“mail_smtpsecure” => “”,
“mail_smtpauth” => false,
“mail_smtpauthtype” => “LOGIN”,
“mail_smtpname” => “”,
“mail_smtppassword” => “”,

I found out that for whatever reason WebDAV file uploads are restricted to 128M, you can still upload bigger files using FTP – I’m still looking for a solution to make ownCloud rescan for new files which is required so it identifies the new uploads.

Furthermore, newer versions (also 6.0 and later) create an error while asking for XCache authentication. To disable XCache please do the following:

  1. Open owncloud/lib/private/util.php and comment out line 1086 following:
    // XCache
    /* if (function_exists(‘xcache_clear_cache’)) {
    xcache_clear_cache(XC_TYPE_VAR, 0);
    } */
  2. Open owncloud/lib/private/memcache/factory.php and eliminate XCache availability checks by deleting those entries. If you need further advice let me know. My factory.php then looks like:
    <?php
    /**
    * Copyright (c) 2013 Robin Appelman <icewind@owncloud.com>
    * This file is licensed under the Affero General Public License version 3 or
    * later.
    * See the COPYING-README file.
    */namespace OC\Memcache;class Factory {
    /**
    * get a cache instance, will return null if no backend is available
    *
    * @param string $prefix
    * @return \OC\Memcache\Cache
    */
    function create($prefix = ”) {
    if (APCu::isAvailable()) {
    return new APCu($prefix);
    } elseif (APC::isAvailable()) {
    return new APC($prefix);
    } elseif (Memcached::isAvailable()) {
    return new Memcached($prefix);
    } else {
    return null;
    }
    }/**
    * check if there is a memcache backend available
    *
    * @return bool
    */
    public function isAvailable() {
    return APCu::isAvailable() || APC::isAvailable() || Memcached::isAvailable();
    }/**
    * get a in-server cache instance, will return null if no backend is available
    *
    * @param string $prefix
    * @return \OC\Memcache\Cache
    */
    public static function createLowLatency($prefix = ”) {
    if (APCu::isAvailable()) {
    return new APCu($prefix);
    } elseif (APC::isAvailable()) {
    return new APC($prefix);
    } else {
    return null;
    }
    }/**
    * check if there is a in-server backend available
    *
    * @return bool
    */
    public static function isAvailableLowLatency() {
    return APCu::isAvailable() || APC::isAvailable();
    }

    }

Please let me and others know via the comment function if you have solutions for other hosting services, such as 1&1, Strato or international providers. If you want to install ownCloud 6 on your Synology NAS, check out this package.

Tags: , , , , , , ,

34 comments

  1. Thanks for the great explanation.

    I followed it and it worked but I get these errors

    set_time_limit(): Cannot set time limit due to system policy at /customers/c/e/d/trinix.be/httpd.www/owncloud/lib/base.php#412
    and
    xcache_get(): XCache var cache was not initialized properly. Check php log for actual reason at /customers/c/e/d/trinix.be/httpd.www/owncloud/lib/cache/xcache.php#27

    How did you overcome this?

  2. I resolved it by adding a tmp folder (permissions 777) in the owncloud folder and pointing in the .htaccess to it.

    ..
    php_admin_value upload_tmp_dir /customers/c/yourdomain.be/httpd.www/owncloud/tmp

  3. Hi Thim, I encounter the same errors. Thank you very much for your hint – however, when I add the upload_tmp_dir to my .htaccess file, the server shows me an “Internal server error” which indicates me that one.com does not allow that change. How did you manage it? I chose my individual path to my webspace /customers/6/f/4/domain.de/owncloud/tmp. It also does not work with /customers/6/f/4/domain.de/httpd.www/owncloud/tmp

  4. Asked support for OwnCloud and One.com support answered: “OwnCloud is unfortunately not supported on our servers. According to the basic requirements it is supported, but if you want to have decent access to this, you want to use webdav, which we do not offer.”

  5. That’s what they answer, the truth is that it works. WebDAV support is offered by ownCloud itself, you don’t need one.com to support it.

  6. That’s good news. Thanks:) Will then probably test ownCloud.

  7. Hi Thim,
    thanks for the Basic Setup guide with http://www.one.com.
    Did you get caldav, carddav, android app (owncloud) and webdav via Windows native up and running?

    I struggle with all this and have the following Errors in the log:
    {“app”:”PHP”,”message”:”set_time_limit(): Cannot set time limit due to system policy at \/customers\/8\/c\/2\/ABC.de\/httpd.www\/owncloud\/apps\/files\/ajax\/scan.php#2″,”level”:2,”time”:1368520982}
    {“app”:”PHP”,”message”:”xcache_get(): XCache var cache was not initialized properly. Check php log for actual reason at \/customers\/8\/c\/2\/ABC.de\/httpd.www\/owncloud\/lib\/cache\/xcache.php#27″,”level”:2,”time”:1368521465}
    {“app”:”PHP”,”message”:”Undefined offset: 1 at \/customers\/8\/c\/2\/ABC.de\/httpd.www\/owncloud\/apps\/gallery\/ajax\/gallery.php#12″,”level”:2,”time”:1368521469}
    {“app”:”PHP”,”message”:”curl_setopt_array(): CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set at \/customers\/8\/c\/2\/ABC.de\/httpd.www\/owncloud\/3rdparty\/Sabre\/DAV\/Client.php#462″,”level”:2,”time”:1368521531}

    WebDAV through Windows 8 natively does not work either. It says: System error 53. Network path not found.

    I already Setup the tmp-directory and .htaccess-file (the one located owncloud root dir) according to your comment.
    And I am using owncloud 5.0.5 – maybe that is the Problem.

    Can you help me on this or provide me your .htaccess file?

  8. Hi Hannes,
    for me CalDAV, CardDAV as well as accessing ownCloud from an iPhone works well. I do not have Win8 so cannot tell if that works, at least in the owncloud forum, resp. on GitHub, they confirm that owncloud 5.0.5 works with Win8 for WebDAV.
    The described error with “set_time_limit” occurs also for me: one.com seems to block this command, and so far I could not find how to disable set_time_limit – this error does not influence ownCloud though (check out my post in ).

    The proposal of Thim to change tmp drive via the .htaccess file does not work with one.com – for me there was no error at all, ownCloud successfully uses one.com’s tmp directory that you find in your home folder of your webspace. Thus, a working .htaccess file is just the default ownCloud .htaccess-file with the last line commented out as described in my article.

    Mick

  9. Hi Mick,

    thanks for the quick reply – it got me one step closer to running ownCloud.

    It seems I do not have any writeable access when using webdav – I get loads of 403 errors when trying to upload a file via Dolphin (KDE) or KOrganizer.
    Did you change the access rights of any of your directories? They are set to 755 at my site – which should be okay.

    I also had a look at ownClouds’ FAQ regarding “How to fix if Web interface working but not WebDAV/client” (http://forum.owncloud.org/viewtopic.php?f=17&t=7536), but it didn’t get me any further.

    Is there a DAV active at http://www.one.com?
    Do you any other hints?

    Thanks
    Hannes

  10. Found the problem: An old .htaccess-file in the absolute root dir of my account prevented correct access.
    Now synchronization and Upload via webdav work fine!

    Thanks

  11. Great, good to hear. For me, WebDAV access works great with CyberDuck on Mac OS X – but then again, I prefer to access the drive via FTP, so I do not have any file size limitation. The built-in WebDAV client of OS X does not work reliably, and write access Via FTP does not exist in OS X 10.8 …

  12. I just discovered problems while installing owncloud on my one.com webspace and a guy from support told me, that one.com wouldn’t support owncloud.
    Is this a new issue?

  13. No, they always say that but owncloud only needs PHP to run, and that is supported by one.com. So just follow my instructions and it should work fine!

  14. Great howto!
    Factory.php is located at: owncloud/lib/ [private/] memcache/factory.php

    What are the side effects of disabled xcache functions?

  15. Hi nibbler, Thank you, i updated the instructions. I think XCache accelerates file operations – even though One.com offers XCache support, Owncloud gets problems with it, especially since you don’t get XCache login credentials from One.com. Though, i cannot see any downsides while using.

    Best regards,
    Michael

  16. Hi there,
    thank you for the HowTo. I followed it, but i keep getting stuck at Step 5. When I try to open the site the first time, the screen just remains white, no error messages, completely blank source code.
    Xcache login showed up one but not anymore.
    Any hints on what i need to do to get it running?

    Thanx!
    Robin

  17. Hi Robin,

    I got the blank screen as well which came due to XCache errors: if you turn on PHP error messages in your one.com control panel you could see that there are XCache problems most likely. In my case the steps provided in the second part of my how to regarding XCache resolved the issues and now everything works well. Let me know if that helped as well.

    Thank you and good luck!
    Michael

  18. Hi Michael,

    thanks for the quick answer. It works!
    Thanx a lot
    Robin

  19. Hello there, and thanks for this great HowTo !

    Let me say that I’m sorry in advance for my bad English, will still try to do my best !

    I got some questions, I installed ownCloud (thanks to your HowTo again) on my one.com domain, but I can’t sync it with my computer.

    When I try to configure my client side application of ownCloud, I writted : https://mydomainone.org/owncloud (<- directory where I putted my owncloud)

    Then I writted my ownCloud login/password, but when I try to connect it, it is saying "Error downloading https://mydomainone.org/owncloud/remote.php/webdav/ – server replied: Not Implemented"

    – I activated WebDav user backend on my owncloud
    – I turned down the xcache of my vhost (asked for it with one.com assistance)

    I don't know if that's enough informations…
    I followed the part 2 of your HowTo, but still, can't sync !

    Thanks,
    Yoann

  20. Hello, could anybody make https access work to calDAV and cardDAV work? – I could manage to force https access to the web interface by inserting ‘forcessl’ => true,
    into the config/config.php – but cannot access it with clients on android or Mac OS X. iCal. eg, reports “501 Not Implemented”.

    Did anybody find a clou?

    Greetings,
    Wolf

  21. Found this through your post on golem. Nice explanation on how to setup an owncloud on a server! 🙂 Definitely gonna try it.

  22. I managed to install owncloud on my One.com webspace – and your how to was a great point to start with . So far it works mostly well. But still I can’t access webdav via https. Getting only 501 when trying to connect. After reading I don’t know how many posts I came to belive this behavior is due to a lack of support for the propfind function. I was unable to find a workaround so far. Connecting and syncing with clients on Android and Linux clients only works without ssl. So the only secure connection to my owncloud is via Webbrowser. I guess I have to go out looking for another location for my owncloud. Too bad since the price is right at one.com.
    If anybody got any idea how to fix the problem, please let me know.
    So long Chris

  23. Hi Chris, unfortunately I could also not find any workaround to make DAV connect via SSL/HTTPS. This seems to be an issue with one of the libraries used by owncloud which just does not work via HTTPS – really annoying as a webspace’s main feature should be security… I hope the owncloud team is working on it…

  24. Clients only working without SSL but thanks for the tutorial though.

    Apparently the new cloud from one.com called “Bix” interferes with webdav on SSL hope we’ll find a fix soon

  25. I encountered the webdav/caldav/carddav-https issue, too. This is not related to an owncloud bug, but to a missconfiguration of one.com servers: They seem to block https-requests with http verbs like PROPFIND, PUT, UPDATE etc.

    $ openssl s_client -connect yourDomain.tld:443
    CONNECTED(00000003)
    depth=2 C = GB, ST = Greater Manchester, L = Salford, O = COMODO CA Limited, CN = COMODO RSA Certification Authority
    verify error:num=20:unable to get local issuer certificate
    verify return:0

    *snip*

    PROPFIND / HTTP/1.1
    Host: yourDomain.tld

    HTTP/1.0 501 Not Implemented
    Content-Type: text/html
    Content-Length: 28
    Expires: now
    Pragma: no-cache
    Cache-control: no-cache,no-store

    This method may not be used.closed

    The 501-response is not generated by owncloud, but by one.com’s https-proxies. I contacted one.com’s support and currently await their response. Using a cloud service without encryption is nowadays no option for me and should not be an option for anybody else! I will report back here, as soon as i get a response by one.com support.

  26. Bad news: According to one.com’s support, the only http methods supported by their servers are GET, HEAD, POST and OPTIONS. Hence one.com does neither support owncloud, nor any other webdav applications =(

  27. I stumbled upon this post and it made me hopeful that I’d manage to get it working after all. However, I tried it several times and failed. For whatever reason I have no .htaccess file in my accounts. Any chance you can provide me with a sample of how it needs to look like?

  28. Nevermind… realized you are referring to the .htaccess file within the owncloud directory. Haha, I should take a break I guess…

  29. owncloud worked for several months, but keeps on giving error 500 after this period of time, how can i fix this?
    tried updating and downgrading with data and config in place, nothing works

  30. FYI:

    On Owncloud 7 works out of the box. Upload the unziped directory and that’s it. No need to modify .htaccess. I’m tunning it up with OC apps like roundcube and works 100%.

  31. I am working since ages to get around this ssl problem and there seems to be no workaround. The problem always occours when your caldav/cardav app tries to check if the given link is a true caldav/cardav link so the app-developer should build in an option to DO NOT CHECK… maybe those wellknown uri’s could solve the problem, but I am not sure… btw. since Owncloud 7 I cannot install Owncloud any longer as the login for mysql-database failes with an access denied error… any ideas?

  32. Sounds like good news.
    Owncloud 7 really web-installs out of the box on my one.com server. And I could easily set owncloud to “force https/ssh”. Wow – so easy!

    Quite a lot of things work nicely – but some dont:
    * importing ics files to calendar works, vcf to contacts doesnt
    * accessing calDAV or CardDAV via https fails – no CalDAV/CardDAV server found.
    * accessing calDAV via http works – strange.
    * The admin page says “Your web server is not yet properly setup to allow files synchronization because the WebDAV interface seems to be broken.
    Please double check the installation guides.”

    I guess one.com’s own webDAV server interferes with owncloud – but do we have a chance to stop webDAV?

    Only log messages I see is a permanently repeated
    “Error PHP set_time_limit(): Cannot set time limit due to system policy at /customers/2/4/1/mydomain.com/httpd.www/oc/lib/base.php#474

    Further experience would be very welcome.

    Wolf

  33. Ah. The ““Your web server is not yet properly setup to allow files ….” message appears only if I’m logged in via https. Not with http.

    There still seem to be https issues.

  34. Seems new owncloud 9.0.2 Web installer doesn’t work.
    Install works but setting up with the db name pass etc. from one.com will redirect you to a page http://localhost/ocloud/index.php/apps/files/ which offcourse doesn’t work.

    changing localhost to mydomain.com also doesn’t work it will give you an owncloud Internal Server Error

    Anyone know why?

Leave a Reply

Your email address will not be published. Required fields are marked *