[Moin-devel] CVS: dist/wiki/data/text HelpMiscellaneous,1.4,1.5 HelpOnInstalling_2fApacheOnUnix,1.7,1.8 HelpOnInstalling_2fInternetInformationServer,1.6,1.7 HelpOnUpdating,1.6,1.7 HilfeZumUpdaten,1.3,1.4 HilfeZurInstallation_2fApacheAufUnix,1.1,1.2

J?rgen Hermann jhermann at users.sourceforge.net
Mon Mar 11 14:37:06 EST 2002


Update of /cvsroot/moin/dist/wiki/data/text
In directory usw-pr-cvs1:/tmp/cvs-serv20991

Modified Files:
	HelpMiscellaneous HelpOnInstalling_2fApacheOnUnix 
	HelpOnInstalling_2fInternetInformationServer HelpOnUpdating 
	HilfeZumUpdaten HilfeZurInstallation_2fApacheAufUnix 
Log Message:
Removed references to "test.cgi"


Index: HelpMiscellaneous
===================================================================
RCS file: /cvsroot/moin/dist/wiki/data/text/HelpMiscellaneous,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** HelpMiscellaneous	11 Mar 2002 22:14:07 -0000	1.4
--- HelpMiscellaneous	11 Mar 2002 22:36:44 -0000	1.5
***************
*** 43,47 ****
  
  Admin stuff:
!  * Diagnosis of installation via a "test.cgi" script
   * Wiki``Farm support:
     * <datadir>/plugin/macro and <datadir>/plugin/action can be used to store macros and actions local to a specific wiki instance
--- 43,47 ----
  
  Admin stuff:
!  * describe "moin.cgi?test" tool in more detail
   * Wiki``Farm support:
     * <datadir>/plugin/macro and <datadir>/plugin/action can be used to store macros and actions local to a specific wiki instance

Index: HelpOnInstalling_2fApacheOnUnix
===================================================================
RCS file: /cvsroot/moin/dist/wiki/data/text/HelpOnInstalling_2fApacheOnUnix,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** HelpOnInstalling_2fApacheOnUnix	9 Mar 2002 16:20:41 -0000	1.7
--- HelpOnInstalling_2fApacheOnUnix	11 Mar 2002 22:36:44 -0000	1.8
***************
*** 185,189 ****
  }}}
  
! To be able to execute the CGI scripts in your home directory, you need to extend Python's path within those scripts, and possibly adapt the ''bang path'' (that is the first line of the script). So, change "`test.cgi`" similarly to this diff:
   {{{
  @@ -1,2 +1,2 @@
--- 185,189 ----
  }}}
  
! To be able to execute the CGI script in your home directory, you need to extend Python's path within that script, and possibly adapt the ''bang path'' (that is the first line of the script). So, change "`moin.cgi`" similarly to this diff:
   {{{
  @@ -1,2 +1,2 @@
***************
*** 191,216 ****
  +#! /usr/local/bin/python2.1
  
! @@ -12,2 +12,3 @@
!  import sys, cgi
  +sys.path.extend(['/home/jh/wiki', '/home/jh/lib/python'])
- }}}
  
- Finally, you can test your wiki installation by running the ''Moin``Moin CGI Diagnosis'':
-  {{{
- lynx -dump http://localhost/~jh/test.cgi
  }}}
  
! If that test works, adapt your "`moin.cgi`" just like you did for " `test.cgi`":
   {{{
! @@ -1,2 +1,2 @@
! -#! /usr/bin/env python
! +#! /usr/local/bin/python2.1
! 
! @@ -11,3 +11,4 @@
! 
! -#import sys
! +import sys
! +sys.path.extend(['/home/jh/wiki', '/home/jh/lib/python'])
!  #sys.path.append('/usr/local/home/USERNAME/lib/python')
  }}}
  
--- 191,206 ----
  +#! /usr/local/bin/python2.1
  
! @@ -11,4 +11,4 @@
! 
! -#import sys
! -#sys.path.append('/usr/local/home/USERNAME/lib/python')
! +import sys
  +sys.path.extend(['/home/jh/wiki', '/home/jh/lib/python'])
  
  }}}
  
! Finally, you can test your wiki installation by running the ''Moin``Moin CGI Diagnosis'':
   {{{
! lynx -dump http://localhost/~jh/moin.cgi?test
  }}}
  

Index: HelpOnInstalling_2fInternetInformationServer
===================================================================
RCS file: /cvsroot/moin/dist/wiki/data/text/HelpOnInstalling_2fInternetInformationServer,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** HelpOnInstalling_2fInternetInformationServer	7 Mar 2002 19:12:20 -0000	1.6
--- HelpOnInstalling_2fInternetInformationServer	11 Mar 2002 22:36:44 -0000	1.7
***************
*** 70,74 ****
  "`mywiki`" is the name of your wiki instance, you might want to chose a different name best fitting the intended use of this instance; just don't name it simply "`wiki`", because that would result in problems later on.
  
! We have to make sure that `moin.cgi` (and `test.cgi` if you want to run it) can find the Moin``Moin directory, so that "{{{import MoinMoin}}}" will work. You can either setup a `PYTHONPATH` environment variable which includes the installation path, but sometimes it can be tricky to make sure the variable will be set in the CGI environment. The easiest way to make sure `MoinMoin` can be imported is to append to `sys.path` ''within'' `moin.cgi` and `test.cgi`.
  
  You can change the first two lines of code in moin.cgi to something like this:
--- 70,74 ----
  "`mywiki`" is the name of your wiki instance, you might want to chose a different name best fitting the intended use of this instance; just don't name it simply "`wiki`", because that would result in problems later on.
  
