Not logged in. · Lost password · Register
Forum: General Help and Support Server Setup RSS
Dokuwiki installation Freenas 11.1
Avatar
dejhost #1
Member for 2 months · 10 posts
Group memberships: Members
Show profile · Link to this post
Subject: Dokuwiki installation Freenas 11.1
Hello everybody,

During my latest attempt to upgrade dokuwiki, it broke. I had permission issues during the upgrade. While troubleshooting I lost the possibility to connect through the web-interface. Now I am trying to reinstall dokuwiki - and grateful for any help I can get.

I want to install dokuwiki in a jail in FreeNAS 11.1 U5. Apache and PHP seem to be running fine  - at least, I can restart the apache service without problems.
I download the latest dokuwiki installer and proceed. The web interface tells me: "Download completed successfully. Please continue to next step."

DokuWiki archive file deleted.
DokuWiki Download Script deleted.
You're done. DokuWiki was successfully downloaded and extracted on your server. The next step is to run the default installer to do some initial setup.
Next thing I see is chrome displaying the following error message.
This page isn’t working
192.168.1.13 is currently unable to handle this request.
HTTP ERROR 500

How do I find out what I am missing?
Avatar
turnermm (Moderator) #2
Member since Oct 2009 · 4293 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
Check your apache error log.
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Avatar
dejhost #3
Member for 2 months · 10 posts
Group memberships: Members
Show profile · Link to this post
Thanks for your reply, tunermm.

