source: main/waeup.kofa/trunk/docs/INSTALLWIN.txt @ 9819

Last change on this file since 9819 was 8438, checked in by Henrik Bettermann, 13 years ago

Add instruction regarding beaker. 13 steps to get Kofa running on Windows, that's a long way.

File size: 2.9 KB
RevLine 
[6274]1Installation on Windows (XP, 2000, Vista, 7)
2********************************************
3
[7808]4.. note:: `waeup.kofa` has been developed to run on Linux servers,
[6274]5          preferarbly with an Ubuntu OS. The installation on Windows computers
6          is for demonstration purposes only.
7
8Install Python
9==============
10
[6619]11**Step 1.** Install Python. Currently, version 2.6.x is supported.
[6274]12Note that these links point to installers for the ordinary x86 processor architecture.
13We recommend to download the follwoing software and install into ``C:\Python26``:
14
15| http://www.python.org/ftp/python/2.6.0/python-2.6.0.msi
16| http://sourceforge.net/project/downloading.php?group_id=78018&filename=pywin32-213.win32-py2.6.exe
17| http://pypi.python.org/packages/2.6/s/setuptools/setuptools-0.6c11.win32-py2.6.exe
18
19**Step 2**. Add ``C:\Python26\Scripts\`` to your system path:
20
21- Right-click on the My Computer icon. (Under Windows XP, Vista, or Windows 7, the My Computer Icon may be located in the start menu.)
22
23- Choose Properties from the context menu. Alternatively, you can double-click on the System icon in the Control Panel.
24
25- Click the Advanced tab or "Advanced system settings" on Windows Vista or Windows 7
26
27- Click the Environment Variables button.
28
29- Click on the variable called 'Path' and then click on Edit. Now add ``C:\Python26\Scripts\`` to the value of the variable, using a semi-colon as a separator.
30
31- Reboot Windows
32
33Install a Virtual Python Environment
34====================================
35
36**Step 3**. Open up a command window and change to the folder where you want to place the sandbox
[7818]37that will contain your Kofa project. In this HowTo we will assume and recommend this folder is ``C:\`` ::
[6274]38
39  C:\[any_path]> cd c:\
40
41**Step 4**. Install virtualenv by using the command::
42
43 C:\> easy_install virtualenv
44
45**Step 5**. Create an isolated environment (sandbox) using the command::
46
[7808]47 C:\> virtualenv winkofa
[6274]48
49**Step 6**. Activate the environment::
50
[7808]51 C:\> cd winkofa
52 C:\winkofa> Scripts\activate
[6274]53
54Note that the system prompt has changed.
55
[7818]56Run Kofa
[6274]57========
58
[7808]59**Step 7**. Copy the ``waeup.kofa`` folder into ``C:\winkofa``.
[6274]60
61**Step 8**. Run the bootstrap script::
62
[7808]63 (winkofa) C:\winkofa\waeup.kofa> cd waeup.kofa
64 (winkofa) C:\winkofa\waeup.kofa> python bootstrap\bootstrap.py -c buildout-windows.cfg
[6274]65
66**Step 9**. Run buildout (this takes a while)::
67
[7808]68 C:\winkofa\waeup.kofa> bin\buildout.exe -c buildout-windows.cfg
[6274]69
70**Step 10**. You can deactivate your environment again::
71
[7808]72 (winkofa) C:\winkofa\waeup.kofa> ..\Scripts\deactivate
[6274]73
[8438]74**Step 11**. Remove beaker from C:\winkofa\waeup.kofa\src\waeup\kofa\configure.zcml.
[6274]75
[8438]76**Step 12**. Start your Kofa::
77
[7808]78 C:\winkofa\waeup.kofa> bin\paster serve parts\etc\deploy.ini
[6274]79
80or from anywhere in your system::
81
[7808]82 C:\[any_path]> C:\winkofa\trunk\bin\paster serve C:\winkofa\trunk\parts\etc\deploy.ini
[6274]83
[8438]84**Step 13**. Visit the Kofa website and create your university instance:
[6274]85
86| http://localhost:8080
87| user name: grok
88| password: grok
89
Note: See TracBrowser for help on using the repository browser.