Detailed initial installation for nextcloud end onlyoffice in one server

I ask to help with installation on one server Nextcloud and Onlyoffice. I am not strong in them and tried all the options from the Internet and could not install them. Will anyone be able to publish the stepper installation Nextcloud and Onlyoffice on one server?
Thank you,