Ransom | 1 Dec 2002 18:25

Windows and Moin (yes, the moin packages load).


I am trying to get MoinMoin working with WindowsXP Pro and IIS.

My moin.cgi looks like this now

import sys
sys.path.append('e:/apps/Python22/lib')
sys.path.append('E:/apps/moin/lib/site-packages')
import os

and the Moin library is loaded (I know thats the usual problem).

Now I get this particular error, and not being a python programmer, I 
have absolutely no clue on what to do next.  All help appreciated.

> CGI Error
> The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it
did return are:
> 
> Traceback (most recent call last):
>   File "E:\apps\moin\share\moin\htdocs\moin.cgi", line 32, in ?
>     cgimain.run()
>   File "e:\apps\moin\Lib\site-packages\MoinMoin\cgimain.py", line 103, in run
>     sys.stderr = open(os.path.join(config.data_dir, 'err_log'), 'at')
> IOError: [Errno 2] No such file or directory: 'data\\err_log'

Another weirdness is that the URI

http://localhost/wiki/moin.cgi must be used;  IIS will not deliver the 
URI http://localhost/wiki/moin.cgi/.  The default document as described 
(Continue reading)

kent sin | 2 Dec 2002 11:27
Picon
Favicon

Create pages automatically

I would like to create some wiki pages from a
database.

It is possible just to put the files in the text
directory? 

I would also like to known the naming rules for
filename.  I have saw names in Chinese were in
_eb_.... how are they constructed? Are there any
modules I can make use?

Rgs,

Kent Sin

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Lele Gaifax | 2 Dec 2002 14:22
Picon

Re: Create pages automatically

>>>>> On Mon, 2 Dec 2002 02:27:51 -0800 (PST), kent sin <kentsin <at> yahoo.com> said:

    ks> I would like to create some wiki pages from a database.

    ks> It is possible just to put the files in the text directory?

Yes, with the right permissions...

    ks> I would also like to known the naming rules for filename.  I
    ks> have saw names in Chinese were in _eb_.... how are they
    ks> constructed? Are there any modules I can make use?

Uhm, better consult the sources for that.

ciao, lele.
--

-- 
nickname: Lele Gaifax	| Quando vivro' di quello che ho pensato ieri
real: Emanuele Gaifas	| comincero' ad aver paura di chi mi copia.
email: lele <at> seldati.it	|		-- Fortunato Depero, 1929.

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Min Sik Kim | 2 Dec 2002 16:49
Favicon
Gravatar

Re: Create pages automatically

* kent sin <kentsin <at> yahoo.com> [20021202 09:28 CST]:
> I would like to create some wiki pages from a
> database.
> 
> It is possible just to put the files in the text
> directory? 
> 
> I would also like to known the naming rules for
> filename.  I have saw names in Chinese were in
> _eb_.... how are they constructed? Are there any
> modules I can make use?

quoteFilename() in MoinMoin/wikiutil.py will do the job.

--

-- 
 Min Sik Kim

-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
Roger Haase | 2 Dec 2002 23:21
Picon
Favicon

Re: Windows and Moin (yes, the moin packages load).


--- Ransom <ransom <at> telus.net> wrote:
>  
> 
> I am trying to get MoinMoin working with WindowsXP Pro and IIS.
> 
> My moin.cgi looks like this now
> 
> import sys
> sys.path.append('e:/apps/Python22/lib')
> sys.path.append('E:/apps/moin/lib/site-packages')
> import os
> 
> and the Moin library is loaded (I know thats the usual problem).
> 
> Now I get this particular error, and not being a python programmer, I
> 
> have absolutely no clue on what to do next.  All help appreciated.
> 
> 
> 
> > CGI Error
> > The specified CGI application misbehaved by not returning a
> complete set of HTTP headers. The headers it did return are:
> > 
> > Traceback (most recent call last):
> >   File "E:\apps\moin\share\moin\htdocs\moin.cgi", line 32, in ?
> >     cgimain.run()
> >   File "e:\apps\moin\Lib\site-packages\MoinMoin\cgimain.py", line
> 103, in run
(Continue reading)

Ransom | 4 Dec 2002 06:07

Re: Windows and Moin (yes, the moin packages load).

I gave up.  I was able to view a wiki, but not edit pages.

I am now trying apache on windows.  Its equally as frustrating.  The 
documentation on getting the default wiki working seems vague and 
perhaps incorrect.

loading http://localhost/wiki/ redirects to:

http://localhost/wiki/moin.cgi/

which displays the following in the browser:

  Not Found

The requested URL /wiki/moin.cgi/ was not found on this server.

------------------------------------------------------------------------
Apache/2.0.43 Server at localhost Port 80

