CS50 course materials will tell you that the permissions need to be set as follows:
chmod 711 for directories
chmod 600 for PHP files.
In general, this is the correct advice.
However, if you have run update50 recently, you should know that there is a bug requiring chmod 640 instead for PHP files.
I've posted this ...
I found that deleted post over on reddit with an answer from delipity. But the user continued to have problems. I unzipped a fresh pset7, and did these chmods and finally got RockRolld! (oops. Spoiler :). I then removed pset7 and reinstalled, then followed this list and got the same (positive) result. I am running IDE 62. Full disclosure, I did not reinstall ...
This is the same solution as posted in Reddit, simply with clean code ready for copy/paste to terminal. Please note that you have to start in "workspace" directory.
chmod 711 pset7
chmod 755 public
chmod 711 css fonts img js
chmod 644 css/* fonts/* img/* js/*
chmod 711 includes vendor views
chmod 644 includes/* ...
Due to a recent update the permissions required has changed, but the specifications has not been updated. All PHP files and config.json must now be set to chmod 644, whilst all directories must be set to chmod 711.
If that did not solve your problem, here are some threads that might.
@DinoCoderSaurus is right.
See also 403 Forbidden / permissions / chmod -- the definitive guide on the CS50 Reddit, for details on the minimum required permissions for different types of file.
It's 711 for directories (unless you want Apache2 to generate a dynamic index when there is no index.html or index.php provided, then it's 755).
It's 644 for ...