HHVM Testing J3.7B3

104 views
Skip to first unread message

Walt Sorensen aka photodude

unread,
Feb 24, 2017, 8:20:05 AM2/24/17
to Joomla! CMS Development
J3.7 is the first version that could qualify for official HHVM support as we have passing unit tests in staging since HHVM 3.15.3+ was released fixing bugs in HHVM that blocked passing tests. 

For official HHVM support,  we require install and use testing. If anyone is interested in HHVM and are willing to do user testing on a live server your help would be appreciated.

All the best,

Tom Hutchison

unread,
Feb 27, 2017, 2:02:39 PM2/27/17
to Joomla! CMS Development


I set up a minimal Ubuntu Server 16.04 VM on KVM, then installed Nginx, HHVM and MySQL



Installed Joomla 3.7-beta3 w/ the Learn J files just fine. Here is some of the server info dump.

=============
System Information
=============
php: Linux hhvm 4.4.0-64-generic #85-Ubuntu SMP Mon Feb 20 11:50:30 UTC 2017 x86_64
dbversion: 5.7.17-0ubuntu0.16.04.1
dbcollation: utf8_general_ci
dbconnectioncollation: utf8mb4_general_ci
phpversion: 5.6.99-hhvm
server: nginx/1.10.0
sapi_name: srv
version: Joomla! 3.7.0-beta3 Beta [ Amani ] 21-February-2017 15:03 GMT
platform: Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT

=============
PHP Information
=============

HHVM Version 3.18.0

Version 3.18.0
Version ID 31800
Debug
Compiler ID tags/HHVM-3.18.0-0-g9b285191feb2bb1558bb6682da135263bd2a9e60
Repo Schema cc987335f4691fa6ed98336c2378d8e71a751b22
PHP Version 5.6.99-hhvm
Zend Version 2.4.99
uname Linux hhvm 4.4.0-64-generic #85-Ubuntu SMP Mon Feb 20 11:50:30 UTC 2017 x86_64

Out of the box, it worked but there is a tweak needed to make Nginx and HHVM play nice with "domainname/index.php/the-path/to/the/page" URLs which the default in a J! install is set to "Search Engine Friendly URLs."  In the end, this config was just a guess based on the errors and logs. It started working when I changed the hhvm.conf file to this:

joomla@hhvm:~$ cat /etc/nginx/hhvm.conf
location ~ [^/]\.(hh|php)(/|$) {
        fastcgi_keep_conn on;
        fastcgi_pass 127.0.0.1:9000;
        fastcgi_index  index.php;
        fastcgi_split_path_info ^(.+\.php)(/.+)$;
        fastcgi_param  SCRIPT_FILENAME $document_root$fastcgi_script_name;
        include        fastcgi_params;
}
 
I didn't test full URL rewrite yet, but that isn't a .htaccess function, Nginx wants rewrites in the config files of the host(s). I'm going to clone the VM where it is right now and make a copy of it as a VirtualBox .vdi so if anyone wants to test it further let me know. I'll just have to figure out where I can put the .vdi image for download.

Tom

Walt Sorensen aka photodude

unread,
Mar 6, 2017, 2:29:51 PM3/6/17
to Joomla! CMS Development
Thanks Tom, 

Hopefully, we can get some more testers before the release (then maybe even live sites running on HHVM).

~All the best
Reply all
Reply to author
Forward
0 new messages