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 )
- 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
- 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.