The officially official Devuan Forum!

You are not logged in.

#1 2019-08-12 15:33:13

Brian32
Member
Registered: 2019-08-12
Posts: 2  

installation Nextcloud

Hello to the whole community.

I am in need of your help, I have a VPS with GNU / LINUX DEVUAN, I need to install the Nexcloud, will you have any idea how to do it? Can you guide me?

Thank you very much!

Best regards,
Brian.

Offline

#2 2019-08-12 18:12:42

bgstack15
Member
Registered: 2018-02-04
Posts: 205  

Re: installation Nextcloud

Wow, VPS services offer Devuan! That sounds nice. You could adapt the instructions from https://www.howtoforge.com/tutorial/how … -debian-9/. You will need to control system services with service instead of systemctl. Tell us how it goes, or where you get stuck.


This space intentionally left blank.

Offline

#3 2019-08-12 21:07:09

nixer
Member
From: North Carolina, USA
Registered: 2016-11-30
Posts: 211  

Re: installation Nextcloud

There are a lot of tutorials and examples on the 'net.  I found this one which is relatively new and it may be of assistance.  It is for Debian 10, but it followed closely the steps that I took to install it.  The only change is the command to restart the apache service, which the article states as

sudo systemctl restart apache2

but should be

service apache2 restart

The web updater has improved a lot over the past few versions.  If I may say so, please remember to back up your NC install (files, data, and database) before updating as it may have mishaps.  Good luck with it!

Offline

#4 2019-08-15 12:39:19

Brian32
Member
Registered: 2019-08-12
Posts: 2  

Re: installation Nextcloud

Hello everyone, thanks for your help!

I was trying to install as indicated, but in one step I ran to give "www-data" permissions to Nextcloud but it was given to the whole system, the issue is that I have no idea how to fix that.

At this moment I can't do anything because I don't have permits for that same reason.

Any comments?

Offline

#5 2019-08-15 13:38:55

nixer
Member
From: North Carolina, USA
Registered: 2016-11-30
Posts: 211  

Re: installation Nextcloud

give "www-data" permissions to Nextcloud but it was given to the whole system, the issue is that I have no idea how to fix that.

Just to be clear did you change the permissions for all files in the operating system or just the files of the nextcloud install?  If you did, then I would suggest reinstalling the operating system.

What I do is to make the <user> the files owner and then set "www-data" as the group owner.  Then I add the <user> to the "www-data" group.  Finally, I change the chmod of the files to 0775 so that both the files owner and www-data group have read and write ability of the files.  To do this, I only have a single user system with no other user accounts. 

I would be interested in somebody else adding their input on a proper way to set the permissions in a multi-user system.  I have spent some time searching the web for similar information but what I have found mentioned is somewhat conflicting.  Some say to make the user "www-data" the owner of the files, but I am unsure about that.

Offline

#6 2019-08-15 14:38:09

Dutch_Master
Member
Registered: 2018-05-31
Posts: 285  

Re: installation Nextcloud

The user "www-data" is the Apache user, so only applies if you're deploying Apache as your web-server. As for multi-user systems, every Linux system is by default a multi-user system, but most human users will never know, nor have the need to wink

As for the user-permissions issue mentioned by the OP, there's a fairly simple solution: use a live-cd from your distro (I assume Devuan in this case). Boot your system into the live-cd modus and start a terminal. Then, assuming your entire system is on one SATA disk in a single partition (sda1):

mkdir /tmp/devuan-rescue
mount /dev/sda1 /mnt/devuan-rescue
cd /tmp/devuan-rescue
chown -R root:root ./*

This creates a temp. directory, then mounts the entire system in that and changes the ownership of all files to root as part of the group root. That should allow you to log back in (as root, obviously) into the system and restore file permissions from there. See also

man chown

This'll list you the various options and correct syntax of the command.

Online

Board footer