Ubuntu Server Guide Changes, errors and bugs
Download 1.27 Mb. Pdf ko'rish
|
ubuntu-server-guide
- Bu sahifa navigatsiya:
- Configuration
- Verification
Moin Moin
MoinMoin is a wiki engine implemented in Python, based on the PikiPiki Wiki engine, and licensed under the GNU GPL. 313 Installation To install MoinMoin, run the following command in the command prompt: sudo apt i n s t a l l python−moinmoin You should also install apache2 web server. For installing the apache2 web server, please refer to ??? sub- section in ??? section. Configuration To configure your first wiki application, please run the following set of commands. Let us assume that you are creating a wiki named mywiki: cd / u s r / s h a r e /moin sudo mkdir mywiki sudo cp −R data mywiki sudo cp −R u n d e r l a y mywiki sudo cp s e r v e r /moin . c g i mywiki sudo chown −R www−data :www−data mywiki sudo chmod −R ug+rwX mywiki sudo chmod −R o−rwx mywiki Now you should configure MoinMoin to find your new wiki mywiki. To configure MoinMoin, open /etc/moin /mywiki.py file and change the following line: data_dir = ’ / o r g / mywiki / data ’ to data_dir = ’ / u s r / s h a r e /moin/ mywiki / data ’ Also, below the data_dir option add the data_underlay_dir: data_underlay_dir =’/ u s r / s h a r e /moin/ mywiki / underlay ’ Note If the /etc/moin/mywiki.py file does not exist, you should copy /usr/share/moin/config/wikifarm /mywiki.py file to /etc/moin/mywiki.py file and do the above mentioned change. Note If you have named your wiki as my_wiki_name you should insert a line “(”my_wiki_name“, r”.*“)” in /etc/moin/farmconfig.py file after the line “(”mywiki“, r”.*“)”. Once you have configured MoinMoin to find your first wiki application, mywiki, you should configure apache2 and make it ready for your wiki. You should add the following lines in /etc/apache2/sites−available/000−default.conf file inside the “ ### moin S c r i p t A l i a s / mywiki ”/ u s r / s h a r e /moin/ mywiki /moin . c g i ” a l i a s / moin_s tatic Order a l l o w , deny a l l o w from a l l ### end moin 314 The version in the above example is determined by running: $ moin −−v e r s i o n If the output shows version 1.9.7, your second line should be: a l i a s / m o i n _ s t a t i c 1 9 7 ”/ u s r / s h a r e /moin/ h t d o c s ” Once you configure the apache2 web server and make it ready for your wiki application, you should restart it. You can run the following command to restart the apache2 web server: sudo s y s t e m c t l r e s t a r t apache2 . s e r v i c e Verification You can verify the Wiki application and see if it works by pointing your web browser to the following URL: h t t p : / / l o c a l h o s t / mywiki For more details, please refer to the MoinMoin web site. Download 1.27 Mb. Do'stlaringiz bilan baham: |
Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling
ma'muriyatiga murojaat qiling