Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision |
general_method [2021/02/10 13:45] – created ac1mde | general_method [2023/05/18 16:21] (current) – ac1mde |
---|
Your personal web directory is a sub-directory "public_html" in your network home directory, and all files/directories you create must have world-read/execute permissions to be visible to the web server. | Your personal web directory is a sub-directory "public_html" in your network home directory, and all files/directories you create must have world-read/execute permissions to be visible to the web server. |
| |
The easiest way to access your web directory is to use a special SMB share "\\server\mypublic_html" (where server is "stustore" for students and "staffstore" for researchers). For example, for the student "astudent", the file "\\stustore\mypublic_html\myfile.html" is available as "http://stuwww.dcs.shef.ac.uk/people/AStudent/myfile.html". If you use this share then the file permissions are set correctly automatically. | The easiest way to access your web directory is to use a special SMB share "\\server\mypublic_html" (where server is "stustore.dcs.shef.ac.uk" for students and "staffstore.dcs.shef.ac.uk" for researchers). For example, for the student "astudent", the file "\\stustore\mypublic_html\myfile.html" is available as "http://stuwww.dcs.shef.ac.uk/people/AStudent/myfile.html". If you use this share then the file permissions are set correctly automatically. |
| |
Your web directory is also available as "h:\public_html\" (windows), "\\stustore\uname\public_html" (windows, students), "\\staffstore\uname\public_html" (windows, staff), or "/home/uname/public_html" (unix). If you use any of these, files/directories are created with normal permissions, i.e. full to the owner and none to anyone else, and you will need to remember to set permissions to world read and execute. | Your web directory is also available as "\\stustore.dcs.shef.ac.uk\uname\public_html" (windows, students) or "\\staffstore.dcs.shef.ac.uk\uname\public_html" (windows, staff). If you use any of these, files/directories are created with normal permissions, i.e. full to the owner and none to anyone else, and you will need to remember to set permissions to world read and execute. |
| |
| Alternatively you can SSH into stulogin.dcs.shef.ac.uk or stafflogin.dcs.shef.ac.uk, as appropriate, with your DCS account, and manage the public_html directory via the terminal emulator. Use mode 755 for directories and 644 for files, so that the they can be served by the web server. |
| |
Remember that "\\server\mypublic_html" and "\\server\uname\public_html" are the same location for the same user, but the permissions that are applied to files/directories are different. | Remember that "\\server\mypublic_html" and "\\server\uname\public_html" are the same location for the same user, but the permissions that are applied to files/directories are different. |
| |
All web material must be in your web tree, and you cannot make unix symbolic links to files or directories outside of this tree. | All web material must be in your web tree, and you cannot make symbolic links to files or directories outside of this tree. |