Set Up a Student Website


Overview


UC San Diego students have server space to publish a personal website.

Critical Concepts


Steps to Take


1. Create your first web file

You can either log into the server and build your website there, or you can use a text editor on your computer.

2. Set up your public_html directory

You will need a directory named public_html in your account in order to display web pages. This directory and all web pages under it will need to have the permissions set to be:

Sometimes this is seen in octal as 755 or 6755.

You can set this up either through command line or an SFTP client. Many SFTP clients will allow you to make the necessary changes, below we will explain how to do so using Filezilla.

SFTP Client

Download your favorite SFTP client and use the following to access your web space:

To create the directory in Filezilla, right click on your username in the remote server portion of your SFTP client (or some empty space in the next box below) and choose Create Directory. Update only the last portion (this should already be highlighted and say New directory) to be public_html.

To set the permissions, right click the public_html directory and choose the File Permissions option. You will need to set it to the settings listed above.

Command line

Connect to the server through ssh by entering the following command:
ssh username@acsweb.ucsd.edu

Once connected, you can create the directory by using the command:
mkdir ~username/public_html

After the directory is made, you can set the permissions with:
chmod 6755 ~username/public_html

3. Upload your web pages

You will need to make sure any web pages you upload are put into public_html as only files in that directory will be visible online.

SFTP Client

If you are using an SFTP client, you should be able to find the files you want from your computer to drag and drop into your public_html directory on acsweb.

Command line

Open a Terminal window and enter the following command:
scp file.html username@acsweb.ucsd.edu:~username/public_html

If you plan on uploading a folder, don't forget to use the recursive flag:
scp -r folder username@acsweb.ucsd.edu:~username/public_html

4. View your site

Once you have completed these steps, you may view your site at:

http://acsweb.ucsd.edu/~username

If you still have questions or need additional assistance, please submit a ticket or call the ITS Service Desk at (858) 246-4357