19 November 2012
Read and complete the following tutorials before beginning this one:
Welcome to the final part of this six-part series on creating your first website. This tutorial shows you how to set up a remote site in Dreamweaver. A remote site is usually a web server on a remote computer that holds copies of your local files. Users access the remote site when they view your pages in a browser.
Looking for the series for Dreamweaver CC? Click here.
This tutorial presents a very broad example of connecting to a remote server. It contains troubleshooting hints, but much depends on how your remote server is configured. When in doubt, consult your hosting company's help desk or your system administrator.
After you create a website, the next step is to publish it by uploading the files to a remote server. This is where you store your files for testing, production, collaboration, and publication (depending on your environment).
Before you can proceed, you must have access to a remote web server—such as a hosting company's server, a server owned by the client you're working for, or an intranet server within your company. Also, some Internet Service Providers (ISPs) provide access to free web space as part of your contract for internet connection. If you don't have access to such a server, contact your ISP, your client, your system administrator, or one of the many hosting companies that provide web hosting packages. Some hosting packages are free, but they usually insert advertisements into your site. An advertisement-free package can cost as little as a few dollars per month.
Alternatively, you can run a testing server on your local computer or network. For more information, see Setting up a local testing server in Dreamweaver CS5 (the process is the same in both CS5 and CS6). The rest of this article is focused on connecting to a remote server using FTP (file transfer protocol) or SFTP (secure file transfer protocol).
You also need to have a local site defined before you proceed. For more information, see Part 1 of this tutorial series, Setting up your site and project files.
Note: For more information about Dreamweaver sites, see Set up a local version of your site in Dreamweaver Help.
Dreamweaver site management is based on the principle that your local files are an exact duplicate of your live site on the Internet. So, index.html in your
check_cs6 folder becomes the front page of your remote site. If you already have a live website that you don't want to overwrite, use your site's control panel to create a folder named
check_cs6 where you can upload the Check Magazine files.
Dreamweaver CS6 lets you set up multiple server definitions for both remote and testing servers. However, only one of each type can be active at any given time.
Note: For details of how to set up FTP over SSL/TLS (FTPS), see the FTPS instructions in Connect to a remote server in Dreamweaver Help.
As I noted earlier, Dreamweaver site management is based on the principle that your local files are an exact duplicate of your live site on the Internet. The value of Root Directory should be the path you need to enter after logging into your server to get to the folder where you want to install index.html.
public_html. Others might use
wwwroot, or even nothing at all. On my remote server, it needs to be
/home/username/public_html. If in doubt, ask your hosting company or server administrator.
check_cs6, you need to type the path to that folder. For example, on my server, it would be
http://www.example.com/check_cs6/ (see Figure 4). Dreamweaver might have tried to guess the correct value, but it's only a guess. Do not accept the default value without checking it carefully.
Dreamweaver selects the Remote checkbox automatically.
The icons at the bottom of the Servers panel let you add another server, or to delete, edit, or make a copy of the selected server definition. Making a copy is useful if you need to change only a few details to connect to a different server.
You can now upload your files from your local folder to the remote web server to make your pages publicly accessible. However, you don’t need to upload the two text files in the assets folder nor the original comp for the site design. You can exclude them from being uploaded by cloaking them in your Dreamweaver site.
Note: To learn more about cloaking, see Cloaking files and folders in your Dreamweaver site in Dreamweaver Help.
assetsfolder, and select Cloaking > Cloak from the context menu. Dreamweaver puts a red diagonal line through the folder and file icons to indicate that they won’t be uploaded.
imagesfolder, right-click check_comp.jpg, and select Cloaking > Cloak from the context menu. Dreamweaver puts a red diagonal line through the file icon (see Figure 7).
check_cs6) at the top of the Files panel.
Note: In the Files panel, the local root folder actually begins with "Site – Check Magazine" because that's the name of the site. If you hover the pointer over that title, Dreamweaver shows you the full path to the
Dreamweaver connects to the remote server you just defined, and copies all of the files, except the cloaked ones, to the remote folder.
Note: Normally, you select the local root folder and upload the entire site only the first time you upload. Afterwards, you can upload only the files you've changed.
A web server can be configured in many ways. The following list provides information about some common issues you may encounter in setting up a remote server and how to resolve them:
check_cs6subfolder) as the Root Directory. If you have problems connecting, and you've specified the host directory using a single slash (
/), you might need to specify a relative path from the directory you are connecting to and the remote root folder. For example, if the remote root folder is a higher-level directory, you may need to use
../../to specify the host directory.
:), slashes (
/), periods (
.), and apostrophes (
') are not permitted in file or folder names.
public_htmlsubdirectory of your home directory on the server may really be a link to another part of the server entirely. In most cases, such aliases have no effect on your ability to connect to the appropriate folder or directory; however, if you can connect to one part of the server but not to another, there may be an alias discrepancy.
Note: In general, when you encounter a problem with an FTP transfer, examine the FTP log by choosing Site > Advanced > FTP Log. For more information, see the extensive tech note on FTP troubleshooting on the Adobe website.
You’ve created your first website and published it! Now you’re likely eager to create your second website—one with your own content and style—using Dreamweaver. As you do, you may want to keep this list of additional resources at hand: