Getting Started with Dreamweaver: Publish your site

Source: Internet
Author: User
Tags aliases empty file system ftp connect dreamweaver dreamweaver ftp ftp access
dreamweaver| site This article explains how to set up a remote site using Macromedia Dreamweaver 8, and how to publish a Web page. A remote site is typically a location on a remote computer that is running a WEB server where a copy of local files is saved. When users view your page in a browser, they are accessing a remote site that is running on a WEB server.

  Understanding Remote Sites

After you create a Web site, the next step is to publish it by uploading the file to a remote folder. Remote folders are locations where files are stored for testing, production, collaboration, and publishing, depending on your environment. Dreamweaver This folder as a remote site.

Before continuing, you must be able to access a remote WEB server (such as your ISP's server, a server owned by your customer, an Intranet server in your company, or an Internet information Services (IIS) server on a Windows computer). If you do not already have access to such a server, contact your ISP, customer, or system administrator.

You can also run a WEB server on the local computer, such as IIS (Windows) or Apache (Macintosh). For more information about setting up a Web server on your local computer, see Installing a Web server.

If the remote root folder is empty, the procedure described in this tutorial works best. If your remote site already contains files, create an empty folder at the remote site (on the server), and then use the empty folder as your remote root folder.

You will also need to define a local site before proceeding.

  Defining remote Folders

Now you need to set up a remote folder to publish your Web page. The remote folder usually has the same name as the local folder, because the remote site is usually a complete copy of the local site. That is, files and subfolders that you publish to a remote folder are copies of files and subfolders that you create locally.

On your remote server, create an empty folder in the server's Web root folder.

Name the new empty folder Cafe_townsend (same as the name of the local root folder).

About... Use Dreamweaver to create a remote folder if Dreamweaver is the only way you can access a remote server, you cannot create an empty folder on the remote server until you complete the remote settings in Dreamweaver and establish a connection. If this is the case, you can define the host directory as a remote folder, or create a remote folder after you establish a connection to the server. In any case, follow the instructions in this tutorial before you connect to a remote server. After you establish a connection, you can create a new remote folder using the Dreamweaver file panel.

When you establish a connection to a remote server, the files panel displays all the files on the remote server in remote view (just as it displays all the local files on your computer in local view). To display remote view, choose Remote View from the pop-up menu at the top of the files panel, or click expand/Collapse in the Files Panel toolbar. When you click expand/Collapse, the files panel displays both local view and remote view.

To add an empty folder to the remote view, first display the remote view using one of the methods described earlier. (If you don't see the connection initially, click Refresh in the Files Panel toolbar.) After you have connected to the WEB server, right-click (Windows) or hold down the control key in remote view, click (Macintosh), and then select New Folder.

  

For more information, see Managing your files in use Dreamweaver.

In Dreamweaver, select Sites > Manage sites.

In the Manage Sites dialog box, select Cafe Townsend site.

If you do not define a Cafe Townsend site, create a local folder for the site before continuing. For more information, see Tutorials: Setting Up sites and project files.

Click Edit.

In the Site Definition dialog box, if the advanced setting is not displayed, click the Advanced tab.

From the category list on the left, select remote information.

Select an Access option.

The most common way to connect to a server on the Internet is "FTP" and "SFTP", the most common way to connect to a server on your Intranet, or if you use a local computer as a WEB server, the most common way to connect to a local computer is "local/network". If you are unsure which method to choose, ask the server's system administrator.

For more information, click the Help button on the dialog box.

If you select FTP, enter the following options:

Enter the host name of the server (for example, ftp.macromedia.com).

In the Host directory text box, enter the server path from the FTP root folder to the root folder (cafe_townsend) of the remote site. If you are unsure of the path, please consult your system administrator.

In many cases, this text box should be left blank.

Enter a username and password in the appropriate text box.

If your server supports SFTP, select the Use Secure FTP (SFTP) option.

Click Test to test the connection.

If the connection is unsuccessful, contact your system administrator.

For more information, click the Help button on the dialog box.

If you select Local/network, click the folder icon next to the text box, and then browse to the root folder of the remote site.

For more information, click the Help button on the dialog box.

Click OK.

Dreamweaver creates a connection to a remote folder.

Click Finish to close the Manage Sites dialog box.

  Uploading Local Files

After you set up a local folder and a remote folder, you can upload files from your local folder to your WEB server. To make your Web pages accessible to the public, you must upload them to the Web server, even if the Web server is running on your local computer.

In the Files Panel (window > files), select the Local root folder (Cafe_townsend) for the site.

Click the "Upload file" Blue arrow icon on the File Panel toolbar.

  

When Dreamweaver asks if you want to upload the entire site, click OK.

Dreamweaver copies all files to the remote folder that you defined in the Definition remote folder. This operation may take some time because Dreamweaver must upload all the files in this site.

Open your remote site in the browser to make sure all files are uploaded correctly.

  Resolving Remote Folder Setup issues

There are several ways to configure a WEB server. The following list provides information about some common problems that you may encounter when setting up a remote folder and how to resolve them:

The Dreamweaver FTP implementation may not be applicable to some proxy servers, multi-level firewalls, and other forms of indirect server access.

If you experience problems with FTP access, ask your local system administrator.

For Dreamweaver FTP implementations, you must connect to the root folder of the remote system. (In many applications , you can connect to any remote directory, and then locate the desired directory on the remote file system.) )

Make sure that the root folder of the remote system is specified as the host directory.

If there is a connection problem and a single slash (/) is used to specify the host directory, you may need to specify a relative path from the connected directory to the remote root folder.

For example, if the remote root folder is a higher level directory, you need to use the. /.. /Specifies the host directory.

File names and folder names that contain spaces and special characters often cause problems when transferred to a remote site.

Use underscores to replace spaces, and avoid using special characters in file names and folder names whenever possible. Specifically, a colon (:), slash (/), period (.) and apostrophe (') in a filename or folder name can cause problems. Special characters in file or folder names can sometimes prevent Dreamweaver from creating site maps.

If you encounter a long file name problem, rename it with a shorter name. In the Macintosh, the filename cannot be longer than 31 characters in length.

Many servers use symbolic links (UNIX), Shortcuts (Windows), or aliases (Macintosh) to connect one folder in a portion of a server disk to another folder elsewhere.

For example, the public_html subdirectory of the home directory on the server might actually be a link to another part of the server. In most cases, such aliases have no effect on your ability to connect to the appropriate folder or directory, but if you can connect to a part of the server and cannot connect to another part, there may be an alias difference.

If you encounter an error message such as "Unable to upload a file", the remote folder may not have enough space. See the FTP record for more details. Note In general, when you encounter problems with FTP transport, check your FTP records by choosing Site > Advanced > FTP Records.



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.