I went with a change in /etc/apache2/sites-available
Works good thanks!
Here is some shortcuts for future reference.
pi@raspberrypi2 /etc/apache2/sites-available $ apache2 default
Usage: apache2 [-D name] [-d directory] [-f file]
[-C "directive"] [-c "directive"]
This tutorial should help you to change the DocumentRoot of your website by using Apache2 Virtual Hosts.
The focus of the tutorial is on how to host more than one domain or subdomain on the same Raspberry Pi server, but it should also work just to move your DocumentRoot to something like this:
So, while I still do not know what happened nor do I understand the solution. I found that another CS50x student had the same problem and posted about it on the Cloud9 community boards here.
The 'solution' post reads thus:
Hi, problem appears to have resolved using echo >
~/lib/apache2/log/error.log. I have access again
And I typed into the terminal: