Set up Dreamweaver’s FTP Features
After you gather your FTP information, you’re ready to set up Dreamweaver’s FTP publishing features and publish your mobile website. The good news is that you have to do it only once. (Dreamweaver saves these settings for you so that you don’t have to set them up every time you want to upload new pages to your site.)
1Open Dreamweaver and choose Site→Manage Sites.
The Manage Sites dialog box opens.
2In the list of defined sites, select the site you want to publish and then click the Edit button.
The Site Setup dialog box opens. If your site isn’t listed in this dialog box, you haven’t set up your site.
3Select Servers from the categories listed in the left panel of the Site Setup dialog box.
The server list appears. If you haven’t yet set up a web server in Dreamweaver, the list is blank. Any servers you have set up properly are listed in this dialog box.
4Click the small plus sign in the lower left corner of the server list area.
The Basic tab opens in the Servers dialog box and FTP is selected automatically. If you need to use an option other than FTP, look ahead to the list at the end of these steps.
5Enter a name in the Server Name field.
You can name your server anything you like. Choose a name that lets you easily choose among the servers you’ve set up. (If you use only one web server to host your site, the name doesn’t matter as much as if you host your site on multiple sites, which is generally done only by large or international sites.)
6Enter the FTP address for your web server account.
Again, this information depends on how your web server is set up, but most use ftp.servername.com, ftp.yourdomainname.com, or simply yourdomain.com with nothing at the beginning of the domain.
7In the Username and Password fields, type your username (or login name) and password, respectively.
Again, this information is unique to your account on your web server.
8Select the Save check box to the right of the Password field if you want Dreamweaver to store your access information.
This action is handy because you can then automatically connect to the server anytime you want to upload or download pages. However, selecting the Save check box could enable anyone with access to your computer to gain access to your web server.
9Click the Test button to make sure you've entered everything correctly.
Making a mistake is easy, so the ability to test the connection and make any necessary adjustments before you close this dialog box is helpful. If you connect with no problems, Dreamweaver responds with the message Dreamweaver connected to your Web server successfully.
(Note: You must save the password in order to use the test feature, but you can deselect the Save box after you test, if you prefer not to save the password in the program.)
If you have trouble connecting to your site, skip to Step 11 for a few advanced options that may help.
10In the Root Directory (also known as the local site folder) field, type the directory name of the remote site in which documents visible to the public are stored.
The root directory usually looks similar to public_html or www/htdocs. Again, it depends on your server.
If you upload your files to the wrong directory on your server, they aren’t visible when you view your site in a browser.
11Click the small arrow to the left of More Options.
You may not need to change any settings, but if you have trouble connecting to your server and are sure you’ve entered your username, password, and FTP address correctly, adjusting these settings may enable you to connect.
Select and deselect each of these options and then click the Test button after each change to see whether any of the adjustments make the difference and enable you to connect to your server.
12After you fill in all the information, click the Test button; if you successfully connect to your server, click the Save button to save your settings.
Dreamweaver saves all your FTP settings (assuming that you opted to save the password). The beauty is that you never have to enter these settings again after they work properly, and you can access your web server from the Files panel in Dreamweaver, as you can read about in the next section.