[Tue Jul 10 06:46:38.431354 2018] [:error] [pid 15917] [client 192.168.1.210:52726] PHP Fatal error:  Call to undefined function json_encode() in /usr/local/www/apache24/data/inc/template.php on line 343
[Tue Jul 10 06:46:44.219176 2018] [:error] [pid 15915] [client 192.168.1.210:52728] PHP Fatal error:  Call to undefined function json_encode() in /usr/local/www/apache24/data/inc/template.php on line 343
[Tue Jul 10 14:08:12.632718 2018] [mpm_prefork:notice] [pid 7627] AH00163: Apache/2.4.29 (FreeBSD) PHP/5.6.32 configured -- resuming normal operations
[Tue Jul 10 14:08:12.655211 2018] [core:notice] [pid 7627] AH00094: Command line: '/usr/local/sbin/httpd -D NOHTTPACCEPT'
[Tue Jul 10 14:13:18.819513 2018] [mpm_prefork:notice] [pid 7734] AH00163: Apache/2.4.29 (FreeBSD) PHP/5.6.32 configured -- resuming normal operations
[Tue Jul 10 14:13:18.840081 2018] [core:notice] [pid 7734] AH00094: Command line: '/usr/local/sbin/httpd -D NOHTTPACCEPT'
[Tue Jul 10 14:26:00.525506 2018] [mpm_prefork:notice] [pid 7637] AH00163: Apache/2.4.29 (FreeBSD) PHP/5.6.32 configured -- resuming normal operations
[Tue Jul 10 14:26:00.526281 2018] [core:notice] [pid 7637] AH00094: Command line: '/usr/local/sbin/httpd -D NOHTTPACCEPT'
[Tue Jul 10 17:48:09.758300 2018] [:error] [pid 7872] [client 192.168.1.46:51353] PHP Fatal error:  Call to undefined function hash_equals() in /usr/local/www/apache24/data/inc/PassHash.class.php on line 94
[Tue Jul 10 17:50:43.539831 2018] [mpm_prefork:notice] [pid 7637] AH00169: caught SIGTERM, shutting down
[Tue Jul 10 17:50:43.933851 2018] [mpm_prefork:notice] [pid 30448] AH00163: Apache/2.4.29 (FreeBSD) PHP/5.6.32 configured -- resuming normal operations
[Tue Jul 10 17:50:43.934089 2018] [core:notice] [pid 30448] AH00094: Command line: '/usr/local/sbin/httpd -D NOHTTPACCEPT'
[Tue Jul 10 17:53:10.396705 2018] [:error] [pid 30449] [client 192.168.1.46:51392] PHP Fatal error:  Call to undefined function hash_equals() in /usr/local/www/apache24/data/inc/PassHash.class.php on line 94
[Tue Jul 10 17:53:12.450243 2018] [:error] [pid 30450] [client 192.168.1.46:51395] PHP Fatal error:  Call to undefined function hash_equals() in /usr/local/www/apache24/data/inc/PassHash.class.php on line 94
[Tue Jul 10 18:08:32.679739 2018] [mpm_prefork:notice] [pid 30448] AH00169: caught SIGTERM, shutting down
[Tue Jul 10 18:17:33.187632 2018] [mpm_prefork:notice] [pid 39279] AH00163: Apache/2.4.29 (FreeBSD) PHP/5.6.32 configured -- resuming normal operations
[Tue Jul 10 18:17:33.188035 2018] [core:notice] [pid 39279] AH00094: Command line: '/usr/local/sbin/httpd -D NOHTTPACCEPT'
[Tue Jul 10 18:17:33.690721 2018] [:error] [pid 39292] [client 192.168.1.46:51467] PHP Fatal error:  Call to undefined function hash_equals() in /usr/local/www/apache24/data/inc/PassHash.class.php on line 94
[Tue Jul 10 18:18:05.591691 2018] [mpm_prefork:notice] [pid 39279] AH00169: caught SIGTERM, shutting down
[Tue Jul 10 18:18:05.990937 2018] [mpm_prefork:notice] [pid 39889] AH00163: Apache/2.4.29 (FreeBSD) PHP/5.6.32 configured -- resuming normal operations
[Tue Jul 10 18:18:05.991292 2018] [core:notice] [pid 39889] AH00094: Command line: '/usr/local/sbin/httpd -D NOHTTPACCEPT'
[Tue Jul 10 18:18:13.667691 2018] [:error] [pid 39890] [client 192.168.1.46:51470] PHP Fatal error:  Call to undefined function hash_equals() in /usr/local/www/apache24/data/inc/PassHash.class.php on line 94
[Tue Jul 10 18:18:16.175050 2018] [:error] [pid 39891] [client 192.168.1.46:51471] PHP Fatal error:  Call to undefined function hash_equals() in /usr/local/www/apache24/data/inc/PassHash.class.php on line 94
[Tue Jul 10 18:21:42.844469 2018] [:error] [pid 39892] [client 192.168.1.46:51494] PHP Fatal error:  Call to undefined function hash_equals() in /usr/local/www/apache24/data/inc/PassHash.class.php on line 94
[Tue Jul 10 18:21:46.137815 2018] [:error] [pid 39893] [client 192.168.1.46:51497] PHP Fatal error:  Call to undefined function hash_equals() in /usr/local/www/apache24/data/inc/PassHash.class.php on line 94
[Tue Jul 10 18:22:18.210284 2018] [:error] [pid 39894] [client 192.168.1.46:51500] PHP Fatal error:  Call to undefined function hash_equals() in /usr/local/www/apache24/data/inc/PassHash.class.php on line 94, referer: http://192.168.1.13/dokuwiki-downloader.php?go=3
[Tue Jul 10 18:22:23.564270 2018] [:error] [pid 39890] [client 192.168.1.46:51507] PHP Fatal error:  Call to undefined function hash_equals() in /usr/local/www/apache24/data/inc/PassHash.class.php on line 94
[Tue Jul 10 18:22:46.920419 2018] [:error] [pid 39897] [client 192.168.1.46:51511] PHP Fatal error:  Call to undefined function hash_equals() in /usr/local/www/apache24/data/inc/PassHash.class.php on line 94, referer: http://192.168.1.13/dokuwiki-downloader.php?go=3
[Tue Jul 10 18:24:12.614839 2018] [mpm_prefork:notice] [pid 39889] AH00169: caught SIGTERM, shutting down
[Tue Jul 10 18:24:24.142348 2018] [mpm_prefork:notice] [pid 43948] AH00163: Apache/2.4.29 (FreeBSD) PHP/5.6.32 configured -- resuming normal operations
[Tue Jul 10 18:24:24.142716 2018] [core:notice] [pid 43948] AH00094: Command line: '/usr/local/sbin/httpd -D NOHTTPACCEPT'
[Tue Jul 10 18:24:25.821184 2018] [:error] [pid 43966] [client 192.168.1.46:51531] PHP Fatal error:  Call to undefined function hash_equals() in /usr/local/www/apache24/data/inc/PassHash.class.php on line 94
[Tue Jul 10 18:47:11.082185 2018] [:error] [pid 43970] [client 192.168.1.46:51851] PHP Fatal error:  Call to undefined function hash_equals() in /usr/local/www/apache24/data/inc/PassHash.class.php on line 94
[Tue Jul 10 18:47:45.607740 2018] [:error] [pid 43971] [client 192.168.1.46:51865] script '/usr/local/www/apache24/data/dokuwiki-downloader.php' not found or unable to stat
[Tue Jul 10 18:47:50.665018 2018] [:error] [pid 43972] [client 192.168.1.46:51866] script '/usr/local/www/apache24/data/dokuwiki-downloader.php' not found or unable to stat
[Tue Jul 10 18:48:28.337027 2018] [:error] [pid 43968] [client 192.168.1.46:51867] script '/usr/local/www/apache24/data/dokuwiki-downloader.php' not found or unable to stat
[Tue Jul 10 18:48:31.526092 2018] [:error] [pid 43968] [client 192.168.1.46:51867] PHP Fatal error:  Call to undefined function hash_equals() in /usr/local/www/apache24/data/inc/PassHash.class.php on line 94
[Tue Jul 10 18:48:33.924077 2018] [:error] [pid 43966] [client 192.168.1.46:51868] PHP Fatal error:  Call to undefined function hash_equals() in /usr/local/www/apache24/data/inc/PassHash.class.php on line 94
[Tue Jul 10 18:48:34.894460 2018] [:error] [pid 43970] [client 192.168.1.46:51869] PHP Fatal error:  Call to undefined function hash_equals() in /usr/local/www/apache24/data/inc/PassHash.class.php on line 94
[Tue Jul 10 19:04:47.211775 2018] [:error] [pid 43966] [client 192.168.1.46:51953] PHP Fatal error:  Call to undefined function hash_equals() in /usr/local/www/apache24/data/inc/PassHash.class.php on line 94, referer: http://192.168.1.13/dokuwiki-downloader.php?go=3

