Hot answers tagged

23 votes
Accepted

can't get the site to run

CS50 course materials will tell you that the permissions need to be set as follows: chmod 711 for directories chmod 644 for images, HTML, CSS, JavaScript chmod 600 for PHP files. In general, this is ...
user avatar
  • 3,036
2 votes

I only get forbidden 403 pset7

This guy had a solution. Not sure how good it is in security aspects though. https://m.reddit.com/r/cs50/comments/5055ti/403_forbidden_permissions_chmod_the_definitive/ cd ~/workspace/pset7 find . -...
user avatar
  • 96
1 vote
Accepted

I only get forbidden 403 pset7

First of all, let's look at the error message from the Apache2 logs: (13)Permission denied: [client 10.240.1.18:34742] AH00035: access to / denied (filesystem path '/home/ubuntu/workspace/pset7/...
user avatar
  • 3,036
1 vote
Accepted

Pset6 Server 403 Error, problem with path

Your document root should be public. Path should be /home/ubuntu/workspace/pset6/public. You should call server as ./server public (assuming current working directory is ~/workspace/pset6). The reason ...
user avatar
1 vote
Accepted

pset6 server.c 403 forbidden for "/", problems for lookup and indexes

Hint: This line in indexes if (access(phpcheck, F_OK)) (and the other access) is wrong. Suggestion: Read man access. Pay special attention to the RETURN section. access returns an int. Treat it like ...
user avatar
1 vote
Accepted

Pset6 check50 version 2 error

INDEXES :( Requesting /test/ outputs /test/index.html :( Requesting> directory containing index.php outputs index.php \ expected> output, but not "HTTP/1.1 403 Forbidden\r\nContent-Type:...
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible