Intro to Using EECS Workstations

Version 2.0
2.7 Setup Your Website [Back to Homepage]


You can host a website on your EECS account!

Make a directory called public_html under your home directory. Set permissions to be world executable (meaning people can enter this directory from the Web). Being world executable is a minimum requirement for a website. But it's up to you whether you want it to also be world readable (that means people will be able to see the names of files in the directory). Here are the commands to do what I just described:

cory% cd ~
cory% mkdir public_html
cory% chmod 711 public_html

Now, create a file called index.html and put it in public_html. Fill it with HTML, like you know how. If not, there are many sites that teach HTML. Just do a google search or check out Webmonkey. In the meantime, you can use the following code in your index.html file:

<html>

<head>
<title>My Homepage Title<title>
<\head>

<body>
<h1>Hello World<\h1>
<p>
This is some sample text for my webpage.
<\body>

<\html>

Once you've got all that set up, you can now visit your creation. If your account is cs61a-zz, then your website will be at:

http://inst.eecs.berkeley.edu/~cs61a-zz/

Cool, huh? =)

For more information and policies, check out inst.eecs.berkeley.edu.

©Copyright 2001, Richard Shiao. All rights reserved. Please send comments to: [email protected]
Hosted by www.Geocities.ws

1