I took a look at the files and lines referenced to, but I cannot make any sense out of it. Something wrong with the php setup?
Avatar
turnermm (Moderator) #4
Member since Oct 2009 · 4293 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
See this:  https://forum.dokuwiki.org/post/60785
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Avatar
dejhost #5
Member for 2 months · 10 posts
Group memberships: Members
Show profile · Link to this post
Yes, Sir!    ;-)

pkg install redis devel/php72-json security/php72-hash

[...]
[dokuwiki] Fetching php56-5.6.36_1.txz: 100%    3 MiB 387.5kB/s    00:08       
[dokuwiki] [1/7] Installing libargon2-20171227...                              
[dokuwiki] [1/7] Extracting libargon2-20171227: 100%                           
[dokuwiki] [2/7] Deinstalling php56-5.6.32...                                  
[dokuwiki] [2/7] Deleting files for php56-5.6.32: 100%                         
[dokuwiki] [3/7] Installing php72-7.2.7...                                     
[dokuwiki] [3/7] Extracting php72-7.2.7: 100%                                  
[dokuwiki] [3/7] Installing php56-5.6.36_1...                                  
pkg: php56-5.6.36_1 conflicts with php72-7.2.7 (installs files into the same pla
ce).  Problematic file: /usr/local/bin/php

The apache error log shows:
[Wed Jul 11 12:24:00.034150 2018] [:error] [pid 64841] [client 192.168.1.10:30274] script '/usr/local/www/apache24/data/dokuwiki-downloader.php' not found or unable to stat
[Wed Jul 11 12:24:23.303416 2018] [:error] [pid 43972] [client 192.168.1.10:49977] script '/usr/local/www/apache24/data/dokuwiki-downloader.php' not found or unable to stat
[Wed Jul 11 12:24:27.368020 2018] [:error] [pid 43972] [client 192.168.1.10:49977] PHP Fatal error:  Call to undefined function hash_equals() in /usr/local/www/apache24/data/inc/PassHash.class.php on line 94
[Wed Jul 11 12:24:34.299628 2018] [:error] [pid 64995] [client 192.168.1.10:26917] script '/usr/local/www/apache24/data/dokuwiki-downloader.php' not found or unable to stat
[Wed Jul 11 12:26:48.095561 2018] [:error] [pid 28509] [client 192.168.1.10:16003] script '/usr/local/www/apache24/data/dokuwiki-downloader.php' not found or unable to stat
[Wed Jul 11 12:42:35.946217 2018] [:error] [pid 28510] [client 192.168.1.10:33910] script '/usr/local/www/apache24/data/dokuwiki-downloader.php' not found or unable to stat
[Wed Jul 11 12:42:41.618150 2018] [:error] [pid 28511] [client 192.168.1.10:33912] script '/usr/local/www/apache24/data/dokuwiki-downloader.php' not found or unable to stat
[Wed Jul 11 12:45:12.085809 2018] [:error] [pid 43972] [client 192.168.1.10:24008] script '/usr/local/www/apache24/data/dokuwiki-downloader.php' not found or unable to stat
[Wed Jul 11 12:45:20.662301 2018] [:error] [pid 43968] [client 192.168.1.10:20340] PHP Fatal error:  Call to undefined function hash_equals() in /usr/local/www/apache24/data/inc/PassHash.class.php on line 94
[Wed Jul 11 12:45:22.532674 2018] [:error] [pid 43970] [client 192.168.1.10:16607] PHP Fatal error:  Call to undefined function hash_equals() in /usr/local/www/apache24/data/inc/PassHash.class.php on line 94
[Wed Jul 11 12:48:25.842201 2018] [mpm_prefork:notice] [pid 43948] AH00169: caught SIGTERM, shutting down
[Wed Jul 11 12:48:26.334589 2018] [mpm_prefork:notice] [pid 36628] AH00163: Apache/2.4.29 (FreeBSD) PHP/5.6.32 configured -- resuming normal operations
[Wed Jul 11 12:48:26.334829 2018] [core:notice] [pid 36628] AH00094: Command line: '/usr/local/sbin/httpd -D NOHTTPACCEPT'
[Wed Jul 11 12:48:37.988189 2018] [:error] [pid 36632] [client 192.168.1.10:65118] PHP Fatal error:  Call to undefined function hash_equals() in /usr/local/www/apache24/data/inc/PassHash.class.php on line 94
[Wed Jul 11 12:48:48.659759 2018] [:error] [pid 36630] [client 192.168.1.10:19977] script '/usr/local/www/apache24/data/dokuwiki-downloader.php' not found or unable to stat
[Wed Jul 11 12:48:56.588095 2018] [:error] [pid 36631] [client 192.168.1.10:21413] PHP Fatal error:  Call to undefined function hash_equals() in /usr/local/www/apache24/data/inc/PassHash.class.php on line 94
Avatar
dejhost #6
Member for 2 months · 10 posts
Group memberships: Members
Show profile · Link to this post
Should I delete the "problematic" file?
Avatar
turnermm (Moderator) #7
Member since Oct 2009 · 4293 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
The 'problematic' file appears to be your php executable.  I've only had limited experience with freebsd, so I'm not entirely sure what is happening here with your package manager.  Did you uninstall php 5.6, then install 7.2., then reinstall 5.6 on top of 7.2--because this seems to be what happened and what probably accounts for why bin/php is problematic, presumably corrupt.


