I have installed dokuwiki on a newly installed Stretch distro via apt-get dokuwiki.
All went well (as far as I can tell).
When I say freshly installed Stretch, then apache2, php7, mysql -- php7.0-xml was installed with php7 -- then dokuwiki; then ssmtp (after realising dokuwiki needs to send out login details for newly registered users).
When I want to log in as admin, I get in Chrome:
This page isn’t working
192.168.1.8 is currently unable to handle this request.
HTTP ERROR 500
I registered a new user; cut and pasted the password received via email, same error.
How can I fix this?
Further digging revealed this, but what to do with it?
sudo cat /var/log/apache2/error.log
[Thu May 10 06:25:02.523371 2018] [mpm_prefork:notice] [pid 22334] AH00163: Apache/2.4.25 (Raspbian) configured -- resuming normal operations
[Thu May 10 06:25:02.523413 2018] [core:notice] [pid 22334] AH00094: Command line: '/usr/sbin/apache2'
[Thu May 10 19:21:04.101102 2018] [:error] [pid 29986] [client 192.168.1.13:64981] PHP Warning: Invalid argument supplied for foreach() in /usr/share/dokuwiki/lib/exe/js.php on line 79
[Thu May 10 19:26:58.230466 2018] [:error] [pid 29980] [client 192.168.1.13:49221] PHP Warning: require(/usr/share/php/Crypt/AES.php): failed to open stream: No such file or directory in /usr/share/dokuwiki/inc/load.php on line 109
[Thu May 10 19:26:58.230632 2018] [:error] [pid 29980] [client 192.168.1.13:49221] PHP Fatal error: require(): Failed opening required '/usr/share/php/Crypt/AES.php' (include_path='.:/usr/share/php') in /usr/share/dokuwiki/inc/load.php on line 109
[Thu May 10 19:37:41.109302 2018] [:error] [pid 2478] [client 192.168.1.13:50293] PHP Warning: require(/usr/share/php/Crypt/AES.php): failed to open stream: No such file or directory in /usr/share/dokuwiki/inc/load.php on line 109
[Thu May 10 19:37:41.109468 2018] [:error] [pid 2478] [client 192.168.1.13:50293] PHP Fatal error: require(): Failed opening required '/usr/share/php/Crypt/AES.php' (include_path='.:/usr/share/php') in /usr/share/dokuwiki/inc/load.php on line 109
[Thu May 10 19:53:27.411970 2018] [mpm_prefork:notice] [pid 22334] AH00171: Graceful restart requested, doing restart
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
[Thu May 10 19:53:27.638700 2018] [mpm_prefork:notice] [pid 22334] AH00163: Apache/2.4.25 (Raspbian) configured -- resuming normal operations
[Thu May 10 19:53:27.638732 2018] [core:notice] [pid 22334] AH00094: Command line: '/usr/sbin/apache2'
[Thu May 10 19:57:32.084299 2018] [:error] [pid 3002] [client 192.168.1.13:52321] PHP Warning: require(/usr/share/php/Crypt/AES.php): failed to open stream: No such file or directory in /usr/share/dokuwiki/inc/load.php on line 109
[Thu May 10 19:57:32.084492 2018] [:error] [pid 3002] [client 192.168.1.13:52321] PHP Fatal error: require(): Failed opening required '/usr/share/php/Crypt/AES.php' (include_path='.:/usr/share/php') in /usr/share/dokuwiki/inc/load.php on line 109
#
Is my problem related to:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=854592
Update
Have enabled error display in php.ini and get:
Warning: require(/usr/share/php/Crypt/AES.php): failed to open stream: No such file or directory in /usr/share/dokuwiki/inc/load.php on line 109
Fatal error: require(): Failed opening required '/usr/share/php/Crypt/AES.php' (include_path='.:/usr/share/php') in /usr/share/dokuwiki/inc/load.php on line 109
Any hints appreciated.
Got a bit frustrated:
https://forum.dokuwiki.org/thread/15871
Eventually solved it: same link