<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress.com" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>

<channel>
	<title>localsettings &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://wordpress.com/tag/localsettings/</link>
	<description>Feed of posts on WordPress.com tagged "localsettings"</description>
	<pubDate>Thu, 21 Aug 2008 08:14:18 +0000</pubDate>

	<generator>http://wordpress.com/tags/</generator>
	<language>en</language>

<item>
<title><![CDATA[Personalitzar un Wiki ]]></title>
<link>http://jaumexema.wordpress.com/?p=51</link>
<pubDate>Thu, 15 May 2008 19:00:41 +0000</pubDate>
<dc:creator>jaumexema</dc:creator>
<guid>http://jaumexema.wordpress.com/?p=51</guid>
<description><![CDATA[

Per començar a configurar el que seria el nostre Wiki, a partir d’una configuració prèvia que]]></description>
<content:encoded><![CDATA[<div></div>
<p><strong></strong><span style="font-size:10pt;color:#000000;font-family:Verdana;"></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:black;font-family:Verdana;">Per començar a configurar el que seria el nostre Wiki, a partir d’una configuració prèvia que ja realitzat en la seva instal·lació, cal modificar alguns paràmetres a través de l’arxiu Localsettings.php. </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:black;font-family:Verdana;"> </span></p>
<p class="MsoNormal" style="margin:0;"><strong><span style="font-size:10pt;color:black;font-family:Verdana;">1. Configurar Localsettings.</span></strong><span style="font-size:10pt;color:black;font-family:Verdana;"></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:black;font-family:Verdana;">En Mediawiki l’arxiu <strong>Localsettings.php</strong> conté la configuració “local” del Wiki que hem instal·lat. Aquest arxiu permet fer tot tipus de variacions per oferir diferents serveis, així com personalització del wiki.</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:black;font-family:Verdana;">Podem observar alguns dels paràmetres de la <a href="http://dissenyweb.elisava.es:4732/dissenyweb/wiki/index.php?title=Configurar_Localsettings_MW">configuració</a>. </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:black;font-family:Verdana;"> </span></p>
<p class="MsoNormal" style="margin:0;"><strong><span style="font-size:10pt;color:black;font-family:Verdana;">2. Configuració del Logo</span></strong><span style="font-size:10pt;color:black;font-family:Verdana;"></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:black;font-family:Verdana;">Dins de “<a href="http://dissenyweb.elisava.es:4732/dissenyweb/wiki/index.php?title=Caracter%C3%ADstiques_de_Monobook"><span style="color:purple;">Monobook</span></a>”, la Variable <strong>$wgLogo </strong>permet modificar la imatge que volem il·lustrar en la part superior del menú lateral esquerra.. </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:black;font-family:Verdana;"> </span></p>
<p class="MsoNormal" style="margin:0;"><strong><span style="font-size:10pt;color:black;font-family:Verdana;">3. Editar Sitenotice MW</span></strong><span style="font-size:10pt;color:black;font-family:Verdana;"></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:black;font-family:Verdana;"> Quant volem modificar els continguts de la part superior en totes les pàgines que es creïn, cal editar la pàgina <strong><a title="Sitenotice" href="http://dissenyweb.elisava.es:4732/dissenyweb/wiki/index.php?title=MediaWiki:Sitenotice">MediaWiki:Sitenotice</a></strong></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:black;font-family:Verdana;"> </span></p>
<p class="MsoNormal" style="margin:0;"><strong><span style="font-size:10pt;color:black;font-family:Verdana;">4. Editar Sidebar MW</span></strong><span style="font-size:10pt;color:black;font-family:Verdana;">A </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:black;font-family:Verdana;">Així com la operació anterior, podem realitzar una modificació en la barra de navegació lateral esquerra. En aquest cas, cal editar la pàgina <a title="Sidebar" href="http://dissenyweb.elisava.es:4732/dissenyweb/wiki/index.php?title=MediaWiki:Sidebar">MediaWiki:Sidebar</a> </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:black;font-family:Verdana;"> </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:10pt;color:black;font-family:Verdana;"> </span></p>
<p><font face="Verdana" color="#000000"></p>
<p class="MsoNormal" style="margin:0;"><strong><span style="font-size:10pt;color:black;font-family:Verdana;">Nota:</span></strong><span style="font-size:10pt;color:black;font-family:Verdana;"> Totes les modificacions que fem desde el Wiki s’ha de realitzar com a administradors, ja que sinó no ens serà possible la operació.</span></p>
<p></font></span></p>
<p class="MsoNormal" style="margin:0;"> </p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Changing the logo of your MediaWiki site]]></title>
<link>http://leefw.wordpress.com/?p=16</link>
<pubDate>Tue, 11 Mar 2008 18:47:23 +0000</pubDate>
<dc:creator>Lee Francis</dc:creator>
<guid>http://leefw.wordpress.com/?p=16</guid>
<description><![CDATA[Introduction
Yes, it looks ugly. It looks a bit better now than it used to in earlier versions of th]]></description>
<content:encoded><![CDATA[<h4>Introduction</h4>
<p>Yes, it looks ugly. It looks a bit better now than it used to in earlier versions of the MediaWiki distribution, but still... it's just begging to be replaced and you would think it would be just a little more straightforward since it is one of the first things you notice on the wiki site. Yes, that default MediaWiki logo just has to go!</p>
<h4>Changing the logo</h4>
<p>It's not that difficult, but you will need access to the web server's file system. Start off by getting hold of a replacement image, preferably something about the same size and shape as the original.</p>
<p>The default logo is of type png and size 135 x 135 pixels. Locate your <i>LocalSettings.php</i> file in your wiki directory. The wiki directory is probably the <i>wiki</i>/ directory in the document root of your web server. When you have found the file then open it for edit.</p>
<p>Search the file for the string <i>$wgScriptPath</i>. It should refer to the URL base path to the directory meaning is is most likely set to the value <i>"/wiki"</i> or similar. At the end of the file add the following two lines,</p>
<blockquote><p> $wgStylePath = "$wgScriptPath/skins";<br />
$wgLogo = "$wgStylePath/common/images/&#60;image&#62;";</p></blockquote>
<p>where you replace the text <i>&#60;image&#62;</i> with the filename of your replacement logo image. Then place your new logo file in the directory as referred to by the full path contained in the <i>$wgLogo</i> variable. And that's all there is to it, really. The change will take effect immediately after you save the <i>LocalSettings.php</i> file, but make sure you don't forget to end the statements with mandaroty semi-colons on each added line and also make sure the lines come before any closing <i>"?&#62;"</i> at the end of the file. The file must still be valid PHP code when you are finished, after all.</p>
<h4>Summary</h4>
<p>Your results should look something like in the figure below. I can't remember where I found the image I am using for my MediaWiki instance, but it is a gif image of size 84 x 64 pixels. As I mentioned earlier, the original default logo image is of type png and size 135 x 135 pixels.</p>
<p><a href="http://leefw.wordpress.com/2008/03/11/changing-the-logo-of-your-mediawiki-site/changing-the-logo-of-your-mediawiki-instance/" target="_blank" rel="attachment wp-att-19" title="Changing the logo of your MediaWiki instance"><img src="http://leefw.wordpress.com/files/2008/03/wiki-logo.thumbnail.jpg" alt="Changing the logo of your MediaWiki instance" /></a></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Removing default search limitations in MediaWiki and MySQL]]></title>
<link>http://leefw.wordpress.com/?p=12</link>
<pubDate>Wed, 05 Mar 2008 00:15:28 +0000</pubDate>
<dc:creator>Lee Francis</dc:creator>
<guid>http://leefw.wordpress.com/?p=12</guid>
<description><![CDATA[Introduction
So let&#8217;s assume you have created a page in your Mediawiki site, named it with an ]]></description>
<content:encoded><![CDATA[<h4>Introduction</h4>
<p>So let's assume you have created a page in your Mediawiki site, named it with an appropriate page title consisting of only 3 characters, say SSL or SQL, only to find that it never shows up when searching for it in the MediaWiki site search. You have tried both uppercase and lowercase search query words, you haven't misspelled the search query (only 3 characters, after all), and you are certain you are searching through the correct MediaWiki namespace. You are also certain that you saved the page, not only previewed it and then made the mistake of closing your browser.</p>
<p>Come to think of it, that page you are 110% certain you read yesterday, referring to the exact same search query word, say <i>'SSL'</i>, doesn't show up either when searching for either <i>of 'ssl'</i> or <i>'SSL'</i>. How can that be? You didn't delete the page by mistake, did you? This is getting annoying, but are you starting to see a pattern?</p>
<p>As we will see this has nothing to do with searching the wrong MediaWiki namespace (although easy enough to do), misspelling the search query word, distinguishing between uppercase or lowercase search query words, failing to save a page edit or deleting a page by mistake. The cause is simple: by default, the MySQL database server does not fulltext index words of 3 characters or below. To make this possible, you will have to change the configuration of both MediaWiki and MySQL to enable it to search for useful words and abbreviations of character length 3, such as apt, ssh, nfs and the like.</p>
<h4>Editing the MediaWiki configuration</h4>
<p>It is simple to correct this problem, but you need access to both the web server file system and administrator privileges to the MySQL database server. Locate the <i>LocalSettings.php</i> file in your MediaWiki installation directory, usually a subdirectory of your web server's document root, say <i>/htdocs</i> on Apache. Edit the file and add the variable <i>wgDBminWordLen</i> to it. Set it's value to 3, so:</p>
<blockquote><p> $wgDBminWordLen = 3;</p></blockquote>
<h4>Editing the MySQL configuration</h4>
<p>You must also tell the MySQL database server to index 3-letter words in fulltext indexes. This is the core of the problem and this configuration change will also apply to any application using the MySQL database server, not just MediaWiki. Add or edit the <i>[mysqld]</i> heading in your <i>my.conf</i> file with the following configuration line:</p>
<blockquote><p>[mysqld]<br />
ft_min_word_len=3</p></blockquote>
<p>And that's really all there is to it!</p>
<h4>Recreate the MySQL table index</h4>
<p>So just one more step to go before you can use it. You now need to restart your MySQL database server to load the new configuration setting, and then recreate the search index. So restart your server process, open a console and proceed to enter the MySQL database you use for your MediaWiki installation. Recreate the  necessary search index by typing:</p>
<blockquote><p> REPAIR TABLE searchindex QUICK;</p></blockquote>
<p>If you prefixed your MediaWiki database tables with a prefix when installing the wiki then the name of your 'searchindex' table may be <i>wk_searchindex</i> or similar. A simple '<i>show tables</i>;' query will give you a hint of the correct table name.</p>
<h4>Summary</h4>
<p>This particular fix took me a little while to find. Not that it was hidden, but I was unsure which component was limiting the search. As you have seen it turns out both MediaWiki and MySQL needed to be tweaked to correct the problem. Remember there is a reason why MySQL sets the index limitation to 3 characters by default. By changing it you will increase your index sizes leading to a performance hit. The default setting is 4 characters and I'm sure there is a statistical reason for this. Take a closer look at <a href="http://dev.mysql.com/doc/refman/5.0/en/fulltext-fine-tuning.html" target="_blank">this page</a> for more information on tuning the fulltext search in MySQL if you are unsure of the impact it might have.</p>
]]></content:encoded>
</item>

</channel>
</rss>
