nextcloud install / setup issues

Having issues with your DietPi installation or found a bug? Post it here.
Post Reply
helkav
Posts: 2
Joined: Sun Dec 27, 2020 1:36 am

nextcloud install / setup issues

Post by helkav »

used dietpi to add nextcloud

going around in circles trying to get the following working right

1 - secure web access i.e. https instead of http
2 - have data folder outside /var/www - want it in an external usb
3 - can I make a local domain somehow and assign ssl certs to it?

I found instructions here: https://raspberrytips.com/install-nextc ... n_Raspbian

which I thought would help fill in the gaps, but when I change the db user to nextcloud it failed to open the page with the following error

Internal Server Error

The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log.


so I have uninstalled in desperation. and will attempt to reinstall with dietpi once more.

can anyone who has successfully done this give me their pointers please
User avatar
Joulinar
Posts: 4823
Joined: Sat Nov 16, 2019 12:49 am

Re: nextcloud install / setup issues

Post by Joulinar »

Hi,

many thanks for your message. Maybe you like to follow this guide to secure your NextCloud installation viewtopic.php?p=22271#p22271
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
helkav
Posts: 2
Joined: Sun Dec 27, 2020 1:36 am

Re: nextcloud install / setup issues

Post by helkav »

thanks but I have already seen that. not exactly my situation. I have a domain registered and I am going to eventually try to redirect A record to my own IP...first time trying that too!

anyhow at the moment I'm not quite there

I think I will refer to this after reinstalling using dietpi:
https://docs.nextcloud.com/server/20/ad ... ation.html

unfortunately dietpi has not completely uninstalled - I see there's still nextcloud data/folders so I think I need to uninstall apache

I am still confused TBH about the relationship between apache and nextcloud - does nextcloud run as part of apache or seperate entity
User avatar
Joulinar
Posts: 4823
Joined: Sat Nov 16, 2019 12:49 am

Re: nextcloud install / setup issues

Post by Joulinar »

Hi,

pls don't follow the NextCloud installation guide. Use dietpi-software to get NextCloud setup. This will ensure correct configuration to fit into DietPi environment.

Once NextCloud is running, ensure correct port forwarding on your internet router of port 80/443 TCP

To be able to get a SSL certificate, you would need to have your domain setup this way to be able to point to your internet router WAN IP.
I am still confused TBH about the relationship between apache and nextcloud - does nextcloud run as part of apache or seperate entity
NextCloud is a web application that require a web server to be able to run. On DietPi you can select between Apache2, Nginx or Lighttpd. https://dietpi.com/docs/software/webser ... st-for-you
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply