publishing your web pages ann emmanuel siue web administrator 650-3227

33
Publishing Your Web Publishing Your Web Pages Pages Ann Emmanuel Ann Emmanuel SIUE SIUE Web Administrator Web Administrator 650-3227 650-3227 http://www.siue.edu/CWIS/siuewe http://www.siue.edu/CWIS/siuewe b.html b.html

Upload: maximillian-stokes

Post on 04-Jan-2016

219 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Publishing Your Web Pages Ann Emmanuel SIUE Web Administrator 650-3227

Publishing Your Web Publishing Your Web PagesPages

Ann EmmanuelAnn Emmanuel

SIUESIUE

Web AdministratorWeb Administrator

650-3227650-3227

http://www.siue.edu/CWIS/siueweb.hhttp://www.siue.edu/CWIS/siueweb.htmltml

Page 2: Publishing Your Web Pages Ann Emmanuel SIUE Web Administrator 650-3227

Goals for TodayGoals for Today

Introduce you to WS-FTPIntroduce you to WS-FTP Show you how to configure WS-FTPShow you how to configure WS-FTP Show you how to actually transfer Show you how to actually transfer

web pages from your PC to the web pages from your PC to the server and/or from the server to server and/or from the server to your PC.your PC.

Provide other helpful tips for web Provide other helpful tips for web publisherspublishers

Page 3: Publishing Your Web Pages Ann Emmanuel SIUE Web Administrator 650-3227

What is WS-FTP?What is WS-FTP? Where Do I Get It? Where Do I Get It?

WS-FTP is file transfer protocol WS-FTP is file transfer protocol software which allows you to transfer software which allows you to transfer the web pages you have developed the web pages you have developed from your PC to the web server from your PC to the web server and/or from the server to your PC.and/or from the server to your PC.

You can download it for free from the You can download it for free from the SIUE HELPDESK web site: SIUE HELPDESK web site: http://www.siue.edu/HELPDESK/freeshare.http://www.siue.edu/HELPDESK/freeshare.htmlhtml

Page 4: Publishing Your Web Pages Ann Emmanuel SIUE Web Administrator 650-3227

Configuring WS-FTPConfiguring WS-FTP

Open up WS-FTPOpen up WS-FTP Before Before logging in, click on the Startup tab logging in, click on the Startup tab

in the Sessions Properties box.in the Sessions Properties box.Initial Remote Site Folder should be: Initial Remote Site Folder should be:

/www/ /www/YOURDIRECTORYYOURDIRECTORY (fill in (fill in from your e-mail confirmation from me). Note from your e-mail confirmation from me). Note there are no spaces.there are no spaces.

Initial Local Folder should be wherever you Initial Local Folder should be wherever you keep your files: C:\My Documents\ OR A:\keep your files: C:\My Documents\ OR A:\

Click on “Apply”Click on “Apply”

Page 5: Publishing Your Web Pages Ann Emmanuel SIUE Web Administrator 650-3227

Startup PreferencesStartup Preferences

Page 6: Publishing Your Web Pages Ann Emmanuel SIUE Web Administrator 650-3227

Configuring WS-FTPConfiguring WS-FTP

Before Before logging in, click on the General logging in, click on the General tab in the Sessions Properties box.tab in the Sessions Properties box.Profile name can be anything you like. I Profile name can be anything you like. I

use SIUE.use SIUE.Host name is: cougar.siue.eduHost name is: cougar.siue.eduHost type is: Unix (standard)Host type is: Unix (standard)User Id is: Your SIUENET id (i.e. aemmanu)User Id is: Your SIUENET id (i.e. aemmanu)Password is: Your e-mail password (I Password is: Your e-mail password (I

recommend you not save it)recommend you not save it)

Page 7: Publishing Your Web Pages Ann Emmanuel SIUE Web Administrator 650-3227

General PreferencesGeneral Preferences

Page 8: Publishing Your Web Pages Ann Emmanuel SIUE Web Administrator 650-3227

Configuring WS-FTPConfiguring WS-FTP

Click on Apply if you are setting up WS-Click on Apply if you are setting up WS-FTP for the first time, or OK if all the FTP for the first time, or OK if all the settings are OK and you are ready to log settings are OK and you are ready to log in.in.