All you had to do before was to install the missing packages for your version  of php.
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
This post was edited on 2018-07-11, 18:04 by turnermm.
Avatar
dejhost #8
Member for 2 months · 10 posts
Group memberships: Members
Show profile · Link to this post
I did install the missing php dependencies, but it didn't do the trick: there was no response on the web interface :-(

By now, I followed various guides I found on the web, but none of them led to success. :-(

In this guide:
https://forum.dokuwiki.org/thread/159…?unb855sess=afcmb6…, the command "create" is not recognized:
create  /usr/local/etc/apache24/Includes/php.conf
. I also followed a guide I wrote for myself, when somebody installed dokuwiki for me on my system a year ago:
=====Install DokuWiki on FreeNAS=====

==== Jail ====
  - Install Jail with standard settings
  - Use ssh to login into the jail. root & password
  - pkg update
  - /etc/rc.conf insert/edit line: "sshd_enable = yes"
  - /etc/ssh/sshd_config insert/edit line: "permit rootlogin = yes"
  - Restart jail

==== My SQL ====
  - adduser xxx yyy
  - pkg update
  - pkg upgrade
  - pkg install mysql56-server
  - vi /etc/rc_conf    new entry: "mysql_enable = "Yes"
  - service mysql-server onestart
  - Check if service is running: ps ax
  - usr/local/bin/mysql_secure_installation


==== My Apache 24 ====
  - pkg install apache24
  - pkg install mod_php56
  - vi /usr/local/etc/apache24/httpd.conf (laed php module):
    #VArious default Services
<IfModule php5_module>                                                                                                             
 DirectoryIndex index.php
 AddType application/x-httpd-php .php   
AddType application/x-httpd-php .php5 .php4 .php .php3 .php2 .phtml
</IfModule>     

==== Browser ====
  -  ip-adress/test.php

==== Configuration ====
  - php session module extend enable
  - usr/local/etc
  - pkg install php70-session
  - fetch https://raw.githubusercontent.com/splitbrain/dokuwiki-down…
  - pkg install php70
  - pkg install php70-gd

The first task in the Configuration
php session module extend enable
is not clear to me. Ignoring this, I neither get access to the test.php file, nor the dokuwiki installer...

Any hint much appreciated!
Avatar
turnermm (Moderator) #9
Member since Oct 2009 · 4293 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
I'm afraid I can't be of any further help.  First, I'm not sure why you need to set dokuwiki in a jail.  2. I don't know why the instructions suggest setting up apache for php 5.6 and then its having you install php7.  Create is not a command but an instruction to you to make a file by that name and path.  The contents listed go in php.conf.

You are following too many sets of instructions. Why don't you start from scratch and follow the set of instructions you found in this link:
   https://forum.dokuwiki.org/thread/15963
Apparently it works and it is current.
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Avatar
dejhost #10
Member for 2 months · 10 posts
Group memberships: Members
Show profile · Link to this post
Thank you for you input, turnermm.

I did as you advised and replied to the post  https://forum.dokuwiki.org/thread/15963
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2018-09-23, 14:34:35 (UTC +02:00)