Dear Gisbert and moinmoin freaks<br><br>
Finally, I have solved the problem with permissions on my machine: the
problem was that SELinux on Fedora prevented the cgi script from
running!<br>
<br>
Now, I have my moin wiki running at
<a href="http://python.openspace.nl/spysemoin">http://python.openspace.nl/spysemoin</a> but it doesn't look like it
should. Is there a css file missing or so?<br>
<br>
thanks<br>
André<br>
<br><div><span class="gmail_quote">On 2/24/06, <b class="gmail_sendername">Gisbert Amm</b> <<a href="mailto:gia@webde.de">gia@webde.de</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
You said there were no user named apache within the system, if I got it<br>right. However, user and group in httpd conf are set to apache. Which<br>user runs the httpd processes then?<br><br>-Gisbert<br><br>Andre Meyer wrote:
<br>> Hi Nir<br>><br>> Tried this and the result is exactly the same: 500 Internal Server<br>> Error. No Moin problem, thus...<br>><br>> Any Fedora/Apache guru's with more insight?<br>> thanks<br>> André
<br>><br>> On 2/23/06, *Nir Soffer* <<a href="mailto:nirs@freeshell.org">nirs@freeshell.org</a><br>> <mailto:<a href="mailto:nirs@freeshell.org">nirs@freeshell.org</a>>> wrote:<br>><br>> Try to run a simple test script, to make sure apache can run cgi
<br>> scripts from this location.<br>><br>> Rename moin.cgi temporarilly, and create this script named moin.cgi<br>><br>> #!/usr/bin/python<br>> import cgi<br>> cgi.test ()<br>>
<br>><br>> Now make it executable and set the user and group to apache:apache, and<br>> try to access with apache.<br>><br>> If this script will run, the problem may be with moin installation.<br>
><br>><br>> On 23/02/2006, at 19:09, Andre Meyer wrote:<br>><br>> > Maybe another problem: the permissons are set to apache.apache, but<br>> > there is no actual user apache. Is that a problem?
<br>> ><br>> > [root@python:/usr/local/var/moin/diwiki]# egrep "^User|^Group"<br>> > /etc/httpd/conf/httpd.conf<br>> > User apache<br>> > Group apache<br>> >
<br>> > ???<br>> ><br>> > Thanks a lot, Gisbert<br>> > André<br>> ><br>> ><br>> > On 2/23/06, Gisbert Amm < <a href="mailto:gia@webde.de">gia@webde.de
</a> <mailto:<a href="mailto:gia@webde.de">gia@webde.de</a>> ><br>> wrote:Nothing suspicious.<br>> >><br>> >> If you face no problems when you run /usr/bin/python then I'm<br>> afraid I
<br>> >> run out of ideas.<br>> >><br>> >> Anyone else?<br>> >><br>> >> Regards,<br>> >> Gisbert Amm<br>> >><br>> >> Andre Meyer wrote:
<br>> >> ><br>> >> > On 2/23/06, *Gisbert Amm* <<a href="mailto:gia@webde.de">gia@webde.de</a> <mailto:<a href="mailto:gia@webde.de">gia@webde.de</a>><br>> <mailto: <a href="mailto:gia@webde.de">
gia@webde.de</a> <mailto:<a href="mailto:gia@webde.de">gia@webde.de</a>>>><br>> >> wrote:<br>> >> ><br>> >> > How does your moin.cgi look like?<br>> >> >
<br>> >> ><br>> >> ><br>> >> ><br>> >> ><br>> >> > #!/usr/bin/python<br>> >> > # -*- coding: iso-8859-1 -*-<br>> >> > """
<br>> >> > MoinMoin - CGI Driver Script<br>> >> ><br>> >> > @copyright: 2000-2005 by Jürgen Hermann < <a href="mailto:jh@web.de">jh@web.de</a><br>> <mailto:<a href="mailto:jh@web.de">
jh@web.de</a>><br>> >> <mailto:<a href="mailto:jh@web.de">jh@web.de</a> <mailto:<a href="mailto:jh@web.de">jh@web.de</a>>>><br>> >> > @license: GNU GPL, see COPYING for details.
<br>> >> > """<br>> >> ><br>> >> > # System path configuration<br>> >> ><br>> >> > import sys<br>> >> ><br>
> >> > # Path of the directory where wikiconfig.py is located.<br>> >> > # YOU NEED TO CHANGE THIS TO MATCH YOUR SETUP.<br>> >> > sys.path.insert (0, '/usr/local/var/moin/diwiki')
<br>> >> ><br>> >> > # Path to MoinMoin package, needed if you installed with<br>> >> --prefix=PREFIX<br>> >> > # or if you did not use setup.py.<br>> >> > ##
sys.path.insert(0, 'PREFIX/lib/python2.3/site-packages')<br>> >> ><br>> >> > # Path of the directory where farmconfig.py is located (if<br>> >> different).<br>> >> > ##
sys.path.insert(0, '/path/to/farmconfig')<br>> >> ><br>> >> ><br>> >> > # This is used to profile MoinMoin (default disabled)<br>> >> > hotshotProfiler = 0
<br>> >> ><br>> >> > #<br>> >><br>> ---------------------------------------------------------------------<br>> >> ><br>> >> > if hotshotProfiler:
<br>> >> > import hotshot<br>> >> > prof = hotshot.Profile("moin.prof ")<br>> >> > prof.start ()<br>> >> ><br>> >> > from MoinMoin.request
import RequestCGI<br>> >> > request = RequestCGI()<br>> >> > request.run()<br>> >> ><br>> >> > if hotshotProfiler:<br>> >> > prof.close
()<br>> ><br>> ><br></blockquote></div><br>