Linux User Web Page - Setup Instructions
- 1. Log into any SDSC workstation (i.e., login.sdsc.edu).
2. Make a new directory in your home directory named public_html (lowercase).
-
% mkdir public_html
Then set the permissions of the directory to world readable with the following command.
- % chmod 755 public_html
You can turn off group and world read access on your directory while still allowing the daemon to serve your files by maintaining group and world execute permissions with the following command.
- % chmod 711 public_html
3. Copy/move your HTML files to the newly created public_html directory. If you have questions about how to move your data to SDSC, please send a message to webmaster@sdsc.edu.
4. Make sure the web server can read your files by setting their permissions to world readable with the following command. Make sure your default home page has the filename index.html.
-
% chmod 644 ~/public_html/*.htm*
As soon as you complete these steps, your home page should serve at http://users.sdsc.edu/~<username>/ where <username> gets replaced by your user login name.
5. [Optionally] Turn on CGI handling.
To enable CGI execution via the http://users.sdsc.edu/ Apache service, create a file in your public_html directory called .htaccess and insert the following two lines.
Options ExecCGI AddHandler cgi-script .cgi