4.5. Troubleshooting Tips¶
If your API website is not working as expected, make sure your
doc
folder is not empty and double-check your URL ensuring
that you replaced user
with your MyID. If all of those
things look okay, run the command:
ls -l ~/public_html
to list the contents of your public_html
directory (found in
your home directory). If you see a
red/flashing link, that indicates that the location of the doc
directory was not set properly. To fix this:
Remove the broken symbolic link from
public_html
using therm
command followed by the name of the link. Something like this:Important
In the command below, do not include a / at the end of the relative path. If you use tab completion, it will add it for you so you will need to remove it before removing the link.
rm ~/public_html/link_name
After deleting the broken link, run the
ln -s
command again using the full absolute path (or the shortcut) to yourdoc
directory as the first argument.Verify that the new symbolic link is not red/flashing by running
ls -l ~/public_html
again.Visit the API documentation website in your browser.
If these steps don’t fix the problem, share the following on Piazza and an instructor or TA will help you diagnose the problem:
A screenshot of the output of
ls -l ~/public_html
.The command you used to generate the symbolic link (the
ln
command)The URL you used in the browser to view the website.