Press CTRL+O, Enter, CTRL+X to write the changes to nextcloud.conf
Continue with the following commands to enable the site and restart Apache:
# enable the Nextcloud site and required PHP modules sudo a2ensite nextcloud sudo a2enmod rewrite headers env dir mime dav # restart apache2 service for the changes to take effect sudo systemctl restart apache2
Open a web browser and navigate to http://DNSorIP/nextcloud
The Nextcloud setup screen should be displayed
Enter a username and password
Click the storage & database link to expand the section
Select MySQL and fill out the database connetion information as follows