Websites

Websites for Individuals

All users with Physics Department accounts can set up a personal website by putting HTML documents into the subdirectory "public_html" of their home directory. (If this folder does not exist, simply create it.) These documents become visible on the world-wide-web at the URL http://users.physics.harvard.edu/~username (www.physics.harvard.edu/~username will also redirect there) , where you should, of course, substitute your own username for "username" in the URL. The site remains available while your account is active.

It is recommended that you create an index.html as your main page as this is the default page the web server will look for if none is specified (in other words, http://users.physics.harvard.edu/~username will cause http://users.physics.harvard.edu/~username/index.html to load if it exists.)

NOTE:  The users server is intended to share static content and is not intended to be used for dynamic content (scripting, PHP, etc.). There is no database access provided with this service. Static pages only, please.

You can connect to your account using SFTP or SSH using the Remote Access instructions. You can create a folder named "public_html" if it does not already exist and copy your website files into it. Be sure to create an index.html file as your main page, otherwise whatever files in the directory will just be listed (unless, of course, this is what you wish to happen, in which case do not created an index.html file).

UNIX/LINUX users please note: If you are locking down permissions on your home directory, you must set permission levels on the root of your home directory no stricter than 701 for the web server to be able to see your public_html directory (public_html should be 744 or 755, preferably). To add the execute bit: chmod o+x /home/[your username] (Example: chmod o+x /home/mmcfee ) -or- chmod 701 /home/[your username] (Example: chmod 701 /home/mmcfee )

 


Group Websites

  • To access a static group site that has been set up for you, you will need to use SSH/SFTP to connect to your site directly

or

  • If you have a wordpress site, you will log in to your site using at http://groupname.physics.harvard.edu/wp-admin (to upload a new theme, connect via SFTP and look in /home/groupname/wp-theme - Whatever theme is placed in the directory 'default' (/home/groupname/wp-theme/default) will become the active theme.


See the instructions given to you when your new site was set up for more details. 


 

TeX

 

Including TeX in a web page It is possible to include TeX equations in your web pages. While not every equation will render perfectly, the MimeTeX utility does a pretty good job. Example: This image was created using the following code: <img src="http://www.physics.harvard.edu/cgi-bin/mimetex.cgi?f(x)=\int_{-\infty}^xe^{-t^2}dt" border="0"> everything after mimetex.cgi? is the formula/equation you wish to display. If you wished to display the date and time, you could use \normalsize\blue\begin{matrix} \large\today\\\normalsize\today[3,+0]\text{ EST}\end{matrix} and the result would be: Please note: This is useful for adding sprinklings of TeX to your pages. If, however, you need to include many equations, you and your reader will be better served if you offer them a pre-rendered file (such as a PDF or postscript file). Too many equations on a page may cause the page to load slowly and will add to the taxation of the web server.