Mediawiki
MediaWiki is A free and open-source wiki software package, used for Knowledge Management . MediaWiki is a free and open-source wiki software package written in PHP. It serves as the platform for Wikipedia and the other Wiki projects, used by hundreds of millions of people each month.
Prepare
When referring to this document to use MediaWiki, please read and ensure the following points:
-
Login to Websoft9 Console and find or install MediaWiki:
- Go to My Apps listing applications
- Go to App Store installing target application
-
This application is installed by Websoft9 console.
-
The purpose of this application complies with the GPL-2.0 open source license agreement.
-
Configure the domain name or server security group opens external network ports for application access.
Getting started
initialization
- After installing MediaWiki in the Websoft9 console, view the application details in "My Apps"
- Get access URLs in Access tabs
- Get Intranet Host and Password in the Database tab
-
Local browser access URL to Mediawiki initialization wizard
-
The database configuration provided by default is as follows:
-
Database type :
MySQL
-
Database host : Step 1 Intranet Host obtained
-
Database name :
mediawiki
-
Database username :
mediawiki
-
Database password : Password obtained at step 1
Fill in the information and select Install wiki
-
-
After MediaWiki is installed, download the LocalSettings.php file generated by the installer
-
Return to Websoft9 Console, view app details via "My Apps". Click on Go to Edit Repository in the Compose tab. Go to the /src directory, click Add File. Select Upload File, upload the LocalSettings.php file, and click Commit Changes
-
Go back to the previous directory in the /src directory, go to the docker-compose.yml file. Uncomment the following code, and then click Commit Changes
# - ./src/LocalSettings.php:/var/www/html/LocalSettings.php
-
Return to "My Apps" and click Redeploy App in the Compose tab or click the Redeploy App icon in the upper right corner to rebuild the app
-
Visit the URL again in your local browser to log in
Quick setup
- Install extensions: Manual:Extensions
- Visual Editor: Help:Starting_a_new_page
- File Upload: Help:FAQ:Enabling File Upload
- Language Settings: Help:FAQ:Language Settings
- Interface Customization: Help:FAQ:Customize Interface, including modifying the logo, setting up the navigation bar, and customizing CSS.
Setting up SMTP
-
Edit the
/bitnami/mediawiki LocalSettings.php
configuration file. -
Locate the variable $wgSMTP and configure it as follows:
$wgSMTP = array(
'host' => "smtp.163.com",
'IDHost' => "example.com", // Mailbox domain, optional. If not set, it will be set to the value of $wgServer.
'port' => 465, /> 'auth' => true, // The value of $wgServer if not set.
'username' => "[email protected]", 'password' => "#wwgServer
'password' => "#wwBJ8"
). -
Find the variable $wgEnableEmail and set its value to true.
$wgEnableEmail = true
-
Locate the following variables and set their values to the sender's email address.
$wgEmergencyContact = "[email protected]";
$wgPasswordSender = "[email protected]"; -
After making these changes, restart the application for the settings to take effect.
Configuration options
- Configuration file (mounted): /bitnami/mediawiki/LocalSettings.php
- API:Main_page
- Multilingual(✅)
- Multimedia files(✅)