Difference between revisions of "WebArea/Compat/MoinMoin"
From TuxFamilyFAQ
Jump to navigationJump to searchm |
(Added nice URL steps; tested instructions) |
||
Line 8: | Line 8: | ||
* Extract MoinMoin to '''htdocs/wiki''' | * Extract MoinMoin to '''htdocs/wiki''' | ||
* Now, here's the tricky part: | * Now, here's the tricky part: | ||
− | ** Create a file named '''phpinfo.php''' inside '''htdocs''' containing: <?php phpinfo() ?> | + | ** Create a file named '''phpinfo.php''' inside '''htdocs''' containing: |
+ | <blockquote> | ||
+ | <?php phpinfo() ?> | ||
+ | </blockquote> | ||
** Navigate your web browser to http://yoursite.tuxfamily.org/phpinfo.php | ** 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. | ** 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 | * 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 | * 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 | ||
− | * Navigate your web browser to http://yoursite.tuxfamily.org/ | + | * Also, in '''moin.cgi''', add these lines: |
− | * If all is well, you'll get | + | <blockquote> |
+ | import os <br /> | ||
+ | os.environ['SCRIPT_NAME'] = '' | ||
+ | </blockquote> | ||
+ | * For nice URLs, add this '''.htaccess''' file inside your '''htdocs''' folder: | ||
+ | <blockquote> | ||
+ | Options -Indexes<br /> | ||
+ | <br /> | ||
+ | RewriteEngine On<br /> | ||
+ | RewriteBase /wiki/wiki/server<br /> | ||
+ | RewriteCond %{REQUEST_URI} !moin\.cgi<br /> | ||
+ | RewriteRule (.*) moin.cgi/$1 [L,QSA]<br /> | ||
+ | </blockquote> | ||
+ | * Navigate your web browser to http://yoursite.tuxfamily.org/ | ||
+ | * If all is well, you'll get the Language Setup page |
Latest revision as of 04:24, 19 March 2011
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]
- Navigate your web browser to http://yoursite.tuxfamily.org/
- If all is well, you'll get the Language Setup page