The above error shows directly after a fresh install of a Mediawiki 1.29
see e.g. https://stackoverflow.com/questions/46169560/mediawiki-500-internal-error-when-visit-the-home-page
steps to reproduce:
- use Ubuntu 16.04.1 server with Apache 2.4.18, PHP 7.0.22 and mysql 5.0.12-dev
- download mediawiki-1.29.1.tar.gz
- unzip
- go thru setup the wiki steps - only modify:
- wiki languag en
- set database name
- supply mysql admin user and password
- setup database user and password and let installation create user
- set name of wiki
From here I do not 100% remember whether I supplied a user or have forgotten to do so and used the mysql admin user.
It may also have been that the user already existed from a prior installation attempt.
the Problem went away after reinstalling with the following steps:
- dropping database
- removing user from mysql.users
- strangely the "user exists" error still appeared on installation
- granting access rights was therefore necessary on the mysql database.
and then going over the steps above again.