Wiki source code of EigeneHomepage
Last modified by wikibot on 2023/02/05 20:29
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | = Creating your own homepage = | ||
2 | |||
3 | This article explains how and where you can set up a homepage of your own on the university computers. Each informatics student has the opportunity to create one under the URL: http://home.in.tum.de/~//accountName///. | ||
4 | |||
5 | |||
6 | |||
7 | {{toc/}} | ||
8 | |||
9 | |||
10 | |||
11 | == 1. General information == | ||
12 | |||
13 | |||
14 | A worthwhile German website with a FAQ-section on setting up a homepage by Franz Prilmeier can be accessed [[here>>http://wwwrbg.in.tum.de/rechnerhalle/data/home_page_faq.php]]. | ||
15 | |||
16 | **(% style="color:red" %)Important remark:(%%)** [[https://xwiki.rbg.tum.de/bin/view/Informatik/Helpdesk/Zugriffsrechte>>https://xwiki.rbg.tum.de/bin/view/Informatik/Helpdesk/Zugriffsrechte]]. This wiki-page should be read thoroughly before the homepage creation so that potential risks are minimized. | ||
17 | ---- | ||
18 | |||
19 | == 2. Preparation == | ||
20 | |||
21 | The \"index.html\" file for the home page is situated in the directory: | ||
22 | |||
23 | |||
24 | |||
25 | {{html wiki="true"}} | ||
26 | {{code}}/u/halle/$USER/home_page/html-data/ {{/code}} | ||
27 | {{/html}} | ||
28 | |||
29 | |||
30 | |||
31 | Following commands should be executed: | ||
32 | |||
33 | |||
34 | |||
35 | {{html wiki="true"}} | ||
36 | {{code}}ssh <loginname>@lxhalle.in.tum.de%BR%%BR%mkdir -p $(dirname $HOME)/home_page/html-data%BR%%BR%touch $(dirname $HOME)/home_page/html-data/index.html%BR%%BR%chmod -v o+x $(dirname $HOME)%BR%%BR%chmod -v o+x $(dirname $HOME)/home_page%BR%%BR%chmod o+x $(dirname $HOME)/home_page/html-data%BR%%BR% chmod o+r $(dirname $HOME)/home_page/index.html{{/code}} | ||
37 | {{/html}} | ||
38 | |||
39 | |||
40 | |||
41 | They ensure the generation of an empty \"index.html\" file and the correct setting of the access rights. | ||
42 | |||
43 | == 3. Generating HTML code == | ||
44 | |||
45 | |||
46 | |||
47 | {{html wiki="true"}} | ||
48 | <span style='background-color: transparent;'>An abundance of HTML tutorials can be found on the Internet, one of them being [[w3schools>>https://www.w3schools.com/Html/]]. The previously generated index.html file should follow the following scheme:</span> | ||
49 | {{/html}} | ||
50 | |||
51 | |||
52 | |||
53 | |||
54 | {{html wiki="true"}} | ||
55 | {{code}}<!DOCTYPE html>%BR%<html>%BR%%BR%<head>%BR%<title>Testpage</title>%BR%</head>%BR%%BR%<body bgcolor =#22ff00>%BR%%BR%<h1>Mykoooonos</h1>%BR%<p>So koennte ihre Webseite ausschauen.</p>%BR%%BR%</body>%BR%</html> {{/code}} | ||
56 | {{/html}} | ||
57 | |||
58 | |||
59 | |||
60 | After editting the file, the website can be accessed by calling http://home.in.tum.de/~//accountName///. | ||
61 | |||
62 | |||
63 | [[image:https://xwiki.rbg.tum.de/bin/download/Informatik/Helpdesk/EigeneHomepage/WebHome/Screenshot.png|| width="881" height="141" title="Screenshot.png" alt="So könnte die Webseite aussehen"]] | ||
64 | |||
65 | == 4. Apache Error Logfile == | ||
66 | |||
67 | It's possible to inspect the error log of the Apache server, which may turn out to be quite useful during troubleshooting: | ||
68 | * The file is saved on the computer ##home.in.tum.de## which can be accessed via ##ssh## {{{ | ||
69 | ssh <Ihr_Login>@home.in.tum.de | ||
70 | }}} | ||
71 | * The file path is ##/var/apache2/logs/error_log## | ||
72 | * Enter the following command to read: {{{ | ||
73 | less /var/apache2/logs/error_log | ||
74 | }}} |