Installing Ioncube is successful in webmin but cannot see it browsing virtualmin virtual server http://foo.com/info.php

3 posts / 0 new
Last post
#1 Fri, 10/13/2017 - 20:01
adamjedgar

Installing Ioncube is successful in webmin but cannot see it browsing virtualmin virtual server http://foo.com/info.php

Hi guys lots of questions...oh well thats a newbies game i guess

I follow the howtoforge tutorial "How To Install Ioncube Loader on CentOS, Debian and Ubuntu"

Installing Ioncube was successful in Webmin (see results of php-v below) but cannot see it browsing virtualmin virtual server http://foo.com/info.php

In command shell my Webmin test is as follows

:~$ php -v
PHP 7.0.19-1 (cli) (built: May 11 2017 14:04:47) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
    with the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured) v10.0.3, Copyright (c) 2002-2017, by ionCube Ltd.
    with Zend OPcache v7.0.19-1, Copyright (c) 1999-2017, by Zend Technologies


However when i browse to my virtualmin virtual server billing.foo.com.au/info.php the ioncube extension is missing

This program makes use of the Zend Scripting Language Engine:
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
    with Zend OPcache v7.0.19-1, Copyright (c) 1999-2017, by Zend Technologies


I believe i need to enable ioncube loader for the virutalmin virtual server (billing.foo.com) but am not sure how to do this?

Is it just a matter of editing the virtual servers own php.ini file? (i will try this whilst i wait for help)

EDIT...ok so i am not sure about the directory i am using...when i installed ioncube in webmin i was doing it as the server administrator for webmin. This is a different directory to a virtual server. Do i need to actually install ioncube specifically using the command shell interface from virtualmin virtual server administrator rather than the webmin root user?

For exmaple...the current directory for ioncube loader after webmin install is zend_extension = /usr/lib/php/20151012/ioncube_loader_lin_7.0.so

Will that same directory reference work on a virtualmin virtual server?

Or do i need to manually copy the ioncube loader over to that same directory on the virtual server "billing.foo.com" so the reference and therefore ioncube loader works?

Fri, 10/13/2017 - 20:19
adamjedgar

genius...i have it working!

Step 1. Follow HowToForge Tutorial

Step 2. Add the following line to Virtualmin>Services>PHP 7.0 Configuration>Edit Configuration Manually

zend_extension = /usr/lib/php/20151012/ioncube_loader_lin_7.0.so

substituting /20151012 with your unique one

Step 3. Restart apache

Works for me!

AJECreative is the home of $5 webhosting, $15/month VPS servers (1cpu,1gb RAM, 25GB storage)
Centos7, Debian9, or Ubuntu18LTS
Available Control Panels = Centos-Webpanel, Cyberpanel, or Virtualmin

https://ajecreative.com.au

Wed, 01/30/2019 - 10:22
rich-s

Hi Adam Thanks for this, it's exactly what I was looking for as I needed Ioncube to get a 3rd party chatroom running. I followed your instructions to the letter and it worked perfectly for me too :)

Topic locked