For awhile now I have had plans to create my own website and create my own NAS. Well, since I found out about Nextcloud, I have decided to combine the two goals into one. Yet, I have hit a roadblock. I will go into as much detail as possible. I started this project with the intent to get Nextcloud up and running first. I made many mistakes along the way; so had to correct some things already. Firstly I updated my system and installed apache2, php (and supporting "optional" dependencies that were required by Nextcloud), mariadb, and phpmyadmin. I then secured the mariadb installation and created a database and a user for Nextcloud. Then I downloaded Nextcloud for server using wget. Then I registered a domain name. Then, I created a file for the Nextcloud Virtual Host in
/etc/apache2/sites-available/name.exampledomain.com.conf (I will post the contents of this file after this post). After editing the file, I enabled it with a2ensite name.exampledomain.com.conf. I have opened my router's firewall to allow port forwarding on port 80 for my server only and resolved it to my server's public IP address. After installing Certbot, I finally ran
certbot --apache and selected the subdomain for my Nextcloud instance. When at first, I got ssl signing certificate errors I couldn't understand. I have tried a few things and among others I decided that maybe it was because I haven't set up the main site (exampledomain.com) yet with ssl and https. So I created a placeholder index.html file and put it in
/var/www/html and edited
/etc/apache2/000-default.conf. Yet I did forget to create a mariadb database for it (if it requires maridb...). As you guys can see I am very inexperienced with this, but I do want the experience and I am willing to obtain that with a little help in the right direction. I have withheld the website's domain name as I do not know how secure it is at the moment. I do keep the server powered off when I am not trying to fix it. Also, it might be helpful for you to know that my site's domain is on the Https Secure Transport Security list. @gbryant since you've created this wonderful website, maybe you could help me?