Click on the Auto box at the bottom of the Click on the Auto box at the bottom of the screen.screen.

Click on the Options button at the bottom Click on the Options button at the bottom of the page. Select the Extensions tab. of the page. Select the Extensions tab. Click on the Add button and add: htm, Click on the Add button and add: htm, html, and TXT. Click on Apply.html, and TXT. Click on Apply.

Page 9: Publishing Your Web Pages Ann Emmanuel SIUE Web Administrator 650-3227

Extension PreferencesExtension Preferences

Page 10: Publishing Your Web Pages Ann Emmanuel SIUE Web Administrator 650-3227

Configuring WS-FTPConfiguring WS-FTP

Once you have set up these Once you have set up these preferences, you are set to start up preferences, you are set to start up where you want every time you log where you want every time you log in.in.

Page 11: Publishing Your Web Pages Ann Emmanuel SIUE Web Administrator 650-3227

Using WS-FTPUsing WS-FTP

The left side of the screen reflects what is The left side of the screen reflects what is on your PC.on your PC.

The right side of the screen reflects what is The right side of the screen reflects what is on the server.on the server.

You can sort the files by name or date in You can sort the files by name or date in either side of the window by clicking on the either side of the window by clicking on the name or date box for that window. Sorting name or date box for that window. Sorting by date can be helpful in locating all the by date can be helpful in locating all the most recently updated files for transfer.most recently updated files for transfer.

Page 12: Publishing Your Web Pages Ann Emmanuel SIUE Web Administrator 650-3227

The FTP screenThe FTP screen

Page 13: Publishing Your Web Pages Ann Emmanuel SIUE Web Administrator 650-3227

Transferring a fileTransferring a file

To move a file from the server to your PC:To move a file from the server to your PC: Determine where you want to put it on Determine where you want to put it on

your PC and make certain that folder is your PC and make certain that folder is open in the left window.open in the left window.

Find the file on the server you wish to Find the file on the server you wish to copy in the right window. Click on it to copy in the right window. Click on it to highlight it, and then click on the arrow highlight it, and then click on the arrow that points to the left to transfer it to that points to the left to transfer it to

your PC.your PC.

Page 14: Publishing Your Web Pages Ann Emmanuel SIUE Web Administrator 650-3227

Transferring a fileTransferring a file

To move a file from your PC to the server:To move a file from your PC to the server: Determine where you want to put it Determine where you want to put it

within your directory on the server and within your directory on the server and make certain that folder is open.make certain that folder is open.

Find the file on your PC in the left Find the file on your PC in the left window that you wish to move to the window that you wish to move to the server. Click on it to highlight it, and server. Click on it to highlight it, and

then click on the arrow that points to the then click on the arrow that points to the right to transfer it to the server. right to transfer it to the server.

Page 15: Publishing Your Web Pages Ann Emmanuel SIUE Web Administrator 650-3227

Transferring a FileTransferring a File

Page 16: Publishing Your Web Pages Ann Emmanuel SIUE Web Administrator 650-3227

Before you transfer files….Before you transfer files….

Be careful. Double clicking on a file Be careful. Double clicking on a file will automatically transfer it. Be will automatically transfer it. Be careful that you don’t click before you careful that you don’t click before you are ready!are ready!

Make sure you have a backup copy of Make sure you have a backup copy of your files. Once you’ve overwritten a your files. Once you’ve overwritten a file on the server or on your PC, you file on the server or on your PC, you cannot “undo” it. You should always cannot “undo” it. You should always have a backup, just in case!have a backup, just in case!

Page 17: Publishing Your Web Pages Ann Emmanuel SIUE Web Administrator 650-3227

Before you transfer files….Before you transfer files….

If more than one person is responsible for If more than one person is responsible for your site, make certain that you have your site, make certain that you have worked out the protocol regarding how worked out the protocol regarding how the site will be managed. You would the site will be managed. You would generally be best served by downloading generally be best served by downloading the file(s) needing updating from the the file(s) needing updating from the server, editing them, and sending them server, editing them, and sending them back up. That way you know you’re back up. That way you know you’re always working from the most current always working from the most current version.version.

Page 18: Publishing Your Web Pages Ann Emmanuel SIUE Web Administrator 650-3227

