Jump to content

Recommended Posts

Posted

Hey guys,

i installed open media vault on my helios4 as described here: https://wiki.kobol.io/omv/
works like charm =)

But now i also want to use nextcloud or owncloud and tried to install it ontop of omv, i followed this guide: https://www.technikaffe.de/anleitung-255-installation_und_konfiguration_von_openmediavault_inkl._wake_on_lan

The problem is the nginx Server does not work, i can't access the page in my browser.

Anyone here had success installing nextcloud or owncloud?

 

Posted
7 minutes ago, twinstar1337 said:

and tried to install it ontop of omv


Not possible ... unless you are a super geek. Start with a clean Debian (or perhaps Ubuntu if they support it) image from the download section.

Posted

I have ownCloud running under OpenMediaVault on the Helios4.

You need some "NginX Extra Options" and ensure that you give it a "Pool" with user & group set to "www-data"

Give pool "Extra Options" of env[PATH] = /usr/local/bin:/usr/bin:/bin

 

Don't forget that whatever you set as your directory in NginX for this server, should be set up as a share with

www-data having Read/Write access

 

In your NginX server definition for oC have the following "Extra Options"...

client_max_body_size 10G; # set max upload size
fastcgi_buffers 64 4K;

rewrite ^/caldav(.*)$ /remote.php/caldav$1 redirect;
rewrite ^/carddav(.*)$ /remote.php/carddav$1 redirect;
rewrite ^/webdav(.*)$ /remote.php/webdav$1 redirect;

index index.php;
error_page 403 /core/templates/403.php;
error_page 404 /core/templates/404.php;

location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}

location ~ ^/(data|config|\.ht|db_structure\.xml|README) {
deny all;
}

location / {
# The following 2 rules are only needed with webfinger
rewrite ^/.well-known/host-meta /public.php?service=host-meta last;
rewrite ^/.well-known/host-meta.json /public.php?service=host-meta-json last;

rewrite ^/.well-known/carddav /remote.php/carddav/ redirect;
rewrite ^/.well-known/caldav /remote.php/caldav/ redirect;

rewrite ^(/core/doc/[^\/]+/)$ $1/index.html;

try_files $uri $uri/ index.php;
}

location ~ ^(.+?\.php)(/.*)?$ {
try_files $1 = 404;

include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$1;
fastcgi_param PATH_INFO $2;
fastcgi_param HTTPS on;
fastcgi_pass $socket;
}

# Optional: set long EXPIRES header on static assets
location ~* ^.+\.(jpg|jpeg|gif|bmp|ico|png|css|js|swf)$ {
expires 30d;
# Optional: Don't log access to assets
access_log off;
}

add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" ;

Posted

OK I just found my notes on this and it was a little more complex than I led you to believe. I've added a text file with all my install and update notes.

I guess you follow the install notes first and only the update if required.

I now remember that I got a lot of this info from a web search, and it did get me up and running with ownCloud. But oC had several red flags that were annoying

so I researched fixes for those and included in this text file.

 

Good luck ... Nick

 

owncloud.txt

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines