Hi Gisbert<br><br>Not a stupid question at all, but it *is* executable (checked). Done using the chown/chmod statements from the website (<a href="http://moinmoin.wikiwikiweb.de/HelpOnInstalling/WikiInstanceCreation" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://moinmoin.wikiwikiweb.de/HelpOnInstalling/WikiInstanceCreation</a>).<br><br>I have just run moin.cgi and it outputs the correct html to the console, just not via Apache.<br><br>thanks<br>André<br><br><br><div><span class="gmail_quote">
On 2/23/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;">
Probably stupid question: Is /usr/local/var/moin/diwiki/cgi-bin/moin.cgi<br>executable at all? Can the webserver user read it?<br><br>Regards,<br>Gisbert Amm<br><br>Andre Meyer wrote:<br>> MoinMoin<br>><br>> I have tried to install MoinMoin today on a Fedora Core 4 machine from
<br>> the usual repo. After going through all the configuration (see<br>> attachment) it seems to work, but when I access the new wiki I get the<br>> following error message in the browser:<br>><br>><br>> Internal Server Error
<br>><br>> The server encountered an internal error or misconfiguration and was<br>> unable to complete your request.<br>><br>> Please contact the server administrator, <a href="mailto:meyer@acm.org">meyer@acm.org
</a><br>> <mailto:<a href="mailto:meyer@acm.org">meyer@acm.org</a>> and inform them of the time the error occurred,<br>> and anything you might have done that may have caused the error.<br>><br>> More information about this error may be available in the server error log.
<br>><br>> ------------------------------------------------------------------------<br>> Apache/2.0.54 (Fedora) Server at <a href="http://python.openspace.nl">python.openspace.nl</a><br>> <mailto:<a href="mailto:meyer@acm.org">
meyer@acm.org</a>> Port 80<br>><br>><br>><br>> The error log says the following:<br>><br>> [Wed Feb 22 14:56:35 2006] [error] [client <a href="http://127.0.0.1">127.0.0.1</a> <<a href="http://127.0.0.1">
http://127.0.0.1</a>>]<br>> (13)Permission denied: exec of<br>> '/usr/local/var/moin/diwiki/cgi-bin/moin.cgi' failed<br>> [Wed Feb 22 14:56:35 2006] [error] [client <a href="http://127.0.0.1">127.0.0.1</a> <
<a href="http://127.0.0.1">http://127.0.0.1</a>>]<br>> Premature end of script headers: moin.cgi<br>><br>><br>> I have also added the lines with permissions for access to the htdocs<br>> directory and restarted httpd, but it doesn't help.
<br>><br>> Any ideas?<br>><br>> thanks in advance for your help.<br>> kind regards<br>> André<br>><br>><br>> ------------------------------------------------------------------------<br>><br>> #
<a href="http://moinmoin.wikiwikiweb.de/HelpOnInstalling/WikiInstanceCreation">http://moinmoin.wikiwikiweb.de/HelpOnInstalling/WikiInstanceCreation</a><br>><br>> export PREFIX=/usr<br>> export SHARE=$PREFIX/share/moin
<br>> export WIKILOCATION=/usr/local/var/moin<br>> export INSTANCE=diwiki<br>><br>> export USER=apache<br>> export GROUP=apache<br>><br>> cd $WIKILOCATION<br>> mkdir $INSTANCE<br>> cp -R $SHARE/data $INSTANCE
<br>> cp -R $SHARE/underlay $INSTANCE<br>> cp $SHARE/config/wikiconfig.py $INSTANCE<br>><br>> chown -R $USER.$GROUP $INSTANCE<br>> chmod -R ug+rwX $INSTANCE<br>> chmod -R o-rwx $INSTANCE<br>><br>> # Moin CGI
<br>> cd $WIKILOCATION/$INSTANCE<br>> mkdir cgi-bin<br>> cp $SHARE/server/moin.cgi cgi-bin<br>> chown -R $USER.$GROUP cgi-bin<br>> chmod -R ug+rx cgi-bin<br>> chmod -R o-rwx cgi-bin<br>><br>> echo "" >>/etc/httpd/conf/httpd.conf
<br>> #echo "Alias /wiki/ \"$SHARE/htdocs/\"" >>/etc/httpd/conf/httpd.conf<br>> echo "ScriptAlias /diwiki \"$WIKILOCATION/$INSTANCE/cgi-bin/moin.cgi\"" >>/etc/httpd/conf/httpd.conf
<br>><br>> # restart Apache<br>> /etc/init.d/httpd restart<br>><br>> grep moin /var/log/httpd/error_log<br>><br>><br>><br>><br>><br>> ------------------------------------------------------------------------
<br>><br>> # -*- coding: iso-8859-1 -*-<br>> # IMPORTANT! This encoding (charset) setting MUST be correct! If you live in a<br>> # western country and you don't know that you use utf-8, you probably want to<br>
> # use iso-8859-1 (or some other iso charset). If you use utf-8 (a Unicode<br>> # encoding) you MUST use: coding: utf-8<br>> # That setting must match the encoding your editor uses when you modify the<br>> # settings below. If it does not, special non-ASCII chars will be wrong.
<br>><br>> """<br>> MoinMoin - Configuration for a single wiki<br>><br>> If you run a single wiki only, you can omit the farmconfig.py config<br>> file and just use wikiconfig.py
- it will be used for every request<br>> we get in that case.<br>><br>> Note that there are more config options than you'll find in<br>> the version of this file that is installed by default; see<br>
> the module MoinMoin.multiconfig for a full list of names and their<br>> default values.<br>><br>> Also, the URL <a href="http://moinmoin.wikiwikiweb.de/HelpOnConfiguration">http://moinmoin.wikiwikiweb.de/HelpOnConfiguration
</a> has<br>> a list of config options.<br>><br>> @copyright: 2000-2005 by Juergen Hermann <<a href="mailto:jh@web.de">jh@web.de</a>><br>> @license: GNU GPL, see COPYING for details.<br>> """
<br>><br>> from MoinMoin.multiconfig import DefaultConfig<br>><br>><br>> class Config(DefaultConfig):<br>><br>> # Wiki identity ----------------------------------------------------<br>><br>> # Site name, used by default for wiki name-logo [Unicode]
<br>> sitename = u'Distributed Intelligence Wiki'<br>><br>> # Wiki logo. You can use an image, text or both. [Unicode]<br>> # Example: u'<img src="/wiki/mywiki.png" alt="My Wiki">My Wiki'
<br>> # For no logo or text, use ''<br>> logo_string = sitename<br>><br>> # The interwiki name used in interwiki links<br>> interwikiname = None<br>><br>><br>> # Critical setup ---------------------------------------------------
<br>><br>> # Misconfiguration here will render your wiki unusable. Check that<br>> # all directories are accessible by the web server or moin server.<br>><br>> # If you encounter problems, try to set data_dir and data_underlay_dir
<br>> # to absolute paths.<br>><br>> # Where your mutable wiki pages are. You want to make regular<br>> # backups of this directory.<br>> data_dir = '../data/'<br>><br>> # Where read-only system and help page are. You might want to share
<br>> # this directory between several wikis. When you update MoinMoin,<br>> # you can safely replace the underlay directory with a new one. This<br>> # directory is part of MoinMoin distribution, you don't have to
<br>> # backup it.<br>> data_underlay_dir = '../underlay/'<br>><br>> # This must be '/wiki' for twisted and standalone. For CGI, it should<br>> # match your Apache Alias setting.<br>> url_prefix = '/diwiki'
<br>><br>><br>> # Security ----------------------------------------------------------<br>><br>> # Security critical actions (disabled by default)<br>> # Uncomment to enable options you like.<br>
> #allowed_actions = ['DeletePage', 'AttachFile', 'RenamePage']<br>><br>> # Enable acl (0 to disable)<br>> acl_enabled = 1<br>><br>> # IMPORTANT: grant yourself admin rights! replace YourName with
<br>> # your user name. See HelpOnAccessControlLists for more help.<br>> # All acl_rights_xxx options must use unicode [Unicode]<br>> #acl_rights_before = u"YourName:read,write,delete,revert,admin"
<br>><br>> # Link spam protection for public wikis (Uncomment to enable)<br>> # Needs a reliable internet connection.<br>> #from MoinMoin.util.antispam import SecurityPolicy<br>><br>><br>> # Mail --------------------------------------------------------------
<br>><br>> # Configure to enable subscribing to pages (disabled by default)<br>> # or sending forgotten passwords.<br>><br>> # SMTP server, e.g. "<a href="http://mail.provider.com">mail.provider.com
</a>" (empty or None to disable mail)<br>> mail_smarthost = ""<br>><br>> # The return address, e.g "My Wiki <<a href="mailto:noreply@mywiki.org">noreply@mywiki.org</a>>"<br>
> mail_from = ""<br>><br>> # "user pwd" if you need to use SMTP AUTH<br>> mail_login = ""<br>><br>><br>> # User interface ----------------------------------------------------
<br>><br>> # Add your wikis important pages at the end. It is not recommended to<br>> # remove the default links. Leave room for user links - don't use<br>> # more than 6 short items.<br>> # You MUST use Unicode strings here, but you need not use localized
<br>> # page names for system and help pages, those will be used automatically<br>> # according to the user selected language. [Unicode]<br>> navi_bar = [<br>> # Will use page_front_page, (default FrontPage)
<br>> u'%(page_front_page)s',<br>> u'RecentChanges',<br>> u'FindPage',<br>> u'SiteNavigation',<br>> u'HelpContents',<br>> ]<br>><br>> # The default theme anonymous or new users get
<br>> theme_default = 'modern'<br>><br>><br>> # Language options --------------------------------------------------<br>><br>> # See <a href="http://moinmoin.wikiwikiweb.de/ConfigMarket">http://moinmoin.wikiwikiweb.de/ConfigMarket
</a> for configuration in<br>> # YOUR language that other people contributed.<br>><br>> # The main wiki language, set the direction of the wiki pages<br>> default_lang = 'en'<br>><br>> # You must use Unicode strings here [Unicode]
<br>> page_category_regex = u'^Category[A-Z]'<br>> page_dict_regex = u'[a-z]Dict$'<br>> page_form_regex = u'[a-z]Form$'<br>> page_group_regex = u'[a-z]Group$'<br>> page_template_regex = u'[a-z]Template$'
<br>><br>> # Content options ---------------------------------------------------<br>><br>> # Show users hostnames in RecentChanges<br>> show_hosts = 1<br>><br>> # Enumerate headlines?<br>
> show_section_numbers = 0<br>><br>> # Charts size, require gdchart (Set to None to disable).<br>> chart_options = {'width': 600, 'height': 300}<br></blockquote></div><br>