Difference between revisions of "MoinMoin install"
(install location) |
m |
||
(5 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
Instructions available in tar.gz distributions INSTALL file | Instructions available in tar.gz distributions INSTALL file | ||
===OS X=== | ===OS X=== | ||
+ | Whe MoinMoin is installed a contributed python package under the directory ''MoinMoin'' is put into the system directory; | ||
+ | ''/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages'' | ||
+ | |||
The default installation script; | The default installation script; | ||
python setup.py --quiet install --record=install.log | python setup.py --quiet install --record=install.log | ||
− | will place the | + | will place the wiki share directory ''moin'' directory into the same inconvenient system directory |
− | + | To install the shared files to 'the doirectory path '/usr/local/share/moin''; | |
− | To install the shared files to ''/usr/local/share/moin''; | ||
python setup.py install --install-data='/usr/local' | python setup.py install --install-data='/usr/local' | ||
+ | ;Configuration commands | ||
+ | <table class=document-code><tr><td> | ||
+ | cd /usr/local/share/moin | ||
+ | mkdir mywiki | ||
+ | cp -r data mywiki | ||
+ | cp -r underlay mywiki | ||
+ | cp server/moin.cgi mywiki | ||
+ | cp config/wikiconfig.py mywiki | ||
+ | </table> | ||
+ | ;Permissions | ||
+ | <table class=document-code><tr><td> | ||
+ | chown -R www:www mywiki | ||
+ | chmod -R ug+rwX mywiki | ||
+ | chmod -R o-rwx mywiki | ||
+ | </table> | ||
+ | ;Configuring Apache | ||
+ | Edit the Apache configuration file ''/etc/httpd/httpd.conf'' | ||
+ | This example will create an alias so Apache will redirect any request for the mywiki url path. | ||
+ | <table class=document-code><tr><td> | ||
+ | Alias /moin/ "/usr/local/share/moin/htdocs/" | ||
+ | ScriptAlias /moin "/usr/local/share/moin/mywiki/moin.cgi" | ||
+ | </table> | ||
+ | Apache now needs to be restarted; | ||
+ | <table class=document-code><tr><td> | ||
+ | apachectl graceful | ||
+ | </table> | ||
+ | =Removal= | ||
+ | remove or comment out the following lines from ''/etc/httpd/httpd.conf'' | ||
+ | <table class=document-code><tr><td> | ||
+ | Alias /moin/ "/usr/local/share/moin/htdocs/" | ||
+ | ScriptAlias /moin "/usr/local/share/moin/mywiki/moin.cgi" | ||
+ | </table> | ||
+ | Apache now needs to be restarted; | ||
+ | <table class=document-code><tr><td> | ||
+ | apachectl graceful | ||
+ | </table> | ||
+ | If you want to remove the MoinMoin shared files; | ||
+ | sudo -rf /usr/local/share/moin | ||
+ | If you want to remove the MoinMoin contributed python package | ||
+ | sudo rm -rf /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/MoinMoin |
Latest revision as of 21:48, 31 March 2007
Contents
Download
Install
Instructions available in tar.gz distributions INSTALL file
OS X
Whe MoinMoin is installed a contributed python package under the directory MoinMoin is put into the system directory;
/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages
The default installation script;
python setup.py --quiet install --record=install.log
will place the wiki share directory moin directory into the same inconvenient system directory To install the shared files to 'the doirectory path '/usr/local/share/moin;
python setup.py install --install-data='/usr/local'
- Configuration commands
cd /usr/local/share/moin mkdir mywiki cp -r data mywiki cp -r underlay mywiki cp server/moin.cgi mywiki cp config/wikiconfig.py mywiki |
- Permissions
chown -R www:www mywiki chmod -R ug+rwX mywiki chmod -R o-rwx mywiki |
- Configuring Apache
Edit the Apache configuration file /etc/httpd/httpd.conf This example will create an alias so Apache will redirect any request for the mywiki url path.
Alias /moin/ "/usr/local/share/moin/htdocs/" ScriptAlias /moin "/usr/local/share/moin/mywiki/moin.cgi" |
Apache now needs to be restarted;
apachectl graceful |
Removal
remove or comment out the following lines from /etc/httpd/httpd.conf
Alias /moin/ "/usr/local/share/moin/htdocs/" ScriptAlias /moin "/usr/local/share/moin/mywiki/moin.cgi" |
Apache now needs to be restarted;
apachectl graceful |
If you want to remove the MoinMoin shared files;
sudo -rf /usr/local/share/moin
If you want to remove the MoinMoin contributed python package
sudo rm -rf /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/MoinMoin