How to setup wiki

From ChengLab
Revision as of 05:41, 4 February 2021 by Kevin (talk | contribs) (How to migrate the wiki (2021))
Jump to: navigation, search

How to migrate the wiki (2021)

  1. apt install apache2
  2. apt install php php-mbstring php-sqlite3
  3. Copy mediawiki and data
  4. Make sure all file in data is www-data:www-data

Steps

  1. install apache2
  2. install php5 php5-apcu php5-intl php5-gd php5-cli imagemagick
  3. install php5-sqlite
    1. associated with php
  4. install libapache2-mod-php5
    1. apache2 php-dependency
  5. check if apache2 php works
    1. https://www.howtoforge.com/ubuntu-14.10-lamp-server-tutorial-with-apache-php-and-mysql
    2. try access to /var/www/html
  6. enable user dir
    1. a2enmod userdir
    2. enable php under user dir
      1. https://www.computersnyou.com/2931/setup-per-user-web-directories-apache2-ubuntu-13-10/
      2. vi /etc/apache2/mods-available/php5.conf
      3. comment out last few lines
  7. download mediawiki
    1. move it to /var/www/html or
    2. user/public_html
  8. 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

  1. Special pages > All pages > Access List
  2. Add user
  3. Add <XXX>AccessList</XXX> (XXX is accesscontrol) to the top of the page