You can make your own World Wide Web page(s) available on the Internet! Just complete these steps:
1. Go to the directory in your home directory called public_html. If this directory does not exist, you must create it first.
2. Create a file called index.html in this directory. This is your homepage file.
3. Type the information you want in to the file. This must be done in Hyper Text Markup Language (thus the extension html).
How to get started
- Start a Terminal window.
- Go to your home dir
- List the contents of your home dir
If you don't have a dir called "public_html" type the following to create it:
(As of October 2013 public_html is a link to /www/xx/x/public_html)
Now you have a directory where your web files will reside in. Start for example by making a file called index.html:
- Go to the public_html dir
- Edit a new file called index.html (emacs is used in this example - use your favorite editor)
- Write something like the following in index.html and save it
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=iso-8859-1">
<h1>Sample HTML Header</h1>
Permissions and access problems
To let others view your homepage, you have to set permissions on your public_html directory. For at better understanding of Unix Permissions read the section permissions
- First of all start a Terminal window.
- Then enter the following command, which will change the permissions on your public_html.
chmod 755 ~/public_html
- There is a more restrictive way. If you don't want to give everybody read/browse access to your web site.
chmod 701 ~/public_html
See the Permissions page for more information.
PHP and Server-Side scripting
We don't provide PHP or server-side scripting.
We don't provide MySQL. The only MySQL server running at DTU is for courses which requires it.