To be able to list directories in Chrome, try executing these commands in the terminal
chmod 755 public/
and delete any files named index inside
If you then add any files within this directory, then following the pset specification page, for any PHP file, file, that you create, execute
chmod 600 file
and for any non-PHP file, file, that you create (or upload), execute
chmod 644 file
file is the name of your file.
Also, make sure the files are accessible by jharvard:students. To make sure of that, open up the terminal and navigate to
~/vhosts/localhost/public/ (using the
cd command) and list your files by executing
If for example, you have a file named index.php, you should see something like
-rw-------. 1 jharvard students 123 Aug 2 02:23 index.php
If you see something other than
jharvard students, execute
sudo chown jharvard:students file
file is the name of your file (e.g., index.php).
Hope that helps!