Updated Setting up without the Internal Web Server (markdown)

mikeprimm 2011-08-09 07:50:28 -07:00
parent 6aad5e2cc8
commit 89ae1699ad

@ -8,67 +8,65 @@ This page assumes
* If you are on Linux, you should know how to use the terminal and `chmod`.
Change the following:
```yaml
- class: org.dynmap.InternalClientUpdateComponent
sendhealth: true
allowwebchat: true
webchat-interval: 5
#- class: org.dynmap.JsonFileClientUpdateComponent
# writeinterval: 1
# sendhealth: true
# allowwebchat: false
```
- class: org.dynmap.InternalClientUpdateComponent
sendhealth: true
allowwebchat: true
webchat-interval: 5
#- class: org.dynmap.JsonFileClientUpdateComponent
# writeinterval: 1
# sendhealth: true
# allowwebchat: false
To:
```yaml
#- class: org.dynmap.InternalClientUpdateComponent
# sendhealth: true
# allowwebchat: true
# webchat-interval: 5
- class: org.dynmap.JsonFileClientUpdateComponent
writeinterval: 1
sendhealth: true
allowwebchat: false
```
#- class: org.dynmap.InternalClientUpdateComponent
# sendhealth: true
# allowwebchat: true
# webchat-interval: 5
- class: org.dynmap.JsonFileClientUpdateComponent
writeinterval: 1
sendhealth: true
allowwebchat: false
To disable the internal updating mechanism and enable the json-file updating mechanism. This will write to the file `standalone/dynmap_world.json` in your web-path at an interval that is specified with `writeinterval`.
Copy your files in `plugins/dynmap/web` to a directory of your webserver. Change configuration.txt so that it points with both `tilespath` and `webpath` to the paths where you placed the web-files.
For *nix
```yaml
# The path where the tile-files are placed.
tilespath: /path/to/web/server/dynmap/web/tiles
# The path where the web-files are located.
webpath: /path/to/web/server/dynmap/web
```
# The path where the tile-files are placed.
tilespath: /path/to/web/server/dynmap/web/tiles
# The path where the web-files are located.
webpath: /path/to/web/server/dynmap/web
Or for Windows
```yaml
# The path where the tile-files are placed.
tilespath: c:\\path\\to\\web\\server\\dynmap\\web\\tiles
# The path where the web-files are located.
webpath: c:\\path\\to\\web\\server\\dynmap\\web
```
# The path where the tile-files are placed.
tilespath: c:\\path\\to\\web\\server\\dynmap\\web\\tiles
# The path where the web-files are located.
webpath: c:\\path\\to\\web\\server\\dynmap\\web
Now go to your web-directory and comment the internal server section in `config.js`, so that you have this:
```yaml
// For internal server or proxying webserver.
//url : {
// configuration : 'up/configuration',
// update : 'up/world/{world}/{timestamp}',
// sendmessage : 'up/sendmessage'
//},
```
Also uncomment the standalone (jsonfile) section, so that you have this:
```yaml
// For standalone (jsonfile) webserver.
url: {
configuration: 'standalone/dynmap_config.json',
update: 'standalone/dynmap_{world}.json',
sendmessage: 'standalone/sendmessage.php'
},
```
Now *restart* your Minecraft server. Join your Minecraft server and place a few blocks (randomly) to trigger dynmap to generate tiles for your map.
You can also type `dynmap fullrender worldname` in your server console to render the whole world with the name `worldname`.
@ -82,9 +80,9 @@ Now refresh your browser. It should now display online players on *http://mywebs
**If you don't see any players or don't see the players moving**, go to *http://mywebserver/standalone/dynmap_world.json* (where *world* is the name of your world). You should see some code and hitting refresh every few seconds should change that code (the servertime should be updated). If this file is not there or you don't see the file changing, you likely have filled in the wrong `webpath` in the configuration.
In Linux, **if web-to-mc-chat does not work**, you also need to chmod the 'standalone' folder to 775 or 777:
```bash
$ chmod -R 775 standalone
```
$ chmod -R 775 standalone
This is to allow `sendmessage.php` to create the jsonfile. This is needed because its your Web Server creating the file and not the minecraft server.
**If web-to-mc-chat does not work on IIS**, you likely need to install PHP.