Hello,
I am running a webserver with HHVM (used by e.g. MediaWiki).
After installing MyDBR I can not for the life of me get it to work. I tried adding a location specific for MyDBR and run it through PHP-FPM instead of HHVM (as HHVM and Ioncube are non-compatible).
I've downloaded and ioncube modules and added them to /etc/php.ini but I am never able to get passed the initial installation step where MyDBR just continues to tell me to install ioncube - which is installed and OK.
From MyDBR:
Copy loader to extension directory ToDo
From the ionCube installation package copy the file ioncube_loader_lin_5.6.so to directory /usr/lib64/hhvm/extensions/
Add loader to php.ini ToDo
Add the following line to <php.ini>
zend_extension = /usr/lib64/hhvm/extensions/ioncube_loader_lin_5.6.so
I do NOT have PHP 5.6, I am running 5.4 and using that information causes:
# php -v
Failed loading /usr/lib64/hhvm/extensions/ioncube_loader_lin_5.6.so: /usr/lib64/hhvm/extensions/ioncube_loader_lin_5.6.so: undefined symbol: zend_execute_ex
So I changed it to _5.4.so and this tells me:
# php -v
PHP 5.4.16 (cli) (built: Jun 23 2015 21:17:27)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
with the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured) v5.1.1, Copyright (c) 2002-2016, by ionCube Ltd.
Looks good right?
I've tried a bunch of different nginx settings but I cannot get it working as MyDBR keeps telling me to fix Ioncube and my PHP states its all good.
location /mydbr {
# root /usr/share/nginx/html/mydbr;
include fastcgi_params;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
# fastcgi_param SCRIPT_FILENAME /usr/share/nginx/html/mydbr/$fastcgi_script_name;
# fastcgi_param SCRIPT_FILENAME $document_root/mydbr/index.php;
fastcgi_param SERVER_NAME $host;
fastcgi_pass 127.0.0.1:9000;
}
My PHP-FPM port is 9000 and HHVM is 8000.
Am I doing something wrong with my Nginx config here?
Does anybody have a working example?
Thanks!