<div dir="ltr"><div><div>Thank you, Predrag and Simon, for your prompt reply in resolving the issue!<br><br></div>Thanks,<br></div>Jarod<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, May 4, 2018 at 1:39 PM, Predrag Punosevac <span dir="ltr"><<a href="mailto:predragp@andrew.cmu.edu" target="_blank">predragp@andrew.cmu.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Simon Heath <<a href="mailto:sheath@andrew.cmu.edu">sheath@andrew.cmu.edu</a>> wrote:<br>
<br>
> root@lweb # tail /var/log/access.log<br>
> 192.168.10.254 - - [04/May/2018:12:36:21 -0400] "GET / HTTP/1.0" 500 0 "-"<br>
> "Mozilla/5.0 (X11; Linux x86_64; rv:59.0) Gecko/20100101 Firefox/59.0"<br>
> <br>
<br>
Great clue!!! This was broken by FreeBSD dokuwiki or php56 port<br>
maintainer. The simple<br>
<br>
pkg install php56-json<br>
<br>
fixed. Apparently somebody removed php56-json as DokuWiki dependency.<br>
<br>
Thanks Simon!<br>
<br>
Predrag<br>
<br>
<br>
> root@lweb # tail -f /var/log/error.log<br>
> 2018/05/04 12:35:57 [error] 56082#100810: *200 FastCGI sent in stderr: "PHP<br>
> message: PHP Fatal error: Call to undefined function hash_equals() in<br>
> /usr/local/www/dokuwiki/inc/<wbr>PassHash.class.php on line 94" while reading<br>
> response header from upstream, client: 192.168.10.254, server:<br>
> <a href="http://lweb.dmz.autonlab.org" rel="noreferrer" target="_blank">lweb.dmz.autonlab.org</a>, request: "GET / HTTP/1.0", upstream:<br>
> "fastcgi://unix:/var/run/php-<wbr>fpm.sock:", host: "<a href="http://www.autonlab.org" rel="noreferrer" target="_blank">www.autonlab.org</a>"<br>
> <br>
> Function it's not finding: <a href="http://php.net/manual/en/function.hash-equals.php" rel="noreferrer" target="_blank">http://php.net/manual/en/<wbr>function.hash-equals.php</a><br>
> <br>
> Minimum version 5.6.0, it should be there but it isn't:<br>
> <br>
> root@lweb:/usr/local/etc/nginx # php<br>
> <?php hash_equals() ?><br>
> PHP Fatal error: Call to undefined function hash_equals() in - on line 1<br>
> root@lweb:/usr/local/etc/nginx # php --version<br>
> PHP 5.6.35 (cli) (built: Apr 10 2018 01:14:01)<br>
> Copyright (c) 1997-2016 The PHP Group<br>
> Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies<br>
> <br>
> Looks like `hash_equals` is part of the Hash package, which technically an<br>
> extension, though it says it's compiled into php by default and (maybe?)<br>
> can't be left out.<br>
> <br>
> root@lweb:/usr/local/etc # php -i | grep -i extension_dir<br>
> extension_dir => /usr/local/lib/php/20131226 => /usr/local/lib/php/20131226<br>
> <br>
> I don't know how you compiled php for this, since it doesn't seem to be in<br>
> /usr/ports. But looking at the Makefile in /usr/ports/lang/php56 in the<br>
> host directory, it implies the "hash" extension isn't installed by default<br>
> (maybe). Running "php -m" prints out the modules it has but doesn't list<br>
> "hash". ("json" apparently is also necessary.)<br>
> <br>
> This makes no sense, but it appears to be what's going on. Hopefully we<br>
> just have to compile php with the right options?<br>
> <br>
> Simon<br>
> <br>
> On Fri, May 4, 2018 at 12:31 PM, Simon Heath <<a href="mailto:sheath@andrew.cmu.edu">sheath@andrew.cmu.edu</a>> wrote:<br>
> <br>
> > Ok, I'll check it out.<br>
> ><br>
> > On Fri, May 4, 2018 at 12:26 PM, Predrag Punosevac <<br>
> > <a href="mailto:predragp@andrew.cmu.edu">predragp@andrew.cmu.edu</a>> wrote:<br>
> ><br>
> >> Hi Simon,<br>
> >><br>
> >> I tried to reach <a href="https://www.autonlab.org" rel="noreferrer" target="_blank">https://www.autonlab.org</a>. The website is not loading.<br>
> >> There is nothing wrong with the proxy server as you can check by loading<br>
> >><br>
> >> <a href="https://www.autonlab.org/ipe" rel="noreferrer" target="_blank">https://www.autonlab.org/ipe</a><br>
> >><br>
> >> or<br>
> >><br>
> >> <a href="https://www.autonlab.org/sdss/" rel="noreferrer" target="_blank">https://www.autonlab.org/sdss/</a><br>
> >><br>
> >> I went to the <a href="http://warden.dmz.autonlab.org" rel="noreferrer" target="_blank">warden.dmz.autonlab.org</a> (jail host which runs<br>
> >> <a href="http://lweb.dmz.autonlab.org" rel="noreferrer" target="_blank">lweb.dmz.autonlab.org</a>). Host is OK. Nothing wrong with jails as well<br>
> >><br>
> >> root@warden:~ # iocell list<br>
> >> JID UUID BOOT STATE TAG<br>
> >> TYPE IP4 RELEASE<br>
> >> 6 600ec005-17f4-11e8-a693-<wbr>0cc47aab0128 on up<br>
> >> <a href="http://hugo.dmz.autonlab.org" rel="noreferrer" target="_blank">hugo.dmz.autonlab.org</a> basejail 192.168.10.93 11.1-RELEASE<br>
> >> 8 b4b45c86-c4ed-11e7-b09c-<wbr>0cc47a6baaa0 on up<br>
> >> <a href="http://lweb.dmz.autonlab.org" rel="noreferrer" target="_blank">lweb.dmz.autonlab.org</a> basejail 192.168.10.91 11.1-RELEASE<br>
> >><br>
> >><br>
> >> I logged into the <a href="http://lweb.dmz.autonlab.org" rel="noreferrer" target="_blank">lweb.dmz.autonlab.org</a><br>
> >><br>
> >> iocell console <a href="http://lweb.dmz.autonlab.org" rel="noreferrer" target="_blank">lweb.dmz.autonlab.org</a><br>
> >><br>
> >> root@lweb:~ # pwd<br>
> >> /root<br>
> >><br>
> >> nginx and php-fpm is running normally. Something is either broken with<br>
> >> php interpreter or dokuwiki itself which also appears OK.<br>
> >><br>
> >> root@lweb:/usr/local/www/<wbr>dokuwiki # ls<br>
> >> .htaccess.dist bin findbadphp.php<br>
> >> COPYING conf inc<br>
> >> README conf-original index.php<br>
> >> README-Predrag.txt data install.php<br>
> >> VERSION data-original lib<br>
> >> _media doku.php vendor<br>
> >> auton.png feed.php<br>
> >><br>
> >><br>
> >> I am running here out of ideas and my brain is clouded by the lack of<br>
> >> sleep. Can you have a quick look. This is super urgent.<br>
> >><br>
> >> Predrag<br>
> >><br>
> ><br>
> ><br>
> ><br>
> > --<br>
> > Simon Heath, Research Programmer and Analyst<br>
> > Robotics Institute - Auton Lab<br>
> > Carnegie Mellon University<br>
> > <a href="mailto:sheath@andrew.cmu.edu">sheath@andrew.cmu.edu</a><br>
> ><br>
> <br>
> <br>
<span class="HOEnZb"><font color="#888888">> <br>
> -- <br>
> Simon Heath, Research Programmer and Analyst<br>
> Robotics Institute - Auton Lab<br>
> Carnegie Mellon University<br>
> <a href="mailto:sheath@andrew.cmu.edu">sheath@andrew.cmu.edu</a><br>
</font></span></blockquote></div><br></div>