Before you transfer files….Before you transfer files….

Make certain that you have the Make certain that you have the correct file and that you are in the correct file and that you are in the correct directory.correct directory.

Don’t forget to send your images Don’t forget to send your images up to the server along with your up to the server along with your text files.text files.

Page 19: Publishing Your Web Pages Ann Emmanuel SIUE Web Administrator 650-3227

After you transfer files….After you transfer files….

Always check each page you load Always check each page you load in your browser to make certain in your browser to make certain that your page loaded successfully: that your page loaded successfully: images, links, etc. images, links, etc.

Page 20: Publishing Your Web Pages Ann Emmanuel SIUE Web Administrator 650-3227

After you transfer files….After you transfer files….

Remember to remove old files from the Remember to remove old files from the server if they are no longer being used. server if they are no longer being used. Just because you aren’t linking to them Just because you aren’t linking to them does NOT mean they won’t be found by does NOT mean they won’t be found by a search engine. Highlight the file and a search engine. Highlight the file and click on Delete. Note that you cannot click on Delete. Note that you cannot delete an entire folder if files exist delete an entire folder if files exist within it. First you’ll have to delete its within it. First you’ll have to delete its contents, then the folder itself.contents, then the folder itself.

Page 21: Publishing Your Web Pages Ann Emmanuel SIUE Web Administrator 650-3227

Other things to know...Other things to know...

If you have not configured WS-FTP as we If you have not configured WS-FTP as we did here today, the default Remote Site did here today, the default Remote Site will be your personal directory on the will be your personal directory on the server. For example, I would find myself server. For example, I would find myself in /staff/aemmanu/. You can use the up in /staff/aemmanu/. You can use the up arrow button at the top of the window to arrow button at the top of the window to get to the /www/ directory and then find get to the /www/ directory and then find your departmental site, or use ChgDir your departmental site, or use ChgDir and enter the name of your directory.and enter the name of your directory.

Page 22: Publishing Your Web Pages Ann Emmanuel SIUE Web Administrator 650-3227

Other things to know...Other things to know...

You have a 5 minute window of You have a 5 minute window of opportunity in which to complete a opportunity in which to complete a transfer once you have logged in. If you transfer once you have logged in. If you take more than 5 minutes, you will take more than 5 minutes, you will automatically be logged out. An error automatically be logged out. An error message will appear in the lower left message will appear in the lower left corner of the screen. To log back in, corner of the screen. To log back in, simply click on the “Close” button in the simply click on the “Close” button in the lower left corner and then click on it again lower left corner and then click on it again when it reads “Connect” and log back in.when it reads “Connect” and log back in.

Page 23: Publishing Your Web Pages Ann Emmanuel SIUE Web Administrator 650-3227

Other things to know...Other things to know...

Let’s say you transfer a file from your PC and Let’s say you transfer a file from your PC and discover it has a typo. You make the discover it has a typo. You make the correction, and want to transfer the corrected correction, and want to transfer the corrected version back up within that 5 minute window version back up within that 5 minute window of opportunity. Assuming you are still of opportunity. Assuming you are still logged into WS-FTP, you MUST click on the logged into WS-FTP, you MUST click on the Refresh button next to the screen for your Refresh button next to the screen for your Local System to bring the corrected version Local System to bring the corrected version into WS-FTP, BEFORE you can transfer it. If into WS-FTP, BEFORE you can transfer it. If you don’t you’ll simply resend the old file you don’t you’ll simply resend the old file with its typo.with its typo.

Page 24: Publishing Your Web Pages Ann Emmanuel SIUE Web Administrator 650-3227

Other things to know...Other things to know...

Page 25: Publishing Your Web Pages Ann Emmanuel SIUE Web Administrator 650-3227

Other things to know...Other things to know...

Each web directory is assigned an owner Each web directory is assigned an owner and a group. The owner of a directory and and a group. The owner of a directory and all members of the group, are granted all members of the group, are granted permission to update that directory only. permission to update that directory only. Requests to change directory ownership Requests to change directory ownership must come from the department chair. must come from the department chair. The directory owner can request changes The directory owner can request changes in the group membership. If someone in the group membership. If someone leaves, a request should be made to leaves, a request should be made to remove them from the group.remove them from the group.

