0348.html 5.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Self-hosted Wikipedia Style Wiki with MediaWiki on Windows</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <meta charset="UTF-8">
  7. <meta name="keywords" content="Browser Based,Home Lab,Home Lab Ideas,Install Guide,Self-Hosted,Web Based,Web Based Tools,Apache HTTPD,FOSS,How To Install WikiMedia On Windows,How To Run WikiMedia On Windows,How To Self-Host Wikipedia,WAMP,MariaDB,MySQL,Open Source,Open Source Software,PHP,PHP Based Wiki,Self-Hosted Wikipedia,Web Server,WikiMedia,Windows,Microsoft Windows,How To,Tutorial,i12bretro">
  8. <meta name="author" content="i12bretro">
  9. <meta name="description" content="Self-hosted Wikipedia Style Wiki with MediaWiki on Windows">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11. <meta name="revised" content="12/15/2023 12:47:46 PM" />
  12. <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
  13. <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
  14. <script type="text/javascript" src="includes/js/steps.js"></script>
  15. <link href="css/steps.css" rel="stylesheet" type="text/css" />
  16. </head>
  17. <body>
  18. <div id="gridContainer">
  19. <div class="topMargin"></div>
  20. <div id="listName" class="topMargin">
  21. <h1>Self-hosted Wikipedia Style Wiki with MediaWiki on Windows</h1>
  22. </div>
  23. <div></div>
  24. <div id="content">
  25. <ol>
  26. <li>Download XAMPP <a href="https://sourceforge.net/projects/xampp/files/XAMPP%20Windows/" target="_blank">Download</a></li>
  27. <li>Download MediaWiki <a href="https://github.com/wikimedia/mediawiki/releases" target="_blank">Download</a></li>
  28. <li>Download the Vector skin <a href="https://extdist.wmflabs.org/dist/skins/Vector-REL1_35-e3d48bc.tar.gz" target="_blank">Download</a></li>
  29. <li><label for="cb_li_917989_0">Download Microsoft Visual C++ </label><label for="cb_li_917989_0"><a href="https://aka.ms/vs/16/release/vc_redist.x64.exe" target="_blank">Download</a></label></li>
  30. <li><label for="cb_li_917989_0">Download Composer <a href="https://getcomposer.org/Composer-Setup.exe" target="_blank">Download</a></label></li>
  31. <li>Install Microsoft Visual C++</li>
  32. <li>Right click the downloaded XAMPP .zip file &gt; Extract All...</li>
  33. <li>Right click the downloaded MediaWiki .zip file &gt; Extract All...</li>
  34. <li>Rename the extracted folder wiki</li>
  35. <li>Extract the Vector skin inside XAMPP/htdocs/wiki/skins</li>
  36. <li>Cut the wiki folder inside the XAMPP/htdocs directory</li>
  37. <li>Copy the extracted XAMPP directory to a safe location to run from, C:\Program Files for example</li>
  38. <li>Run XAMPP/setup_xampp.bat to update the configuration files with the new server location</li>
  39. <li>Install Composer</li>
  40. <li>Navigate to the XAMPP/htdocs/wiki folder &gt; Right click in the white space &gt; Open PowerShell window here...</li>
  41. <li>Run the following command to download dependencies
  42. <div class="codeBlock">composer i --ignore-platform-reqs</div>
  43. </li>
  44. <li>Navigate to XAMPP/php and edit php.ini</li>
  45. <li>Find the following lines and remove the ; to uncomment them
  46. <p>extension=intl</p>
  47. </li>
  48. <li>Run XAMPP/xampp-control.exe</li>
  49. <li>Click the Start button next to Apache and MySQL</li>
  50. <li>Navigate to XAMPP/mysql/bin</li>
  51. <li>Hold the SHIFT key and right click in the white space &gt; Open PowerShell window here...</li>
  52. <li>Type the following in the PowerShell window to setup the mediawiki database
  53. <div class="codeBlock">.\mysql -u root<br />
  54. CREATE DATABASE wikidb;<br />
  55. GRANT ALL ON wikidb.* TO &#39;wikiuser&#39;@&#39;localhost&#39; IDENTIFIED BY &#39;WikiW1k1Wh@t!!&#39;;<br />
  56. FLUSH PRIVILEGES;<br />
  57. EXIT;<br />
  58. exit</div>
  59. </li>
  60. <li>Open a web browser and navigate to http://DNSorIP/wiki</li>
  61. <li><label for="cb_li_138017_24">The WikiMedia setup screen should be displayed</label></li>
  62. <li>Click the set up the wiki first link</li>
  63. <li>Select a language &gt; Click Continue</li>
  64. <li>Scroll to the bottom of the page and click Continue</li>
  65. <li>Enter the database host, name, username and password &gt; Click Continue
  66. <p>Host: localhost<br />
  67. Name: wikidb<br />
  68. Username: wikiuser<br />
  69. Password: WikiW1k1Wh@t!!</p>
  70. </li>
  71. <li>Leave Use the same account as for installation checked and click Continue</li>
  72. <li>Give the Wiki a name and create an administrator username and password</li>
  73. <li>Uncheck the Share data about this installation with MediaWiki developers box</li>
  74. <li>Check the I&#39;m bored already, just install the wiki box</li>
  75. <li>Click Continue and the Continue again to begin the installation</li>
  76. <li>After the installation completes click Continue</li>
  77. <li>Download the generated LocalSettings.php to the XAMPP/htdocs/wiki directory</li>
  78. <li>Once LocalSettings.php is in place open it in a text editor and add the following line to the bottom of the file to enable the Vector skin
  79. <p>wfLoadSkin(&#39;Vector&#39;);</p>
  80. </li>
  81. <li>Back in the browser click the enter your wiki link</li>
  82. <li>Click the Log In link at the top right</li>
  83. <li>Log in with the administrator account created during the installation </li>
  84. <li>Welcome to WikiMedia</li>
  85. </ol> </div>
  86. </div>
  87. </body>
  88. </html>