Changes

From SME Server
Jump to navigationJump to search
29 bytes added ,  07:38, 1 June 2008
m
Minor layout changes, fixed category name
Line 25: Line 25:  
Create a new ibay for your wiki (make sure you enable web access and CGI). In this example we will use the name 'testwiki' for the ibay. (If you wish to use a different name, please substitute it where you see 'testwiki' anywhere below)</li>
 
Create a new ibay for your wiki (make sure you enable web access and CGI). In this example we will use the name 'testwiki' for the ibay. (If you wish to use a different name, please substitute it where you see 'testwiki' anywhere below)</li>
 
<li>Execute the following on a SME Server shell:
 
<li>Execute the following on a SME Server shell:
cd /home/e-smith/files/ibays/testwiki
+
<pre>
cp -r /usr/share/moin/data cgi-bin
+
cd /home/e-smith/files/ibays/testwiki
cp -r /usr/share/moin/underlay cgi-bin
+
cp -r /usr/share/moin/data cgi-bin
cp /usr/share/moin/config/wikiconfig.py cgi-bin
+
cp -r /usr/share/moin/underlay cgi-bin
cp /usr/share/moin/server/moin.cgi cgi-bin
+
cp /usr/share/moin/config/wikiconfig.py cgi-bin
rm html/index.html
+
cp /usr/share/moin/server/moin.cgi cgi-bin
cp -r /usr/share/moin/htdocs/* html
+
rm html/index.html
chown www cgi-bin/data -R
+
cp -r /usr/share/moin/htdocs/* html
chown www cgi-bin/underlay -R
+
chown www cgi-bin/data -R
 +
chown www cgi-bin/underlay -R</pre>
 
</li></ol>
 
</li></ol>
 
===Configuration===
 
===Configuration===
Line 39: Line 40:  
<ol><li>Edit wikiconfig.py in your cgi-bin directory. Find and change the following lines:
 
<ol><li>Edit wikiconfig.py in your cgi-bin directory. Find and change the following lines:
   −
sitename = u'My Test Wiki'
+
<pre>sitename = u'My Test Wiki'
logo_string = u'<img src="/testwiki/common/moinmoin.png" alt=MoinMoin Logo">'
+
logo_string = u'<img src="/testwiki/common/moinmoin.png" alt=MoinMoin Logo">'
url_prefix = '/testwiki'
+
url_prefix = '/testwiki'</pre>
    
</li><li>Edit index.html in the html directory. There are two occurrences of 'moin.cgi' in this file. They need to be prepended by 'cgi-bin/' so that they say 'cgi-bin/moin.cgi'
 
</li><li>Edit index.html in the html directory. There are two occurrences of 'moin.cgi' in this file. They need to be prepended by 'cgi-bin/' so that they say 'cgi-bin/moin.cgi'
Line 47: Line 48:  
</li><li>Test the Wiki in Your Browser
 
</li><li>Test the Wiki in Your Browser
   −
Now open up a browser window and go to http://your-server/testwiki
+
Now open up a browser window and go to <nowiki>http://your-server/testwiki</nowiki>.
    
If the installation has worked then you should see 'My Test Wiki' in the title bar and MoinMoin displaying in the browser. If only text shows up in the browser and no images, check that you have correctly set the url_prefix in wikiconfig.py as described above. If you have any other errors, please check that have followed all the instructions correctly.</li></ol>
 
If the installation has worked then you should see 'My Test Wiki' in the title bar and MoinMoin displaying in the browser. If only text shows up in the browser and no images, check that you have correctly set the url_prefix in wikiconfig.py as described above. If you have any other errors, please check that have followed all the instructions correctly.</li></ol>

Navigation menu