Running as a Windows Service
2011年10月01日
If you want to run instiki as a windows service, you can do it by using the programsSRVINSTW.EXE andSRVANY.EXE that come with the windowsNT/ 2000 / XP resource kit. If your installation is missing these programs, they are available here. Run SRVINSTW.EXE
1. Put both files into the system32 system directory.
2. run SRVINSTW.EXE
3. Select Install as a service, Local Machine
4. Give your service any name you desire
5. When prompted for the path to the service, give the path to SRVANY.EXE in your system32 directory
6. Select Service is its own process
7. Set the login credentials. On Windows, System account is the super-root: it’s the highest user in the chain, even higher than Administrator. This will work and allow Instiki access to your disks, however, it may be a security risk. You can also create a new user in Windows, give that user write permissions on the Instiki storage directory, and Instiki will be relatively sandboxed. Choice is yours.
Edit your registry
1. Run regedit.exe
2. Go to
HKEY_LOCAL_MACHINE\SYSTEM\Current Control Set\Services\
(the name you picked in step 4 above)
3. Add a key = ”Parameters”
4. Add a string value = ”Application” (in the Parameters key you just created). Set this to the command to run your wiki.
1. For Instiki 0.9.x-0.10.x
c:\ruby\bin\ruby.exe C:\PROGRA~1\instiki-0.9.1\instiki.rb -p 2500 -t C:\PROGRA~1\instiki-0.9.1\storage\
(or use rubyw.exe) (Using C:\PROGRA~1\... instead of “C:\Program files” will avoid some problems if instiki is in that directory)
2. For Instiki 0.11.x
c:\ruby\bin\ruby.exe c:\[path to instiki]\[path to script(s)\server -e production
e.g.
c:\ruby\bin\ruby.exe c:\instiki\script\server -e production
5. (Optional, only try this if it doesn’t work) Add a string value = ”AppDirectory”. Set this to the path to ruby.exe. e.g.
c:\ruby\bin\
Ensure sqlite dll is available
You can either add the path ‘[instiki home directory]\lib\native\win32’ to your path or drop the two files found there in System32
Don’t Restart your machine!
1. Under Windows 2000/XP, you can right click My Computer, click Manage, then go to Services and Applications. Click Services, and you will see a list of all the services on the machine. Go to the service you just made, right click, and click Start. This should start the service and load Instiki!
Under Windows NT, there’s a Services applet in the Control Panel. It’s the same deal there, too.
1. Check! Open your browser and point it to http://localhost:2500 (or if you changed the port, you know what you need to do.) Did it work?
2. If it didn’t work, go to Control Panel>Administrative Tools>Services. Here you can find your service and change the settings. Maybe try a different User? Try System for troubleshooting. Check the Security Settings on the Instiki directory. berita terbaru tv online mivo handphone terbaru berita terkini news and gadgets free download mp3 gadgets new trends android news trends berita unik batik tasikmalaya blogger tasik free download software bordir tasikmalaya kontes seo dunia maya
I found that didn’t quite work for me, but deleting Step #5 in your Registry would cause this to work properly.
2011年10月01日
If you want to run instiki as a windows service, you can do it by using the programsSRVINSTW.EXE andSRVANY.EXE that come with the windowsNT/ 2000 / XP resource kit. If your installation is missing these programs, they are available here. Run SRVINSTW.EXE
1. Put both files into the system32 system directory.
2. run SRVINSTW.EXE
3. Select Install as a service, Local Machine
4. Give your service any name you desire
5. When prompted for the path to the service, give the path to SRVANY.EXE in your system32 directory
6. Select Service is its own process
7. Set the login credentials. On Windows, System account is the super-root: it’s the highest user in the chain, even higher than Administrator. This will work and allow Instiki access to your disks, however, it may be a security risk. You can also create a new user in Windows, give that user write permissions on the Instiki storage directory, and Instiki will be relatively sandboxed. Choice is yours.
Edit your registry
1. Run regedit.exe
2. Go to
HKEY_LOCAL_MACHINE\SYSTEM\Current Control Set\Services\
(the name you picked in step 4 above)
3. Add a key = ”Parameters”
4. Add a string value = ”Application” (in the Parameters key you just created). Set this to the command to run your wiki.
1. For Instiki 0.9.x-0.10.x
c:\ruby\bin\ruby.exe C:\PROGRA~1\instiki-0.9.1\instiki.rb -p 2500 -t C:\PROGRA~1\instiki-0.9.1\storage\
(or use rubyw.exe) (Using C:\PROGRA~1\... instead of “C:\Program files” will avoid some problems if instiki is in that directory)
2. For Instiki 0.11.x
c:\ruby\bin\ruby.exe c:\[path to instiki]\[path to script(s)\server -e production
e.g.
c:\ruby\bin\ruby.exe c:\instiki\script\server -e production
5. (Optional, only try this if it doesn’t work) Add a string value = ”AppDirectory”. Set this to the path to ruby.exe. e.g.
c:\ruby\bin\
Ensure sqlite dll is available
You can either add the path ‘[instiki home directory]\lib\native\win32’ to your path or drop the two files found there in System32
Don’t Restart your machine!
1. Under Windows 2000/XP, you can right click My Computer, click Manage, then go to Services and Applications. Click Services, and you will see a list of all the services on the machine. Go to the service you just made, right click, and click Start. This should start the service and load Instiki!
Under Windows NT, there’s a Services applet in the Control Panel. It’s the same deal there, too.
1. Check! Open your browser and point it to http://localhost:2500 (or if you changed the port, you know what you need to do.) Did it work?
2. If it didn’t work, go to Control Panel>Administrative Tools>Services. Here you can find your service and change the settings. Maybe try a different User? Try System for troubleshooting. Check the Security Settings on the Instiki directory. berita terbaru tv online mivo handphone terbaru berita terkini news and gadgets free download mp3 gadgets new trends android news trends berita unik batik tasikmalaya blogger tasik free download software bordir tasikmalaya kontes seo dunia maya
I found that didn’t quite work for me, but deleting Step #5 in your Registry would cause this to work properly.