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