CSUN ITR

Technology Training Guides

Web Publishing at CSUN

   

Web Publishing to a Campus Account with Dreamweaver 4

The instructions in this document pertain to campus accounts only. If you publish to a departmental web server, please contact your server administrator for publishing instructions.

Preparing Your Campus Account for Web Publishing

  1. In the Address/Location text box at the top of your browser window (e.g., Netscape or Internet Explorer), type the following and then tap the ENTER key:
  2.  

    ssh://ssh.csun.edu

  1. When the "login:" prompt appears in the telnet window, log in to your campus network account (e.g., xyz12345 or hcxyz123).
  2. At the command prompt (e.g., "csun>") type the following three UNIX commands (tapping the ENTER key after each one). You will get no confirmation that you've entered a UNIX command correctly; if you get no message, it means the command was accepted.
mkdir public_html 
chmod 711 $HOME 
chmod 755 public_html

The first command creates (makes) the directory where your Web documents will be located (public_html). The second allows other people access to your home directory (but NOT to read any files). The third allows access to the public_html directory and any files you transfer to that directory from your desktop computer (this does not include files you create directly in your account). 

Defining a Site

Dreamweaver's site maintenance function includes the ability to transfer files between your desktop computer and the campus web server. Once you have defined a site as described below you can use Dreamweaver's Site Files window to view the local and remote locations and transfer files between them.

Note: Only the settings required to publish pages to central CSUN web server are described in this document. Please refer to your Dreamweaver manual for additional information.

  1. From the Site menu, choose New Site.
  2. In the Local Info category (already selected), enter the following information.
    • Site Name: Type a short, descriptive name to identify your site (e.g., PersonalWeb for your personal website or HISTweb for the History department website)
    • Local Root Folder: Click the folder next to the text box and locate the folder on your desktop computer where your site files are or will be stored (e.g., C:\MyFiles\PersonalWeb or C:\MyFiles\HISTweb)
  3. In the Category panel of the dialog box, select (click) Remote Info.
  4. From the Access drop-down menu, choose FTP.
  5. Enter the following information in the text boxes that appear.
    Note: For security reasons, it is recommended you DO NOT enter (or save) your password in this dialog box. You'll be prompted for the password when you transfer files.
    • FTP Host: ftp.csun.edu
    • Host Directory: ~account/public_html
    • Login: account (e.g., xyz12345)
  6. When finished, click OK.

New Site dialog boxes (Local Info and Remote Info) are shown in Figures 1 and 2, below.

FIGURE 1. Local Info Dialog Box for a New Site DefinitionLocal Info dialog box


FIGURE 2. Remote Info Dialog Box for a New Site Definition

Transferring Files

To transfer files from the local folder (on your desktop computer) to the remote site (on the University's central Web server), do the following:

  1. Click Show Site on the Launcher Bar and then, if necessary, select the site from the "Site:" dropdown menu in the Site Window that appears. [Or, from the Site menu, choose Open Site; then, from the cascading menu that appears, choose the site you defined. The Site window will be displayed (as shown in Figure 3, below).]
  2. Select the folder or file(s) you want to transfer (upload). For example:
    • To transfer the entire site, select (click) the top-level folder. You may want to make this selection the first time you publish the site. Once the site is published you'll probably want to transfer only files that you add or modify.
    • To transfer a single file, select (click) the desired file.
    • To transfer several files, hold down the CTRL key and click each file to be transferred.
  3. Click the Put File(s) button (a blue upward pointing arrow) — or choose Put from the Site menu.
  4. When the "Enter Password" dialog box appears, enter the password for your campus account and click OK.
  5. A question appropriate to your transfer selection — file(s), folder(s), or the entire site — will appear in a dialog box. For example:
    • If you choose to transfer the entire site, the question will be "Are you sure you wish to put the entire site?" Click OK to continue with the transfer; click Cancel to cancel the procedure.
    • If you choose to transfer one or more files, the question will be "Include independent files?" Make your selection — Yes, No, or Cancel. You can also choose not to see this question in the future by clicking the box next to "Don't ask me again".

FIGURE 3. Site Window

Other File Management Features

In addition to uploading files (put) to the campus web server, you can also download (get) files from the site — using the Get File(s) button (a green downward-pointing arrow) or choosing Get from the Site menu. Deleting files from your site is simply a matter of selecting (clicking) the desired file(s) and taping the Delete key. Note that if the files on the Remote Site side of the Site Window aren't displayed, you'll have to make connection before downloading or deleting files. Use the Connects to remote host button to log on (or choose Connect from the Site menu). To update the file listings, click the Refresh button.

In short, you can use the Dreamweaver Site window in much the same way as you can use any FTP (file transfer protocol) software. For additional information about the Site window click the Displays help for this window button (a question mark in a gray circle).

The Web Address of the Published Site

If your main Web page file is called index.html your Web page address is:

http://www.csun.edu/~account

where account is the campus account where the file is located. Make sure to include the tilde (~) character.

The Web page address for any page other than index.html is of the format:

http://www.csun.edu/~account/filename

where account is your account number (e.g., xyz12345 or hcxyz123) and filename is the name of your Web page file (homepage.html, for example). Again, make sure to include the tilde (~) character.

Questions?

If have questions about these procedures, please contact the University Help Desk at (818) 677-1400 or via email to helpdesk@csun.edu.

 

Top

 
 

January 26, 2007

Prepared by Gail Said Johnson, User Support Services

Comments/Help

ITR's technology training guides are the property of California State University, Northridge. They are intended for non-profit educational use only. Please do not use this material without citing the source.