How to setup wiki

From ChengLab
Revision as of 22:46, 8 April 2018 by Kevin (talk | contribs) (Change password)
Jump to: navigation, search

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

Change password

Go to /path/to/public_html/mediawiki/maintenance

sudo php changePassword.php --user=<username> --password=<password>