Page 26: Publishing Your Web Pages Ann Emmanuel SIUE Web Administrator 650-3227

Other things to know...Other things to know...

You can view the ownership and You can view the ownership and group permissions of any directory group permissions of any directory by opening the directory in WS-FTP by opening the directory in WS-FTP and then clicking on the DirInfo and then clicking on the DirInfo button next to the Remote Site button next to the Remote Site window. window.

Page 27: Publishing Your Web Pages Ann Emmanuel SIUE Web Administrator 650-3227

DirInfo OutputDirInfo Output

Page 28: Publishing Your Web Pages Ann Emmanuel SIUE Web Administrator 650-3227

Other things to know...Other things to know...

If you have looked at your directory If you have looked at your directory permissions and want to know who permissions and want to know who belongs to a particular group, your can belongs to a particular group, your can check that as well. check that as well. Telnet to Cougar: Click on Start. Click on Telnet to Cougar: Click on Start. Click on

Run.Run. Type in: telnet cougar Type in: telnet cougar EnterEnter Enter your SIUENET ID (i.e. aemmanu)Enter your SIUENET ID (i.e. aemmanu) EnterEnter

Page 29: Publishing Your Web Pages Ann Emmanuel SIUE Web Administrator 650-3227

Other things to know...Other things to know...

Enter your e-mail passwordEnter your e-mail password EnterEnter Type in: grep Type in: grep groupname groupname /etc/group /etc/group

(i.e. grep wwwadmin /etc/group) (i.e. grep wwwadmin /etc/group) Make certain to include the space after Make certain to include the space after grep, and after the name of the group. If grep, and after the name of the group. If you make a mistake typing, you have to you make a mistake typing, you have to depress Control and the Backspace depress Control and the Backspace button to back up and correct your error. button to back up and correct your error.

Page 30: Publishing Your Web Pages Ann Emmanuel SIUE Web Administrator 650-3227

Other things to know...Other things to know...

You can change the group permissions You can change the group permissions for a file for a file you ownyou own from the default from the default assigned (i.e. staff) to the one assigned (i.e. staff) to the one assigned to your directory assuming assigned to your directory assuming you are a member of that group.you are a member of that group. Telnet to Cougar: Click on Start. Click on Telnet to Cougar: Click on Start. Click on

Run.Run. Type in: telnet cougar Type in: telnet cougar EnterEnter

Page 31: Publishing Your Web Pages Ann Emmanuel SIUE Web Administrator 650-3227

Other things to know...Other things to know...

Enter your SIUENET ID (i.e. aemmanu)Enter your SIUENET ID (i.e. aemmanu) EnterEnter Enter your e-mail passwordEnter your e-mail password EnterEnter Type in: Type in:

chgrp chgrp yourdirectorygroup yourdirectorygroup /www/ /www/directory directory name/filenamename/filename

EnterEnter Type in: ls -l /www/Type in: ls -l /www/directoryname/filename directoryname/filename to to

see that the group has been changedsee that the group has been changed Type in: Type in: chmod 775 /www/chmod 775 /www/directroynamedirectroyname//filenamefilename

Page 32: Publishing Your Web Pages Ann Emmanuel SIUE Web Administrator 650-3227

Other things to know...Other things to know...

Let’s say I want to change a file named Let’s say I want to change a file named search.html in the CWIS directory, where search.html in the CWIS directory, where I am the owner, and the current group is I am the owner, and the current group is “staff”, but I want the group to be “staff”, but I want the group to be wwwadmin. The commands would be:wwwadmin. The commands would be:

chgrp wwwadmin chgrp wwwadmin /www/CWIS/search.html/www/CWIS/search.html

chmod 775 /www/CWIS/search.htmlchmod 775 /www/CWIS/search.html

Page 33: Publishing Your Web Pages Ann Emmanuel SIUE Web Administrator 650-3227

Other things to know...Other things to know...

If you make a mistake typing, you If you make a mistake typing, you have to depress Control and the have to depress Control and the Backspace button to back up and Backspace button to back up and correct your error. correct your error.

If you are uncomfortable making this If you are uncomfortable making this change, you can request that the change, you can request that the permissions be updated by sending permissions be updated by sending me an e-mail to that effect.me an e-mail to that effect.