Putting your Homepage on the World Wide Web:

Getting Started:
Creating your public_html directory and index.html file


  1. Make your home directory searchable

    The browser must have permission to search your directory for your public directory in order to publish your home page. This does not give anyone the ability to read your files.
    myhost.1> cd
    myhost.2> chmod 711 .
      
    Notes:
    • don't forget the .
    • This does not give anyone the ability to read your files.
    • myhost is the prompt for the machine where your account is located. (for example: julia, sonia, joshua, fern....)

  2. Create a public_html directory

    Create a directory in your home directory called public_html, and make it world-readable:

      myhost.3> mkdir public_html
      myhost.4> chmod 755 public_html
      myhost.5> cd public_html
      
  3. Put your personal home page in the public_html directory with the name "index.html"
  4. The name "index.html" is special. When a URL specifies a directory instead of a file, the browser looks in that directory for a file called "index.html" and displays it. This allows people to see your home page by opening the URL "http://www. math.ucla.edu/~username".

  5. Create your index.html file.

    Use your favorite unix editor (vi or emacs) to get started!
    You need to use the HTML (Hypertext Markup Language) for your webpages. There are other ways to create webpages without using HTML, but let's just get started with this:

    <html>
    <head>
    <title>
    Josephine Bruin's Homepage
    </title>
    </head>
    <body>
    Welcome to Josephine Bruin's Homepage!
    <br><br>
    Thanks for stopping by!
    </body>
    </html>
    
    
  6. Make your home page world readable

myhost.6> chmod 644 index.html

Your home page will automatically be added to a list of home pages within the next 24 hours. These listing of homepages are located on the People Page, accessible from the Math Dept. Homepage. If you have problems with your name appearing on the People Page, contact the Math Department Webmaster, webmaster@math.ucla.edu.

Learn more about: