Oregon State University

Publishing Your Website

Note: ONID provides personal website space for all ONID users. If you need a professional website for your class, organization, or group, go to oregonstate.edu/is/services/cws to request a Drupal site.

Setting up your personal website on the ONID server can be broken down into 6 main steps:

  1. Connect to your home directory
  2. Configure your home directory
  3. Create your .html pages
  4. Move .html files to the server
  5. Setting file permissions
  6. Access your website

 



Back to top

Connecting to your home directory:

In order to access your ONID directory, you must be able to connect to it from a remote location.

Read the Connecting to your Home Directory instructions.

 



Back to top

Configuring your home directory:

Your home directory should already have a directory named public_html. If it doesn't already have one, you will have to create one using shell access.

Commands for creating your public_html directory, if you don't already have one:


cd
mkdir public_html
chmod 755 public_html

 

 



Back to top

Creating .html pages:

You must write your HTML pages using an HTML/text editor.

There are a number of HTML editors out there. Some are WYSIWYG (What You See Is What You Get), some are code-based, and some are a hybrid of both. For all practical purposes, if you are trying to make a webpage it would be a good idea to make sure you understand HTML. Unfortunately, we do not have the resources to teach you how to use HTML. There are, however, a lot of resources on the web that you could take advantage of. Here are a few links you should check out if you are not familiar with HTML:

You may contact the OSU Computer Helpdesk for more HTML help, but use that resource only for specific questions. Don't send us an email saying, "How do I write html?" until you have taken a look at the resource links provided above. You can ask us questions like, "What tag do you use to insert a carriage return?" for example.

 



Back to top

Moving the .html files to the ONID server:


The files you create must be placed in your public_html directory.

Moving your .html files to your public_html directory can be done from any machine with an internet connection. Please read the Connecting to your Home Directory instructions.

 



Back to top

Setting file permissions:

Once your files are on the server, they must be configured so that people can read them.

Typically, your files should already have the right permissions on them. However, there are some instances where your transferred files won't be seen when you try to access them through the web. If this happens to you, then you can fix it in a few easy steps using shell access.

Commands for changing permissions on your .html files in your public_html directory:


cd ~/public_html
find ./ -type d -exec chmod 755 {} \;
find ./ -type f -exec chmod 644 {} \;

 



Back to top

Accessing your website:

Once everything is completed, you should be able to view your web page by visiting http://people.oregonstate.edu/~username/ in any basic web browser (Firefox, Internet Explorer) -- just replace "username" with your username.

Before you give out your web address to all your friends, make sure to go check it yourself to see if you made any errors.

If you've reached this point and you're stuck, please contact the OSU Computer Helpdesk by sending us an email.

Contact Info

Copyright ©  2014 Oregon State University
Disclaimer