Meta:Migration of the wiki

From Juneday education
Jump to: navigation, search

Things to test before going live

Critical (otherwise no-go)

  • Log in as "existing users"
  • Create new user
  • Read the pages
  • Search the wiki
  • Create new page
  • Update page
  • Upload file (e.g. a new PDF)
  • Syntax highlight
  • Thing for e.g. Vimeo embedd
  • Backup complete wiki (and db)
  • Restore backup (complete wiki, db, files/uploads,images..)
  • TimeZone
  • Charset, e.g. swedish letters work åäö

Lessons learned

  • SE-Linux prevents uploads, making it look like it's a PHP lockfile error
    • Solution: ?
# globalfunctions needs sys_script_exec_t
[root@juneday01-p mediawiki]# ls -Z includes/GlobalFunctions.php
-rw-r--r--. apache apache unconfined_u:object_r:httpd_sys_content_t:s0 includes/GlobalFunctions.php
[root@juneday01-p mediawiki]# chcon -t httpd_sys_script_exec_t includes/GlobalFunctions.php
[root@juneday01-p mediawiki]# ls -Z includes/GlobalFunctions.php-rw-r--r--. apache apache unconfined_u:object_r:httpd_sys_script_exec_t:s0 includes/GlobalFunctions.php

# image directory needs httpd_user_rw_content_t
[root@juneday01-p mediawiki]# ls -dZ images
drwxr-xr-x. apache apache unconfined_u:object_r:httpd_sys_content_t:s0 images
[root@juneday01-p mediawiki]# chcon -R -t httpd_user_rw_content_t images
[root@juneday01-p mediawiki]# ls -dZ images
drwxr-xr-x. apache apache unconfined_u:object_r:httpd_user_rw_content_t:s0 images

# for thumbnails:
[root@juneday01-p mediawiki]# setsebool -P httpd_setrlimit 1

  • SELinux / allow HTML
$ semanage fcontext -a -t httpd_sys_rw_content_t "/var/www/html/example-data(/.*)?"
$ restorecon -R /var/www/html/example-data
  • TimeZone: set XXX in file YYY.php to Sweden/Stockholm (or what it was)
  • RedHat: mediawiki 1.26, php-5.4 (for the reason... Henrik: fill in)