I have been trying to fix this since yesterday without any seeming success or even progress, so I hope someone out there can figure it out and help me.
I have installed Magento 2 using the Ubuntu console, on a pc running windows 10.
I followed this guide (https://websiteforstudents.com/install-magento-2-using-composer-on-ubuntu-16-04-18-04-with-apache2-mariadb-and-php-7-1-support/) but at step 8 (the last step) I restarted apache2 and found that the Magento Frontend and Admin weren't accessible for some reason.
I tried entering both
localhost/magento2
andjjsmykker.dk
into the Chrome address bar,magento2
being theServerName
andhttp://jjsmykker.dk/
being theServerAlias
in themagento2.conf
, but all attempts ended in the same error being shown in Chrome (as well as the other browsers I've tried it in).
Below I've included an image of the error Chrome is throwing at me, as well as an image of the magento2.conf
file.
I'm a beginner at both Magento and at using the Ubuntu Console, so I hope you'll bear with me, and that someone here can help me out and get me moving forward after being stuck with this for far too long!
EDIT 1:
I ran these commands as it was suggested in an answer here. It didn't change the error message on Chrome, but I've added this image to show an apache2 warning that according to my research shouldn't impact this situation, but as I'm new at this I've included it just in case I'm wrong.