Differences between revisions 13 and 26 (spanning 13 versions)
Revision 13 as of 2023-11-19 21:19:23
Size: 2599
Comment:
Revision 26 as of 2023-11-19 22:18:00
Size: 2582
Comment:
Deletions are marked like this. Additions are marked like this.
Line 21: Line 21:
Line 32: Line 31:
        !AllowOverride All         !AllowOverride All<<BR>>
Line 42: Line 41:
</!VirtualHost> <!/VirtualHost>
Line 59: Line 58:
Download and install MediaWiki: Download and install !MediaWiki:
Line 72: Line 71:
php Copy code
Line 78: Line 75:
# /var/www/mediawiki/!LocalSettings.php # /var/www/mediawiki/LocalSettings.php
Line 81: Line 78:
!$wgSitename = "Your Wiki Name"; $wgSitename = "Your Wiki Name";
Line 83: Line 80:
!$wgMetaNamespace = "!YourWikiNamespace"; $wgMetaNamespace = "!YourWikiNamespace";
Line 85: Line 82:
!$wgScriptPath = "/mediawiki"; $wgScriptPath = "/mediawiki";
Line 87: Line 84:
!$wgScriptExtension = ".php"; $wgScriptExtension = ".php";
Line 89: Line 86:
<<BR>>
$wgDBtype = "mysql";
Line 90: Line 89:
!$wgDBtype = "mysql"; $wgDBserver = "localhost";
Line 92: Line 91:
!$wgDBserver = "localhost"; $wgDBname = "your_wiki_database";
Line 94: Line 93:
!$wgDBname = "your_wiki_database"; $wgDBuser = "your_db_username";
Line 96: Line 95:
!$wgDBuser = "your_db_username"; $wgDBpassword = "your_db_password";
Line 98: Line 97:
!$wgDBpassword = "your_db_password"; $wgUpgradeKey = "your_upgrade_key";
Line 100: Line 99:
!$wgUpgradeKey = "your_upgrade_key";

MediaWikiChatGPT

2023 November 19 https://chat.openai.com/c/8e9bcd55-3b27-4470-b840-2b33c1400c80

You

Example configuration files for mediawiki and apache 2 for Debian Bookworm

ChatGPT

As of my last knowledge update in January 2022, Debian Bookworm was not released yet. Therefore, I cannot provide information on the specific version or any changes that might have occurred since then. However, I can provide you with a generic example configuration for MediaWiki and Apache2 on Debian. Please note that you should adapt the configurations according to your specific needs and the actual software versions available in Debian Bookworm.

Apache2 Configuration

Assuming you have Apache2 installed, create a new virtual host configuration file:


# /etc/apache2/sites-available/mediawiki.conf

<VirtualHost *:80>

  • ServerAdmin webmaster@example.com

    ServerName yourdomain.com

    DocumentRoot /var/www/mediawiki

    <Directory /var/www/mediawiki/>

    • Options +FollowSymLinks

      AllowOverride All
      Require all granted

    </Directory>

    ErrorLog ${APACHE_LOG_DIR}/error.log

    CustomLog ${APACHE_LOG_DIR}/access.log combined

</VirtualHost>


Enable the site and restart Apache:


sudo a2ensite mediawiki.conf

sudo systemctl restart apache2


MediaWiki Configuration

Download and install MediaWiki:


sudo apt-get update

sudo apt-get install mediawiki


Follow the on-screen instructions to set up MediaWiki. Here is a simplified example of the LocalSettings.php configuration:


<?php

# /var/www/mediawiki/LocalSettings.php

$wgSitename = "Your Wiki Name";

$wgMetaNamespace = "YourWikiNamespace";

$wgScriptPath = "/mediawiki";

$wgScriptExtension = ".php";


$wgDBtype = "mysql";

$wgDBserver = "localhost";

$wgDBname = "your_wiki_database";

$wgDBuser = "your_db_username";

$wgDBpassword = "your_db_password";

$wgUpgradeKey = "your_upgrade_key";

# Other configuration settings...


Make sure to create a MySQL database for MediaWiki and replace the placeholders in the configuration file with your actual information.

After making these changes, visit your domain in a web browser, and the MediaWiki setup process should guide you through the rest of the installation.

Remember to check the official documentation for any specific updates or changes that may have occurred since my last knowledge update.

MediaWikiChatGPT (last edited 2023-11-19 22:25:48 by KeithLofstrom)