Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora Resources > Guides & Solutions (No Questions)
FedoraForum Search

Forgot Password? Join Us!

Guides & Solutions (No Questions) Post your guides here (No links to Blogs accepted). You can also append your comments/questions to a guide, but don't start a new thread to ask a question. Use another forum for that.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 29th November 2010, 11:15 AM
glennzo Offline
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Age: 57
Posts: 14,731
linuxfedorafirefox
Updated how-to: Install MoinMoin Wiki Engine

Jim Lawrence wrote a great how-to on installing the MoinMoin wiki engine back in 2006. I've used it several times as guidance for installing my personal wiki.

Today there are newer versions of MoinMoin. With all due respect to Jim, several things have changed that make some of his tutorial outdated and incorrect as it applies to the newer versions.

My plan is to outline how this is done using a modern version of the software. For those of you who don't know what MoinMoin is visit The MoinMoin Wikipedia page. As usual there's a lot of information there from various sources. Of course there's the MoinMoin Wiki too and many many other sites relating to it.

I've used MoinMoin for a few years now. I think that I probably started when Fedora 6 or 7 was popular. Over the last few years I've collected a few hundred pages of my personal Fedora (and other distribution) installation and configuration notes and have stored them on the wiki. It makes it incredibly easy to find what I'm looking for. I don't want to lose this stuff but I decided it was time to upgrade my "server" to Fedora 14. There's going to be trouble, and upgrading MoinMoin will be at the forefront of that trouble.

I fought with getting this application to work for a couple of days but, since I've used it for a long time and did not want to lose my data through Fedora release updates, I was determined that it was going to work. After all, MoinMoin was offered through the Fedora repositories as moin-1.9.3-2.fc14.noarch so it should work, right? It's in the repos. I should be able to download it and run it without trouble, no? No! Nope. Not going to happen. Time to roll up my sleeves and get to work. That said:

Here's how to install MoinMoin release 1.9.3-2.fc14.noarch running Fedora 14.

Install required packages, moin and mod_wsgi.
Code:
su 
yum install moin mod_wsgi
Make some folders to copy your Moin installation to.
Code:
mkdir -p /var/www/moin/mywiki 
cp -R /usr/share/moin/data /var/www/moin/mywiki
cp -R /usr/share/moin/underlay /var/www/moin/mywiki
cp  /usr/share/moin/config/wikiconfig.py /var/www/moin/mywiki
Change some permissions for the newly created folders.
Code:
chown -R apache:apache /var/www/moin   
chmod -R ug+rwX /var/www/moin    
chmod -R o-rwx /var/www/moin
Backup wikiconfig.py before making changes to it.
Code:
cp /var/www/moin/mywiki/wikiconfig.py /var/www/moin/mywiki/wikiconfig.py.bak
Edit wikiconfig.py using your favorite text editor.
Code:
nano /var/www/moin/mywiki/wikiconfig.py
There are a few initial changes that need to be made. In this file I've made the changes highlighted in red. Of course this is where you choose a name for the wiki and choose a user name for yourself. The user name should be in the form UserName, no spaces.
Code:
sitename = u'Wiki Name'
page_front_page = u"Wiki Name Home Page"
superuser = [u"MyUserName", ]
acl_rights_before = u"MyUserName:read,write,delete,revert,admin"
Backup the Apache configuration file httpd.conf.
Code:
cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/http.conf.bak
Make a few changes to the Apache configuration file /etc/httpd/conf/httpd.conf.

Code:
nano /etc/httpd/conf/httpd.conf
Change the following.
Code:
ServerName xxx.xxx.xxx.xxx:80
DocumentRoot "/var/www/moin"
<Directory "/var/www/moin">
While you're editing httpdf.conf look in the !ScriptAliases section. Comment out this line using the # character.
Code:
#!ScriptAlias /mywiki "/var/www/moin/mywiki/moin.cgi"
Add the following line below that one.
Code:
WSGIScriptAlias /mywiki /var/www/moin/mywiki/moin.wsgi
The moin.wsgi file needs to be copied to /var/www/moin/mywiki.
Code:
cp /usr/share/moin/server/moin.wsgi /var/www/moin/mywiki/
Run these commands again because we've added some files to /var/www/moin.
Code:
chmod -R ug+rwX /var/www/moin    
chmod -R o-rwx /var/www/moin
Set apache to start at boot and then start the service.
Code:
chkconfig --level 35 httpd on
service httpd start
You should not see any error output when the service starts. Try the wiki. Browse to http://localhost/mywiki.

Remember that you may need to set SELinux to permissive before the wiki will work.

If you have problems (Yes, I had a few) you should reference the log files. They are an excellent resource for trouble shooting.
Code:
/var/log/messages
/var/log/secure
/etc/httpd/logs/access_log
/etc/httpd/logs/error_log
There are httpd logs in /var/log/httpd but I believe they are the same as the logs in /etc/httpd/logs/.

