Tux public_html Folder and Public Webpage Troubleshooting
Instructions
You can post public HTML pages on Tux by placing HTML and other related files in the public_html folder in your Tux home directory.
To set up your public_html folder, follow the directions at HTML Webpages on Tux. If you are still having trouble, return to this document for troubleshooting advice.
Troubleshooting
"Forbidden" or "403 Forbidden"
"You don't have permission to access this resource", "Server unable to read htaccess file, denying access to be safe", or something similar.The permissions on the public_html folder, or one or more files inside, may be incorrect. This can happen when using vscode, other IDEs, or by mistakenly applying a chmod command to your home directory.
Type in the following commands, and then press the Enter/Return key after each line.
- cd
- chmod -R 755 public_html
Try accessing your site again - with these permissions everyone should be able to read everything in your public_html directory. Be careful with this command - misuse could give everyone access to your data!
Not Found or 404 Not Found
"The requested URL was not found on this server" or something similar.Make sure you typed in the web address or URL into your web address bar correctly.
Example: If you had a file called 2022.txt in your public_html folder, you'd go to https://www.cs.drexel.edu/~mjg88/2022.txt
Example 2: index.html files do not need to be specified in the web address or URL. The web server will display them automatically if no specific path is given. https://www.cs.drexel.edu/~mjg88/ will bring you to the file "index.html" in mjg88's public_html directory.
Make sure you have a public_html folder.
If the folder is not named public_html, rename the folder. You can troubleshoot this by running the command "ls" - if the directory is misnamed, such as being named "publichtml" instead of "public_html" you can run the command "mv publichtml public_html" in order to fix this.
Further Help
If you've followed the above directions and are still having trouble accessing files in your web server, please contact ihelp@drexel.edu for support.
Please also see: