i don't know how good your admin / webhosting skills are. I suppose as bad as mine. In that case i would not recommend to just install LAMP and bring your PI online. I suppose you will be hacked, sooner or later.
The hole, "how to prevent hackers from hacking my machine" topic is way to huge, to understand it in a few days.
I would suggest you to take a look at https://ownyourbits.com/2017/02/13/nextcloud-ready-raspberry-pi-image/ with his nice advertising video https://www.youtube.com/watch?v=Drj0VFhqSes
By using his Nextcloud Pi image you should be safer than creating your own secure machine, except you are an expert in this segment.
Using Nextcloud, from a user-perspective, should also be pretty intuitive.
The only problem I see, is that you will need to create accounts Usernames + Passwords to log in. If multiple people log in with the same credentials I guess they will be able to modify or delete files that other people uploaded.
Btw. my personal setup is the following: One Pi2 as OpenVPN server at home, behind a router. In my router i did forward the port needed for OpenVPN. If i want to upload, download, or ssh into any PC in my homenetwork I will create a connection via internet to the Pi2 OpenVPN server first. The vpn tunnel will allow me to access all services in my homenetwork as if I am at home. This setup allows me to be pretty safe against a lot of attacks because all my services are all unreachable from the internet. The only service that is directly reachable from the internet is the openvpn server (No Apache, No PhP, No MySQL, No SSH, No FTP, etc...). For this setup to work you would need to create keypairs and certificates and it might be pretty hard in explaining people how to connect. But once the connection is established, you can serve pretty much all services without taking too much care of security.