Selfhosted MediaWiki with VisualEditor and 2FA on Debian 10
Gateway IT Tutorials
- SSH into your Debian Server.
- apt install mediawiki mlocate tmux sudo git curl php-imagick imagemagick
- sudo apt install software-properties-common
- curl -sL https://deb.nodesource.com/setup_10.x | sudo bash -
- apt install gcc g++ make
- curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | seudo apt-key add -
- Add Yarn software repo: a) nano /etc/apt/sources.list.d/yarn.list b) ADD THIS LINE TO THAT FILE: deb https://dl.yarnpkg.com/debian stable main
- apt update && apt install yarn
- npm install parsoid
- mysql_secure_installation
- MYSQL database creation: create database mediawikidb; create user "secretuser"@"localhost" identified by "YOURsecurePASSWORD"; grant all privileges on mediawikidb.* to "secretuser"@"localhost";
- nano /etc/mediawiki/LocalSettings.php
- Start parsoid inside the tmux: a) "cd" to your parsoid folder b) tmux c) npm start d) CRTL+B to enter control mode, then press D to detach
Note for the future! to run your parsoid on system startup, add this line to your crontab (run "crontab -e" command to get inside the crontab): @reboot bash -c "cd /root/node_modules/parsoid && npm start &"
Please pay attention to your parsoid location folder!
- Download VisualEditor as shown in the video, then move it to the extensions directory and activate.
- Fix the permissions: chown -R root:root /var/lib/mediawiki/extensions/VisualEditor
- Forgot to mention this in the video, run these 2 commands to start apache2 web server and mysql automatically during system startup. systemctl enable apache2 && systemctl enable mariadb
- Follow rest of the video to finish the setup. ... https://www.youtube.com/watch?v=G3FjP2PkApg
2020-02-11
0.0 LBC
Copyrighted (contact publisher)
120137036 Bytes