How to Build a Comp Sci Site
| Author: | Derwin Remedios |
| Submission Date: | 2004-09-01 |
| Website: | www.daremedy.com |
| Email: | daremedy@daremedy.com |
All you need for this is any standard SSH client. First thing you have to do is log into your scs account in Linux. Once in there, you should be in your /home/your_username directory.
Now you have to create a directory called public_html, to do so type in (without the ' ' ) ' mkdir public_html '. If you do an ' ls ' you should see your new directory. The public_html directory is a standard directory for placing web files and as soon as this directory is created, the Ryerson Computer Science will pick it up and place you on the web. But now we have to set file permissions.
In order for your files to be safe you need to set the permissions for the public_html directory so that only you can modify the content. To do this, make sure you are in your /home/your_username directory and type in 'chmod 711 public_html' (again without the ' ' ) and if you do an ' ls -l ' you should see your permissions set to drwx--x--x for the public_html directory, which is good!
Finally, to actually get things running, you need an index file. This is where you come in! The Ryerson servers support php and html, so create either an index.php file or index.html and type your content. For example, in SSH you can do ' pico index.html ' and just type in hello world! and press Ctrl-X and y. Give the server a few minutes to pick up your newly created website and check it out at www.scs.ryerson.ca/~your_username. Again a safety tip, all the files in your public_html folder should have permissions set to 644, again you can change the permissions using ' chmod 644 filename '. Easy huh?
| Rate this article: Lowest = 1 to Highest = 5 |
|
| View PDF Bookmark Printer Friendly | |
