2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-01 01:09:47 +00:00
fhem-mirror/fhem/webfrontend/pgm2/HOWTO.html
rudolfkoenig ba9270deee First version for SVG / HOWTO
git-svn-id: https://svn.fhem.de/fhem/trunk@206 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2008-07-11 07:35:12 +00:00

49 lines
1.5 KiB
HTML

<html>
<head>
<title>FHEMWEB Howto</title>
</head>
<body style="background-color: white;">
<h2>FHEMWEB Howto</h2>
<a href="#starting">Starting</a><br/>
<a name="starting"></a>
<h3>Starting</h3>
For a start create a minimal fhem config file fhem.cfg, like the
following:<br/>
<pre>
attr global logfile /tmp/fhem.log
attr global modpath /usr/local/lib
attr global port 7072 global
attr global statefile /tmp/fhem.state
define WEB FHEMWEB 8083 global</pre>
It is important that the modpath contains a directory called FHEM, where
all the necessary modules and other files are present, these modules should
<b>not</b> be found directly in modepath. Usually these are all the files
from the fhem package FHEM directory and webfrontend/pgm2 directory, and
some files from the contrib directory.<br/>
The logfile and the statefile should be changed from /tmp to a more stable directory, e.g. /var/log/FHEM or alike.<br/>
Now you can start fhem via:<pre>
perl fhem.pl fhem.cfg</pre>
The logfile should look like:
<pre>
2008.06.15 16:17:03 2: FHEMWEB port 8083 opened
2008.06.15 16:17:03 0: Server started (version ...)
</pre>
You can connect to the server either via telnet (type a return after you get
the connection):<br/><br/>
telnet localhost 7072<br/><br/>
or a little bit nicer via an internet browser:<br/><br/>
<a href="http://localhost:8083/fhem>http://localhost:8083/fhem</a><br/>
<body>
</html>