From 1a168f9d0fdc1e7f272a0c19a2ac092b09974f0f Mon Sep 17 00:00:00 2001 From: i12bretro <54692756+i12bretro@users.noreply.github.com> Date: Mon, 17 Jan 2022 19:50:36 -0500 Subject: [PATCH] 0348: Self-hosted Wikipedia Style Wiki with MediaWiki on Windows --- 0348.html | 147 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 147 insertions(+) create mode 100644 0348.html diff --git a/0348.html b/0348.html new file mode 100644 index 0000000..9072343 --- /dev/null +++ b/0348.html @@ -0,0 +1,147 @@ + + + + Self-hosted Wikipedia Style Wiki with MediaWiki on Windows + + + + + + +
+
+
+

Self-hosted Wikipedia Style Wiki with MediaWiki on Windows

+
+
+
+
    +
  1. Download XAMPP Download
  2. +
  3. Download MediaWiki Download
  4. +
  5. Download the Vector skin Download
  6. +
  7. +
  8. +
  9. Install Microsoft Visual C++
  10. +
  11. Right click the downloaded XAMPP .zip file > Extract All...
  12. +
  13. Right click the downloaded MediaWiki .zip file > Extract All...
  14. +
  15. Rename the extracted folder wiki
  16. +
  17. Extract the Vector skin inside XAMPP/htdocs/wiki/skins
  18. +
  19. Cut the wiki folder inside the XAMPP/htdocs directory
  20. +
  21. Copy the extracted XAMPP directory to a safe location to run from, C:\Program Files for example
  22. +
  23. Run XAMPP/setup_xampp.bat to update the configuration files with the new server location
  24. +
  25. Install Composer
  26. +
  27. Navigate to the XAMPP/htdocs/wiki folder > Right click in the white space > Open PowerShell window here...
  28. +
  29. Run the following command to download dependencies +
    composer i --ignore-platform-reqs
    +
  30. +
  31. Navigate to XAMPP/php and edit php.ini
  32. +
  33. Find the following lines and remove the ; to uncomment them +

    extension=intl

    +
  34. +
  35. Run XAMPP/xampp-control.exe
  36. +
  37. Click the Start button next to Apache and MySQL
  38. +
  39. Navigate to XAMPP/mysql/bin
  40. +
  41. Hold the SHIFT key and right click in the white space > Open PowerShell window here...
  42. +
  43. Type the following in the PowerShell window to setup the mediawiki database +
    .\mysql -u root
    + CREATE DATABASE wikidb;
    + GRANT ALL ON wikidb.* TO 'wikiuser'@'localhost' IDENTIFIED BY 'WikiW1k1Wh@t!!';
    + FLUSH PRIVILEGES;
    + EXIT;
    + exit
    +
  44. +
  45. Open a web browser and navigate to http://DNSorIP/wiki
  46. +
  47. +
  48. Click the set up the wiki first link
  49. +
  50. Select a language > Click Continue
  51. +
  52. Scroll to the bottom of the page and click Continue
  53. +
  54. Enter the database host, name, username and password > Click Continue +

    Host: localhost
    + Name: wikidb
    + Username: wikiuser
    + Password: WikiW1k1Wh@t!!

    +
  55. +
  56. Leave Use the same account as for installation checked and click Continue
  57. +
  58. Give the Wiki a name and create an administrator username and password
  59. +
  60. Uncheck the Share data about this installation with MediaWiki developers box
  61. +
  62. Check the I'm bored already, just install the wiki box
  63. +
  64. Click Continue and the Continue again to begin the installation
  65. +
  66. After the installation completes click Continue
  67. +
  68. Download the generated LocalSettings.php to the XAMPP/htdocs/wiki directory
  69. +
  70. 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 +

    wfLoadSkin('Vector');

    +
  71. +
  72. Back in the browser click the enter your wiki link
  73. +
  74. Click the Log In link at the top right
  75. +
  76. Log in with the administrator account created during the installation
  77. +
  78. Welcome to WikiMedia
  79. +
+
+
+ + + \ No newline at end of file