7

I have done a ton of research online regarding this problem and have found several similar threads, but none of those solutions are working for me. I saw somebody posted the same question yesterday but the post has been taken down by the author.

I have tried every solution possible and have reset and retried all of the solutions, yet I still can't get past the 403.

For some strange reason, I can get into myphpadmin but not anything else.

I was hoping that things would have changed after a few CS50 IDE updates but so far, no luck. Just as many problems with version 62 as I had with 59!

Can you please help me out? I'm not able to progress any further with this course otherwise, I have already gone ahead and watched all the videos for the rest of CS50!

Thank you

0

3 Answers 3

15

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 the database.

~/workspace/ $ chmod 711 pset7
~/workspace/ $ cd pset7
~/workspace/pset7/ $ ls
config.json  includes/  public/  vendor/  views/
~/workspace/pset7/ $ chmod 755 public
~/workspace/pset7/ $ cd public
~/workspace/pset7/public/ $ chmod 711 css fonts img js
~/workspace/pset7/public/ $ chmod 644 css/* fonts/* img/* js/*
~/workspace/pset7/public/ $ cd ..
~/workspace/pset7/ $ chmod 711 includes vendor views
~/workspace/pset7/ $ chmod 644 includes/* vendor/* views/*
~/workspace/pset7/ $ chmod 644 public/*php 
~/workspace/pset7/ $ chmod 644 config.json
~/workspace/pset7/ $ cd vendor
~/workspace/pset7/vendor/ $ ls
library50-php-5/
~/workspace/pset7/vendor/ $ chmod 711 library50*
~/workspace/pset7/vendor/ $ cd library50*
~/workspace/pset7/vendor/library50-php-5/ $ ls
CS50/
~/workspace/pset7/vendor/library50-php-5/ $ chmod 711 CS50
~/workspace/pset7/vendor/library50-php-5/ $ chmod 644 CS50/*php

EDIT The last line has been corrected from chmod 644 CS50/* to chmod 644 CS50/*php. This was not detected in running the (vanilla) app. If you already did the incorrect chmod, the correction is
cd ~/workspace/pset7/vendor/library50-php-5/ $chmod 711 CS50/share

3
  • 1
    Thank you for that! I was having problem with pset7 permissions today! Now everything works properly. Hope CS50 will fix this soon!
    – mdmb
    Commented Aug 16, 2016 at 22:43
  • Awesome!! It worked! Commented Sep 18, 2016 at 3:58
  • Perfect, this was so frustrating!
    – Khono
    Commented Dec 14, 2016 at 12:56
13

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
cd pset7
chmod 755 public
cd public
chmod 711 css fonts img js
chmod 644 css/* fonts/* img/* js/*
cd ..
chmod 711 includes vendor views
chmod 644 includes/* vendor/* views/*
chmod 644 public/*php
chmod 644 config.json
cd vendor
chmod 711 library50*
cd library50*
chmod 711 CS50
chmod 644 CS50/*php

3
  • Thank you for that! Everything works! Commented Oct 22, 2016 at 15:34
  • Thanks! Worked fine for me, too!
    – kafe
    Commented Dec 13, 2016 at 21:15
  • Ditto - worked for me! I really wish they would update the official pset7. Commented Dec 19, 2016 at 20:47
0

What does it say in the Apache2 error log?

In the CS50 IDE, open a terminal in a new tab and execute tail -f ~/lib/apache2/log/error.log and then watch that while you try to load one of the pages that is giving out the 403 Forbidden error message. When a new error message appears in the log, paste it here.

EDIT: @gloopit: Too much info. Please delete all but one of the repetitive error log entries at the top of comments. Also, we are only looking at ~/workspace/pset7 so just try what I said above: chmod 755 ~/workspace/pset7 and tell me how it goes. Also, if you see things in the error log you don't recognize, paste the messages here or into Google. "something about SIGTERM" is too vague. It might not be a problem & may just mean that you stopped or restarted the server.

7
  • This is the error log I got. Please keep in mind that this is AFTER I applied the modifications listed in the above ^^^ answer: tail -f ~/lib/apache2/log/error.log [Sat Aug 13 23:20:20.230591 2016] [mpm_prefork:notice] [pid 8437] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.14 configured -- resuming normal operations [Sat Aug 13 23:20:20.230641 2016] [core:notice] [pid 8437] AH00094: Command line: '/usr/sbin/apache2'
    – gloopit
    Commented Aug 13, 2016 at 23:24
  • [Sat Aug 13 23:20:28.704315 2016] [autoindex:error] [pid 8441] (13)Permission denied: [client 10.240.0.207:58364] AH01275: Can't open directory for index: /home/ubuntu/workspace/pset7/[Sat Aug 13 23:20:35.574852 2016] [autoindex:error] [pid 8442] (13)Permission denied: [client 10.240.1.19:53794] AH01275: Can't open directory for index: /home/ubuntu/workspace/pset7/
    – gloopit
    Commented Aug 13, 2016 at 23:25
  • [Sat Aug 13 23:20:37.415516 2016] [autoindex:error] [pid 8443] (13)Permission denied: [client 10.240.0.119:55840] AH01275: Can't open directory for index: /home/ubuntu/workspace/pset7/ [Sat Aug 13 23:20:40.879996 2016] [autoindex:error] [pid 8444] (13)Permission denied: [client 10.240.0.207:58434] AH01275: Can't open directory for index: /home/ubuntu/workspace/pset7/ [Sat Aug 13 23:20:41.128581 2016] [autoindex:error] [pid 8440]
    – gloopit
    Commented Aug 13, 2016 at 23:28
  • (13)Permission denied: [client 10.240.0.207:58438] AH01275: Can't open directory for index: /home/ubuntu/workspace/pset7/ [Sat Aug 13 23:21:00.202594 2016] [autoindex:error] [pid 8441] (13)Permission denied: [client 10.240.0.241:51554] AH01275: Can't open directory for index: /home/ubuntu/workspace/pset7/ [Sat Aug 13 23:21:00.286722 2016] [autoindex:error] [pid 8442] (13)Permission denied: [client 10.240.1.20:42394] AH01275: Can't open directory for index: /home/ubuntu/workspace/pset7/
    – gloopit
    Commented Aug 14, 2016 at 0:02
  • [Sat Aug 13 23:21:03.685931 2016] [autoindex:error] [pid 8443] (13)Permission denied: [client 10.240.0.110:53550] AH01275: Can't open directory for index: /home/ubuntu/workspace/pset7/
    – gloopit
    Commented Aug 14, 2016 at 0:02

You must log in to answer this question.

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