Difference between revisions of "Creating a Personal Webpage"

 
(11 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
==INTRO==
 
==INTRO==
  
CS users may create pages on our www.cs.jhu.edu webserver.
+
CS users may create webpages on our www.cs.jhu.edu or www.ugrad.cs.jhu.edu web servers.
  
 
===NOTES:===
 
===NOTES:===
:*  To make a webpage on our webservers, ''you must have a [[Obtaining_CS_Computer_Accounts|CS Linux account]]''.
+
:*  To make a webpage on our web servers, ''you must have a [[Obtaining_CS_Computer_Accounts|CS Linux account]]''.
 
+
:**CS Grad Net account required for the main CS webserver.
:* CS IT does not create or edit webpage content for users.
+
:**CS Ugrad Net account required for the Ugrad webserver.
  
 +
:* {{red| CS IT does '''not''' create or edit webpage content for users.  You are responsible for your own website design and troubleshooting.}}
  
 
== Accessing Your Webpage ==
 
== Accessing Your Webpage ==
  
NOTE: Where you see "''account''", replace that with your account name.
+
NOTE: Where you see "''account''", replace that with your CS account name.
  
* On the CS '''''Grad/Research''''' net, use <tt><nowiki>http://</nowiki>www.cs.jhu.edu/~''account''</tt> or  <tt><nowiki>http://</nowiki>www.cs.jhu.edu/~''account''</tt>
+
* On the CS '''''Grad/Research''''' net, use <tt><nowiki>http://</nowiki>www.cs.jhu.edu/~''account''</tt> or  <tt><nowiki>http://</nowiki>cs.jhu.edu/~''account''</tt>
  
* On the CS '''''Ugrad''''' net, use <tt><nowiki>http://</nowiki>www.ugrad.cs.jhu.edu/~''account''</tt> or <tt><nowiki>http://</nowiki>www.ugrad.cs.jhu.edu/~''account''</tt>
+
* On the CS '''''Ugrad''''' net, use <tt><nowiki>http://</nowiki>www.ugrad.cs.jhu.edu/~''account''</tt> or <tt><nowiki>http://</nowiki>ugrad.cs.jhu.edu/~''account''</tt>
  
 
== Making a Basic Homepage ==
 
== Making a Basic Homepage ==

Latest revision as of 14:22, 7 June 2024

INTRO

CS users may create webpages on our www.cs.jhu.edu or www.ugrad.cs.jhu.edu web servers.

NOTES:

  • To make a webpage on our web servers, you must have a CS Linux account.
    • CS Grad Net account required for the main CS webserver.
    • CS Ugrad Net account required for the Ugrad webserver.
  • CS IT does not create or edit webpage content for users. You are responsible for your own website design and troubleshooting.

Accessing Your Webpage

NOTE: Where you see "account", replace that with your CS account name.

  • On the CS Grad/Research net, use http://www.cs.jhu.edu/~account or http://cs.jhu.edu/~account
  • On the CS Ugrad net, use http://www.ugrad.cs.jhu.edu/~account or http://ugrad.cs.jhu.edu/~account

Making a Basic Homepage

ssh into one of our Linux clients.

chmod 0701 ~                  # That's a tilde at the end of the command.
mkdir ~/public_html           # This directory might already exist.  If so, do not delete its contents.
chmod 0701 ~/public_html
cd ~/public_html

Edit index.html with your favorite editor. Follow the template below for your index.html file:

<html>
    <head>
        <title> Title of my webpage </title>
    </head>
    <body>
        <h1> Title of my webpage </h1>
        <p> This is a test! </p>
    </body>
</html>

Save and exit from your editor.

chmod 0604 index.html

Now check your work. Visit your webpage as described in Accessing your webpage, above.

If you add more pages, please make sure they all have the appropriate permissions, as described in File Permissions for Webpages. That link is a useful resource any time you get a "permission denied" error when trying to access your webpage.

Other Issues

If you need additional help, please e-mail CS IT Support with a complete description of your problem.