ptg16476052
636 LESSON 23: How to Publish Your Site
Troubleshooting
What happens if you upload all your files to the server and try to display your home page
in your browser and something goes wrong? Here’s the first place to look.
I Can’t Access the Server
If your browser can’t even get to your server, this probably isn’t a problem you can fix.
Make sure that you have entered the right server name and that it’s a complete hostname
(usually ending in .com, .edu, .net, or some other common suffix). Make sure that you
haven’t mistyped your URL and that you’re using the right protocol. If your webmaster
told you that your URL included a port number, make sure that you’re including that port
number in the URL after the hostname.
Also make sure that your network connection is working. Can you get to other URLs?
Can you get to the top-level home page for the site itself?
If none of these ideas solve the problem, perhaps your server is down or not responding.
Call your webmaster to find out whether she can help.
I Can’t Access Files
What if all your files are showing up as Not Found or Forbidden? First, check your URL.
If you’re using a URL with a directory name at the end, try using an actual filename at
the end—like index.html. Double-check the path to your files; remember that the path
in the URL might be different from the path on the actual disk. Also, keep case sensitiv-
ity in mind. If your file is MyFile.html, make sure that you’re not trying myfile.html or
Myfile.html.
If the URL appears to be correct, check the file permissions. On UNIX systems, all your
directories should be world-executable, and all your files should be world-readable. You
can ensure that all the permissions are correct by using the following commands:
chmod w+r filename
chmod 755 directoryname
Most FTP clients will allow you to modify file and directory permis-
sions remotely.
TIP
I Can’t Access Images
You can get to your HTML files just fine, but all your images are coming up as icons or
broken icons. First, make sure that the references to your images are correct. If you’ve