Do not use
chmod 777 views/*. That will probably help you to get your site to load, but it is bad for security, and a terrible habit to get into. It's like taking the front door of your house off of its hinges rather than using a key.
I have written about these permission problems in many places already, but the short version which should get you running is to do the following:
find ~/workspace/pset7/ -type d |xargs chmod 755
find ~/workspace/pset7/ -name *.php |xargs chmod 640
find ~/workspace/pset7/ -name config.json |xargs chmod 640
That should fix everything. If it does not, you might also need to:
sudo find /var/lib/php5 -name sess_* |sudo xargs chown www-data:www-data
The real reason for these errors is that the permissions have changed since version 59 of
ide50, and the problem specifications have not been updated to reflect the new permissions. See this post on the CS50 Reddit for more info.