How to Install Nextcloud on Rocky Linux
In this guide, you will learn how to install Nextcloud on the Rocky Linux 8.4. You will be installing Nextcloud under the LAMP Stack (Linux, Apache2/httpd, MySQL/MariaDB, and PHP).
Source: Howtoforge Linux Howtos und Tutorials