Installing and configuring standalone server
See also: HelpOnConfiguration/IntegratingWithApache
The standalone server is especially made for local wikis because it does not need a web server installed. Only Python and Moin are necessary!
To install and run the standalone server:
If MoinMoin is not installed yet, preform ../BasicInstallation
Create a wiki instance as described in ../WikiInstanceCreation
Copy moin.py to your wiki directory, where your wikiconfig.py is
If you installed with --prefix option, you must edit moin.py and set docs to the correct path.
Access your wiki at http://localhost:8000/
On most cases, the default settings will be just fine. You many want to edit moin.py and change some of the options, as described in the next section.
Configuring moin.py
System path configuration
If you did a standard install, and you are not a developer, you probably want to skip this section. If not, you might want to add the path to moin and config file, like that:
import sys sys.path.insert(0, '/path/to/moin') sys.path.insert(0, '/path/to/wikiconfig')
Config class options
Configuring wikiconfig.py
The sample config file should be just fine.
|
Option |
Default |
Comment |
|
url_prefix |
'/wiki' |
You should not change this, or images and css file will not be available to the wiki! |
Starting the server
Run moin.py from the command line:
$ ./moin.py Serving on localhost:8000
Test your wiki at http://localhost:8000/
On Windows, you can double click moin.py to start the server. A new terminal window will be opened. Close the window or press Control + Pause to stop the server.
On Unix, interrupt the server with Control + C in order to shut it down.
Serving port 80 on Unix
On GNU/Linux, Mac OS X or other Posix like OS, you can serve the standard port 80 used for web serving, but you must run as root for this.
Set port to 80, and verify that user and group exists on your system. If not, set them to an existing user, meant for web serving. If needed, chown your wiki dir to this user and group.
$ sudo moin.py Password: Serving on localhost:8000 Running as uid/gid 70/70
Test your wiki at http://localhost/
Running as daemon
If run on Unix, you can run moin.py as a background process:
./moin start
./moin stop
For more info run moin with no arguments.
If you want to start moin from a system startup script, you may need to add the path to moin.py in the top of the script:
# Add the path to moin.py directory import sys sys.path.insert(0, '/path/to/moin')
