1

Just started pset7 and can't get the web server to load. I've read about this all over the place but can't get anything to work as of yet.

Now I've resorted to wiping the whole workspace clean (after archiving!) and redownloading pset7. I've been through the pset instructions to the letter (all the chmods ofc), but when I go to CS50IDE -> Web Server, I get the same old "Forbidden. You don't have permission to access / on this server."

Here's the pset7 directory:

-rw------- 1 ubuntu ubuntu  151 Sep 24 20:48 config.json
drwx------ 2 ubuntu ubuntu 4096 Oct 31  2015 includes/
drwx--x--x 6 ubuntu ubuntu 4096 Oct 31  2015 public/
drwx------ 3 ubuntu ubuntu 4096 Oct 26  2015 vendor/
drwx------ 2 ubuntu ubuntu 4096 Oct 31  2015 views/

And here's the public directory:

drwx--x--x 2 ubuntu ubuntu 4096 Oct 26  2015 css/
drwx--x--x 2 ubuntu ubuntu 4096 Oct 26  2015 fonts/
drwx--x--x 2 ubuntu ubuntu 4096 Oct 26  2015 img/
-rw------- 1 ubuntu ubuntu  152 Oct 26  2015 index.php
drwx--x--x 2 ubuntu ubuntu 4096 Oct 26  2015 js/
-rw------- 1 ubuntu ubuntu 1450 Oct 30  2015 login.php
-rw------- 1 ubuntu ubuntu  164 Oct 26  2015 logout.php
4

403 Forbidden / permissions / chmod: the Definitive Guide

TL;DR:

PHP files and config.json need to be set to chmod 640 despite what it says in the Problem Specification.

Hope this helps!

  • 1
    Fabulous, thank you! Worked perfectly :) Not sure why I couldn't find that page anywhere :S – J. Davies Sep 25 '16 at 8:26
  • 1
    I hope they change it in the pset specs. This creates confusion, and in the worst case like me, playing with chmod has locked me out from the cloud9 workspace. I am waiting for C9 people to reset my environment so I can proceed with the pset. – Javi Oct 18 '16 at 12:01

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .