Size: 2564
Comment:
|
Size: 2599
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 6: | Line 6: |
== You == |
=== You === |
Line 10: | Line 9: |
== 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. |
=== 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. |
Line 13: | Line 12: |
== Apache2 Configuration == | === Apache2 Configuration === |
Line 17: | Line 16: |
------ |
|
Line 19: | Line 20: |
----- | <!VirtualHost *:80> |
Line 21: | Line 22: |
<VirtualHost *:80> | !ServerAdmin webmaster@example.com |
Line 23: | Line 24: |
ServerAdmin webmaster@example.com | !ServerName yourdomain.com |
Line 25: | Line 26: |
ServerName yourdomain.com DocumentRoot /var/www/mediawiki |
!DocumentRoot /var/www/mediawiki |
Line 31: | Line 30: |
Options +FollowSymLinks | Options +!FollowSymLinks |
Line 33: | Line 32: |
AllowOverride All | !AllowOverride All |
Line 39: | Line 38: |
ErrorLog ${APACHE_LOG_DIR}/error.log | !ErrorLog ${APACHE_LOG_DIR}/error.log |
Line 41: | Line 40: |
CustomLog ${APACHE_LOG_DIR}/access.log combined | !CustomLog ${APACHE_LOG_DIR}/access.log combined |
Line 43: | Line 42: |
</VirtualHost> | <!/VirtualHost> |
Line 45: | Line 44: |
----- | ------ |
Line 49: | Line 48: |
----- | ------ |
Line 55: | Line 54: |
----- | ------ |
Line 58: | Line 57: |
== MediaWiki Configuration == | === MediaWiki Configuration === |
Line 62: | Line 61: |
----- | ------ |
Line 69: | Line 68: |
----- | ------ |
Line 71: | Line 70: |
Follow the on-screen instructions to set up MediaWiki. Here is a simplified example of the LocalSettings.php configuration: | Follow the on-screen instructions to set up MediaWiki. Here is a simplified example of the !LocalSettings.php configuration: |
Line 75: | Line 74: |
----- | ------ |
Line 79: | Line 78: |
# /var/www/mediawiki/LocalSettings.php | # /var/www/mediawiki/!LocalSettings.php |
Line 82: | Line 81: |
$wgSitename = "Your Wiki Name"; | !$wgSitename = "Your Wiki Name"; |
Line 84: | Line 83: |
$wgMetaNamespace = "YourWikiNamespace"; | !$wgMetaNamespace = "!YourWikiNamespace"; |
Line 86: | Line 85: |
$wgScriptPath = "/mediawiki"; | !$wgScriptPath = "/mediawiki"; |
Line 88: | Line 87: |
$wgScriptExtension = ".php"; | !$wgScriptExtension = ".php"; |
Line 91: | Line 90: |
$wgDBtype = "mysql"; | !$wgDBtype = "mysql"; |
Line 93: | Line 92: |
$wgDBserver = "localhost"; | !$wgDBserver = "localhost"; |
Line 95: | Line 94: |
$wgDBname = "your_wiki_database"; | !$wgDBname = "your_wiki_database"; |
Line 97: | Line 96: |
$wgDBuser = "your_db_username"; | !$wgDBuser = "your_db_username"; |
Line 99: | Line 98: |
$wgDBpassword = "your_db_password"; | !$wgDBpassword = "your_db_password"; |
Line 101: | Line 100: |
$wgUpgradeKey = "your_upgrade_key"; | !$wgUpgradeKey = "your_upgrade_key"; |
Line 105: | Line 104: |
----- |
------ |
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 Copy code
<?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.