I was also on IRC #moin and talked with Thomas Waldmann. He's one of the lead developers of MoinMoin and help me get this all sorted.

I believe my work here is done. My wiki is working as I had expected it to, using the above instructions. If you think I missed something feel free to let me know, either in a reply here or through PM.

P.S. I did not lose my data. The old server is still running with all data intact. There is a script that is part of MoinMoin used for migrating data without loss but either it doesn't work or I just plain didn't understand the syntax / useage of the script (more than likely). I'm currently migrating using the tried and tested copy/paste method
__________________
Glenn
The Bassinator © ®

[SIGPIC][/SIGPIC]
Laptop: Just a couple of old single core units
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / Kingston HyperX 3K SSD 240GB SATA 3.0 / 1TB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #2  
Old 29th November 2010, 05:17 PM
glennzo Offline
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Age: 57
Posts: 14,731
windows_xp_2003firefox
Re: Updated how-to: Install MoinMoin Wiki Engine

Reserved for possible additions.
__________________
Glenn
The Bassinator © ®

[SIGPIC][/SIGPIC]
Laptop: Just a couple of old single core units
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / Kingston HyperX 3K SSD 240GB SATA 3.0 / 1TB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #3  
Old 26th April 2011, 05:45 PM
smr54 Offline
Registered User
 
Join Date: Jan 2010
Posts: 5,515
linuxchrome
Re: Updated how-to: Install MoinMoin Wiki Engine

Thank you Glenn. The basic instructions on their site are typical Linux documentation.

http://home.comcast.net/~tomhorsley/...mp/darwin.html

---------- Post added at 12:45 PM ---------- Previous post was at 12:45 PM ----------

Thank you Glenn. The basic instructions on their site are typical Linux documentation.

http://home.comcast.net/~tomhorsley/...mp/darwin.html
Reply With Quote
  #4  
Old 26th April 2011, 06:18 PM
glennzo Offline
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Age: 57
Posts: 14,731
windows_xp_2003firefox
Re: Updated how-to: Install MoinMoin Wiki Engine

I'm missing your point Scott
__________________
Glenn
The Bassinator © ®

[SIGPIC][/SIGPIC]
Laptop: Just a couple of old single core units
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / Kingston HyperX 3K SSD 240GB SATA 3.0 / 1TB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #5  
Old 26th April 2011, 10:05 PM
smr54 Offline
Registered User
 
Join Date: Jan 2010
Posts: 5,515
linuxopera
Re: Updated how-to: Install MoinMoin Wiki Engine

I meant that I felt the official documentation isn't very well done.

However, it looks like we're going to use Drupal for this project anyway, so I didn't test it past installation.
Reply With Quote
  #6  
Old 23rd May 2012, 01:54 PM
mwilck Offline
Registered User
 
Join Date: Jun 2005
Posts: 5
linuxfirefox
Re: Updated how-to: Install MoinMoin Wiki Engine

I don't think switching off SELinux is good advice. Here is what I found our for SELinux in enforcing mode on F16:

First, the SELinux file types need to be set as follows:
Code:
# chcon -t httpd_sys_script_exec_t /var/www/moin/mywiki/moin.wsgi
# chcon -t httpd_sys_content_t /var/www/moin/mywiki/wikiconfig.py
# chcon -R -t httpd_sys_rw_content_t /var/www/moin/mywiki/data
# chcon -R -t httpd_sys_rw_content_t /var/www/moin/mywiki/underlay
For mod_wsgi daemon mode, the following configuration directives need to be added:
Code:
WSGIDaemonProcess wiki processes=1 threads=8
WSGIProcessGroup wiki
WSGISocketPrefix run/wsgi
WSGIScriptAlias /mywiki /var/www/moin/mywiki/moin.wsgi
Note that this will probably not suffice to be able to send email from Moin. I will try that later.
Reply With Quote
  #7  
Old 31st May 2012, 01:26 PM
mwilck Offline
Registered User
 
Join Date: Jun 2005
Posts: 5
linuxfirefox
Re: Updated how-to: Install MoinMoin Wiki Engine

I posted a howto summarizing my Moin/SELinux configuration on http://moinmo.in/HowTo/FedoraSELinux.
Reply With Quote
Reply

Tags
engine, howto, install, moinmoin, selinux, updated, wiki

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting up a MoinMoin wiki jim Guides & Solutions (No Questions) 5 10th December 2012 07:05 AM
MoinMoin glennzo Reviews, Rants & Things That Make You Scream 1 27th November 2010 03:09 PM
Anyone using MoinMoin? glennzo Using Fedora 0 3rd February 2007 02:17 AM
How to install spidermonkey engine under FC5? s-strong Using Fedora 5 19th May 2006 04:40 AM
Help with Wiki Install of AIGLX cricketlachica Using Fedora 4 8th May 2006 12:25 PM


Current GMT-time: 06:25 (Thursday, 02-10-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat