Installing MediaWiki on 5.0-Nano: Difference between revisions

m
no edit summary
mNo edit summary
mNo edit summary
Line 1: Line 1:
<span id="top"></span>
<span id="top"></span>
{| cellpadding="2"
{| cellpadding="2"
|__TOC__||'''Installing MediaWiki on 5.0-Nano'''
|__TOC__||'''Installing MediaWiki on 5-Nano Series'''
|}
|}
'''Introduction'''
'''Introduction'''


This step-by-step guide shows how to install MediaWiki on Uniform Server V5.0-Nano.
This step-by-step guide shows how to install MediaWiki on Uniform Server V5-Nano Series.


Uniform Server is inherently portable copy the above to a USB memory stick and run on another PC. If a host PC is currently running another server it will prevent UniServer from running. To resolve this situation either stop, the host servers or preferably install your UniServer on different ports by moving the server. Before installing MediaWiki its worth reading how to [[#Move Servers |'''move servers''']].  
Uniform Server is inherently portable copy the above to a USB memory stick and run on another PC. If a host PC is currently running another server it will prevent UniServer from running. To resolve this situation either stop, the host servers or preferably install your UniServer on different ports by moving the server. Before installing MediaWiki its worth reading how to [[#Move Servers |'''move servers''']].  
Line 19: Line 19:


# '''A)''' Create a new folder named '''mediawiki_b''' (Can be any name)
# '''A)''' Create a new folder named '''mediawiki_b''' (Can be any name)
# Extract a new copy of Uniform Server V5.0-Nano to this folder<br>&nbsp;--- Database user name '''root''' - No need to change this<br>&nbsp;--- Database password '''root''' - Before installing MediaWikil I recommend changing this using [[4.0-Mona: Security & passwords#MySQL Password | apanel]]   
# Extract a new copy of Uniform Server V5-Nano to this folder<br>&nbsp;--- Database user name '''root''' - No need to change this<br>&nbsp;--- Database password '''root''' - Before installing MediaWikil I recommend changing this using [[4.0-Mona: Security & passwords#MySQL Password | apanel]]   
# '''Start''' Uniform Server.  
# '''Start''' Uniform Server.  


Line 174: Line 174:


Use the port number that matches your server, start the servers. Pages are accessible as mentioned above just remember to use the port number that matches your server.
Use the port number that matches your server, start the servers. Pages are accessible as mentioned above just remember to use the port number that matches your server.
'''''Note 2'':'''
If you install MediaWiki using the plugin V55_MediaWiki_1_15_1a.exe there is no need to change line $wgDBserver = "localhost";
A MySQL port change is automatically tracked using the following code:
{|
|-
|
<pre>
// ===  Get MYSQL port number =================================================
// Use port from configuration file - because user can change this file
$path_array = explode("www", dirname( __FILE__ ));        // Folder UniServr path
$file_conf  = $path_array[0].'usr\\local\\mysql\\my.ini'; // Config file
if ($filearray=file($file_conf)) {              // read file into array
foreach ($filearray as $txt) {                // scan array for port
  if(preg_match("/^\s*port\s*=\s*(\d+)/", $txt,$match)){ // check save matches
  $mysql_port =  $match[1];                    // match found save port number
  break;                                      // give up nothing else to do
  }
}
}
else {                                      // failed to read file
echo "Cannot read the file";
}
// ===================================================== END Get MySQL Port ===
## Database settings
$wgDBtype          = "mysql";
$wgDBserver        = "localhost:$mysql_port";
$wgDBname          = "wikidb";
$wgDBuser          = "root";
$wgDBpassword      = "root";
</pre>
|}


'''''[[#top | Top]]'''''
'''''[[#top | Top]]'''''
== Plugin ==
== Plugin ==
The above instructions are generic allowing you to install the latest version of MediaWiki.
The above instructions are generic allowing you to install the latest version of MediaWiki.
Line 182: Line 220:
* Under '''Plugins'''
* Under '''Plugins'''
* Navigate to sub-folder '''Uniform Server 5-Nano Plugins'''
* Navigate to sub-folder '''Uniform Server 5-Nano Plugins'''
* Download file [http://sourceforge.net/projects/miniserver/files/Plugins/UniServer%2055-Nano%20Plugins/Applications/V55_MediaWiki/V55_MediaWiki_1_15_1.exe/download V55_MediaWiki_1_15_1.exe]
* Download file [http://sourceforge.net/projects/miniserver/files/Plugins/UniServer%2055-Nano%20Plugins/Applications/V55_MediaWiki/V55_MediaWiki_1_15_1.exe/download V55_MediaWiki_1_15_1a.exe]


Save this to folder UniServer, to install double click on file. MediaWiki is pre-configured and ready to go. Check out the read me file for latest information.
Save this to folder UniServer, to install double click on file. MediaWiki is pre-configured and ready to go. Check out the read me file for latest information.
Line 207: Line 245:




MediaWiki is extremely easy to install on UniServer, if you have a version already installed on 4.*-Mona and want to move it over to 5.0-Nano take a look at [[Moving MediaWiki to 5.0-Nano | this page]].
MediaWiki is extremely easy to install on UniServer, if you have a version already installed on 4.*-Mona and want to move it over to 5-Nano take a look at [[Moving MediaWiki to 5.0-Nano | this page]].


'''''[[#top | Top]]'''''
'''''[[#top | Top]]'''''