My apache config file looks like:

NameVirtualHost *
<VirtualHost *>
    ServerAdmin Doug.Ransom <at> alumni.uvic.ca
    DocumentRoot  E:/apps/ApacheGroup/Apache2/htdocs
    Alias /wiki e:/apps/moin/share/moin/htdocs/
    ScriptAlias /wiki/ E:/apps/moin/share/moin/htdocs/
</VirtualHost>

and the batch file moin.bat stored in e:\apps\moin\share\moin
(Continue reading)

Terrel Shumway | 4 Dec 2002 07:02

Accelerating CGI Scripts (was [Webware-discuss] re: LRWP Adapter for Xitami & WebKit)

Thank you thank you thank you for those pointers, Ian.  
I am forever in your debt. I created a new page on the mother wiki.

http://c2.com/cgi-bin/wiki?PoundReverseProxy

with a link to and from 

http://c2.com/cgi-bin/wiki?RunScriptAsDaemon

so that all of our 8-) favorite projects* can reference this place when
questions about load balancing and accelerating cgi scripts come up. 

 -- Terrel

---
* favorite projects include: roundup, moinmoin, mailman, webware,
quixote.

--- forwarded message ---

On Tue, 2002-12-03 at 20:31, Ian Bicking wrote: 
> On Tue, 2002-12-03 at 22:04, Terrel Shumway wrote:
> > > I would like to suggest a slight more flexibility which also could be used
> > > in WebKit.cgi: Don't rely on the presence of address.text but make it
> > > possible to connect to another machine, too
> > > With this feature it could be possible to implement a primitve form of load
> > > balancing: different webware servers on different machines.
> > 
> > http://pythondirector.sourceforge.net/ might be interesting to you.
> 
(Continue reading)

Juergen Hermann | 4 Dec 2002 10:20
Picon
Favicon

Re: Windows and Moin (yes, the moin packages load).

On Tue, 03 Dec 2002 21:07:24 -0800, Ransom wrote:

>I gave up.  I was able to view a wiki, but not edit pages.

Read harder. The docs.

>    Alias /wiki e:/apps/moin/share/moin/htdocs/
>    ScriptAlias /wiki/ E:/apps/moin/share/moin/htdocs/

QUOTE: "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. 

Oh, you have problems? Doh!

The 2nd part of your ScriptAlias is also not according to docs and
won't work. The trailing slash is wrong in both aliases (you swapped
them).

So next time before you diss the docs several people have invested much
time into, read harder!

Ciao, Jürgen

-------------------------------------------------------
This SF.net email is sponsored by: Microsoft Visual Studio.NET 
comprehensive development tool, built to increase your 
productivity. Try a free online hosted session at:
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en
(Continue reading)

Ransom | 4 Dec 2002 15:48

Re: Windows and Moin (yes, the moin packages load).

Juergen Hermann wrote:

 >On Tue, 03 Dec 2002 21:07:24 -0800, Ransom wrote:
 >
 >
 >
 >>I gave up.  I was able to view a wiki, but not edit pages.
 >>
 >>
 >
 >Read harder. The docs.
 >
 >
 >
 >>   Alias /wiki e:/apps/moin/share/moin/htdocs/
 >>   ScriptAlias /wiki/ E:/apps/moin/share/moin/htdocs/
 >>
 >>
 >
 >QUOTE: "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.
 >
I have the /wiki/ alias trying to work around what I percieve is a
problem in the documentation.

I still find the docs confusing.  In particular,  they say exactly:

Alias /wiki/ "C:/Moin/share/moin/htdocs/"
(Continue reading)

Thomas Waldmann | 4 Dec 2002 16:51
Picon
Favicon

Re: Windows and Moin (yes, the moin packages load).

> Alias /wiki/ "C:/Moin/share/moin/htdocs/"
> ScriptAlias /mywiki "C:/Moin/mywiki/moin.bat"
> 
> So I would assume that the "wiki" alias is there for a reason

Yes, to access the images, icons and css.

> "The first line you only need once; the second line is needed
> once for each wiki instance (of course, each one with another wiki name
> and path").),

At first, you need only 1 wiki instance, so 1 ScriptAlias (as above) is OK.

> and that my new wiki is aliased at the virtual root mywiki.  The problem
> lies in the htdocs directory; index.html  redirects to moin.cgi.

You don't need to access index.html, you just can access 
http://localhost/mywiki

> as I can tell from the instructions, the server has not been configured
> for CGI in the the htdocs directory (the /wiki/ alias)

That's because there is no CGI in there.

> so  I cannot figure out how the wiki alias is ever supposed to work.

That is only used internally by the wiki engine - NOT by you.

greetings,

(Continue reading)


Gmane