Need help with 500 error on PHP setup using the sample code from github

Describe the bug
As soon as I login (brand new install), it give a 500 Server Error.

To Reproduce
Steps to reproduce the behavior:

  1. Install Kimai2 on localhost (Ubuntu 18.04 LTS with Apache 2.4+) using standard instructions (replace wwwdata with standard user) with MySQL database. Installed under /var/www/kimai2.
  2. Setup Virtual Host in /etc/apache2/sites-enabled/kimai.conf/ (for kimai.local) and add entry in /etc/hosts mapping 127.0.0.1 to kimai.local
  3. Try to login.

Expected behavior
Display timesheet / dashboard? (It’s trying to reach
insta stalker

Screenshots
Blank screen. Header shows it was redirected from kimai.local (302) --> /en (301) -> /en/timesheet/ (302 --> /en/login (500)

Output from kimai-access.log:
127.0.0.1 - - [05/Oct/2018:23:09:38 -0500] “GET / HTTP/1.1” 302 531 “-” “Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0”
127.0.0.1 - - [05/Oct/2018:23:09:39 -0500] “GET /en/timesheet/ HTTP/1.1” 302 663 “-” "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko/20100101 Firefox$
127.0.0.1 - - [05/Oct/2018:23:09:39 -0500] “GET /en/login HTTP/1.1” 500 185 “-” “Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0”

Error log is showing nothing.

Desktop (please complete the following information):

  • OS: Ubuntu 18.04 LTS
  • Browser: Firefox
  • Version: 61