! We have to make sure that `moin.cgi` can find the Moin``Moin directory, so that "{{{import MoinMoin}}}" will work. You can either setup a `PYTHONPATH` environment variable which includes the installation path, but sometimes it can be tricky to make sure the variable will be set in the CGI environment. The easiest way to make sure `MoinMoin` can be imported is to append to `sys.path` ''within'' `moin.cgi`.
  
  You can change the first two lines of code in moin.cgi to something like this:

Index: HelpOnUpdating
===================================================================
RCS file: /cvsroot/moin/dist/wiki/data/text/HelpOnUpdating,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** HelpOnUpdating	9 Mar 2002 16:20:41 -0000	1.6
--- HelpOnUpdating	11 Mar 2002 22:36:44 -0000	1.7
***************
*** 32,36 ****
  
  To make UserPreferences work, you should "mkdir -m707 user" in your 
! "data" directory. A good idea is to run the new "test.cgi" script after 
  you installed a new release, which will spot some common errors.
  
--- 32,36 ----
  
  To make UserPreferences work, you should "mkdir -m707 user" in your 
! "data" directory. A good idea is to do a request for "moin.cgi?test" (which calls an internal diagnosis feature) after 
  you installed a new release, which will spot some common errors.
  

Index: HilfeZumUpdaten
===================================================================
RCS file: /cvsroot/moin/dist/wiki/data/text/HilfeZumUpdaten,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** HilfeZumUpdaten	9 Mar 2002 16:20:41 -0000	1.3
--- HilfeZumUpdaten	11 Mar 2002 22:36:44 -0000	1.4
***************
*** 32,36 ****
  === Problembehandlung ===
  
! Um BenutzerEinstellungen funktionsfähig zu bekommen, sollten Sie "mkdir -m707 user" in Ihrem "data"-Verzeichnis ausführen. Es ist eine gute Idee, das neue "test.cgi"-Script nach Installation einer neuen Release laufen zu lassen, welches einige übliche Fehler finden helfen kann.
  
  Abhängig von Ihrer Installation sind enger definierte Zugriffsrechte eine gute Idee. Idealerweise weisen Sie allen Dateien im ''data''-Verzeichnis den User zu, unter dem der Webserver-Prozess abläuft und dann benutzen Sie `700` oder `755` als Zugriffsrechte.
--- 32,36 ----
  === Problembehandlung ===
  
! Um BenutzerEinstellungen funktionsfähig zu bekommen, sollten Sie "mkdir -m707 user" in Ihrem "data"-Verzeichnis ausführen. Es ist eine gute Idee, nach Installation einer neuen Release im Browser "moin.cgi?test" aufzurufen. Durch die Angabe von "?test" wird ein Diagnosewerkzeug aufgerufen, welches helfen kann, einige übliche Fehler finden.
  
  Abhängig von Ihrer Installation sind enger definierte Zugriffsrechte eine gute Idee. Idealerweise weisen Sie allen Dateien im ''data''-Verzeichnis den User zu, unter dem der Webserver-Prozess abläuft und dann benutzen Sie `700` oder `755` als Zugriffsrechte.

Index: HilfeZurInstallation_2fApacheAufUnix
===================================================================
RCS file: /cvsroot/moin/dist/wiki/data/text/HilfeZurInstallation_2fApacheAufUnix,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** HilfeZurInstallation_2fApacheAufUnix	4 Mar 2002 20:26:56 -0000	1.1
--- HilfeZurInstallation_2fApacheAufUnix	11 Mar 2002 22:36:44 -0000	1.2
***************
*** 186,190 ****
  }}}
  
! To be able to execute the CGI scripts in your home directory, you need to extend Python's path within those scripts, and possibly adapt the ''bang path'' (that is the first line of the script). So, change "`test.cgi`" similarly to this diff:
   {{{
  @@ -1,2 +1,2 @@
--- 186,190 ----
  }}}
  
! To be able to execute the CGI script in your home directory, you need to extend Python's path within that script, and possibly adapt the ''bang path'' (that is the first line of the script). So, change "`moin.cgi`" similarly to this diff:
   {{{
  @@ -1,2 +1,2 @@
***************
*** 192,217 ****
  +#! /usr/local/bin/python2.1
  
! @@ -12,2 +12,3 @@
!  import sys, cgi
  +sys.path.extend(['/home/jh/wiki', '/home/jh/lib/python'])
- }}}
  
- Finally, you can test your wiki installation by running the ''Moin``Moin CGI Diagnosis'':
-  {{{
- lynx -dump http://localhost/~jh/test.cgi
  }}}
  
! If that test works, adapt your "`moin.cgi`" just like you did for " `test.cgi`":
   {{{
! @@ -1,2 +1,2 @@
! -#! /usr/bin/env python
! +#! /usr/local/bin/python2.1
! 
! @@ -11,3 +11,4 @@
! 
! -#import sys
! +import sys
! +sys.path.extend(['/home/jh/wiki', '/home/jh/lib/python'])
!  #sys.path.append('/usr/local/home/USERNAME/lib/python')
  }}}
  
--- 192,207 ----
  +#! /usr/local/bin/python2.1
  
! @@ -11,4 +11,4 @@
! 
! -#import sys
! -#sys.path.append('/usr/local/home/USERNAME/lib/python')
! +import sys
  +sys.path.extend(['/home/jh/wiki', '/home/jh/lib/python'])
  
  }}}
  
! Finally, you can test your wiki installation by running the ''Moin``Moin CGI Diagnosis'':
   {{{
! lynx -dump http://localhost/~jh/moin.cgi?test
  }}}
  





More information about the Moin-devel mailing list