From TuxFamilyFAQ
Jump to navigationJump to search

Required knowledge

  • FTP
  • Minimal knowledge of Python

Installing MoinMoin on TuxFamily

  • Extract MoinMoin to htdocs/wiki
  • Now, here's the tricky part:
    • Create a file named phpinfo.php inside htdocs containing:

<?php phpinfo() ?>

    • Navigate your web browser to http://yoursite.tuxfamily.org/phpinfo.php
    • Look for "_ENV["SCRIPT_FILENAME"]". This environment variable, minus the filename, contains the absolute path to your htdocs directory.
  • Edit your wikiconfig.py file to use that absolute path
  • Next, edit the file wiki/wiki/server/moin.cgi, and uncomment the sys.path.insert lines and replace the dummy parts of the lines with your absolute path
  • Also, in moin.cgi, add these lines:

import os
os.environ['SCRIPT_NAME'] =

  • For nice URLs, add this .htaccess file inside your htdocs folder:

Options -Indexes

RewriteEngine On
RewriteBase /wiki/wiki/server
RewriteCond %{REQUEST_URI} !moin\.cgi
RewriteRule (.*) moin.cgi/$1 [L,QSA]