How to setup wiki
Contents
How to migrate the wiki (2021)
- apt install apache2
- apt install php php-mbstring php-sqlite3
- Copy mediawiki and data
- Make sure all file in data is www-data:www-data
Steps
- install apache2
- install php5 php5-apcu php5-intl php5-gd php5-cli imagemagick
- install php5-sqlite
- associated with php
- install libapache2-mod-php5
- apache2 php-dependency
- check if apache2 php works
- https://www.howtoforge.com/ubuntu-14.10-lamp-server-tutorial-with-apache-php-and-mysql
- try access to /var/www/html
- enable user dir
- a2enmod userdir
- enable php under user dir
- https://www.computersnyou.com/2931/setup-per-user-web-directories-apache2-ubuntu-13-10/
- vi /etc/apache2/mods-available/php5.conf
- comment out last few lines
- download mediawiki
- move it to /var/www/html or
- user/public_html
- in browser type: http://hostname/~user/mediawiki/mw-config
Administration
Create User
Go to /var/www/html/mediawiki/maintenance
sudo php createAndPromote.php <username> <password>
Change password
Go to /var/www/html/mediawiki/maintenance
sudo php changePassword.php --user=<username> --password=<password>
Configuring MediaWiki to use external SMTP
Configure later: [1]
Block some of the pages to outsiders
- Special pages > All pages > Access List
- Add user
- Add
<XXX>AccessList</XXX>
(XXX isaccesscontrol
) to the top of the page