Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Owncloud running slow, any tips?
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Owncloud running slow, any tips?

zhuanyizhuanyi Member
edited October 2012 in Help

I have ownCloud installed on a Debian Squeeze using a tutorial that I have found online:

http://jasminklipic.blogspot.com/2012/05/owncloud-debian-sueeze.html

However, for some reason the Owncloud runs very slowly and it literally took me a minute to even load up the file list once I logged in.

I am just wondering if anyone of you have ever tried to tweak Owncloud successfully to run faster, I have tried to use Nginx as the front-end with PHP-FPM as the PHP processing layer without too much success and at the moment I have no file in my owncloud so I am free to reinstall my VPS with any distribution.

Thanks!

Comments

  • Works fine with httpd on centos.

  • @Cirium said: Works fine with httpd on centos.

    And you just use a standard LAMP installation? Is there any tutorial you used? Thanks!

  • @zhuanyi

    Yep. Just a standard LAMP installation.

    Thanked by 1zhuanyi
  • wdqwdq Member

    It also works fine with the standard LAMP installation on Ubuntu.

  • @wdq said: It also works fine with the standard LAMP installation on Ubuntu.

    Interesting, seems mine is the only slow one with the standard LAMP, has anyone tried to run it using Nginx as the front-end?

  • Never tried it myself...but there are some special notes for web servers other than Apache here...
    http://owncloud.org/support/webserver-notes/

  • jarjar Patron Provider, Top Host, Veteran
    edited October 2012

    @zhuanyi said: tweak Owncloud

    Thought about it. Watched how it installed itself and decided that SFTP isn't so bad. The developers could learn a thing or twenty about optimization.

  • wdqwdq Member

    I actually tried installing it on Nginx before Apache and didn't have much luck. I'm interested to see if anyone has.

  • Tried this but apparently their configuration notes for Nginx did not work, when I tried to load the page, it looks as if the entire CSS was broken and all text were crammed together

  • NightNight Member
    edited October 2012

    Here's my config for owncloud on nginx:

    # redirect http to https.
    server {
      listen 80;
      server_name cloud.domain.com;
      rewrite ^ https://$server_name$request_uri? permanent;  # enforce https
    }
    
    # owncloud (ssl/tls)
    server {
      listen 443 ssl;
      ssl_certificate /etc/nginx/conf.d/server.crt;
      ssl_certificate_key /etc/nginx/conf.d/server.key;
      server_name cloud.domain.com;
      root /home/night/owncloud;
      index index.php;
      client_max_body_size 1000M; # set maximum upload size
    
      # deny direct access
      location ~ ^/(data|config|\.ht|db_structure\.xml|README) {
        deny all;
      }
    
      # default try order
      location / {
        try_files $uri $uri/ @webdav;
      }
    
      # owncloud WebDAV
      location @webdav {
        fastcgi_split_path_info ^(.+\.php)(/.*)$;
        fastcgi_pass 127.0.0.1:9000; # or use php-fpm with: "unix:/var/run/php-fpm/php-fpm.sock;"
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_param HTTPS on;
        include         fastcgi_params;
        fastcgi_intercept_errors on;
      }
    
      # enable php
      location ~ \.php$ {
        fastcgi_pass 127.0.0.1:9000; # or use php-fpm with: "unix:/var/run/php-fpm/php-fpm.sock;"
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_param HTTPS on;
        include         fastcgi_params;
        fastcgi_intercept_errors on;
      }
    }
    

    Pretty sure that's the default config. Just make sure you have the latest version of nginx and that your php/nginx user has adequate permission to the directory.

  • @Night said: Pretty sure that's the default config. Just make sure you have the latest version of nginx and that your php/nginx user has adequate permission to the directory.

    Yes this is the default config, have you tried to log in to make sure it works?

Sign In or Register to comment.