We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
Ubuntu Ioncube Loaders Guide
Ubuntu Ioncube Loaders Guide
So, I recently set up a server with VestaCP and set it up for my hosting company.
Now, normally, for apps that use ioncube loaders... you'd need to do some server work to get ioncube loaders working for WHMCS, Blesta, etc.
To do that on Ubuntu, you need to do the following:
Download Ioncube Loaders for your system. If you want to do web-based, I'd use the PHP script version in a zip so you can upload it, view it and follow its guide. It will ask you to copy the .so for your respective PHP version.
To find out what your version of PHP is, do the following:
You should get something like this:
Now, the stumbling block in actually getting the loaders to work when restarting apache2 and it's still complaining it's not there despite copying the .so to where it needs to be and uploading the 20-ioncube.ini to the server.
If you checked /var/log/apache2/error_log and saw that it's complaining that the extension needs to be at the top of php.ini... you're wondering "Wait, didn't I just do that with the 20-ioncube.ini file?!?!" Yes, you did, but for some reason it insists it needs to be at the top. So, to fix that, we do the following steps:
Now we edit the php.ini file accordingly.
Right beneath [PHP] throw this there at the top:
Your php.ini should now look like this:
Finally: Restart apache2!
Check your site and the loader wizard and make sure it actually works!
Now, normally, for apps that use ioncube loaders... you'd need to do some server work to get ioncube loaders working for WHMCS, Blesta, etc.
To do that on Ubuntu, you need to do the following:
Download Ioncube Loaders for your system. If you want to do web-based, I'd use the PHP script version in a zip so you can upload it, view it and follow its guide. It will ask you to copy the .so for your respective PHP version.
To find out what your version of PHP is, do the following:
Code: Select all
php --version
Code: Select all
root@eidolos:/etc/php5/apache2# php --version
PHP 5.5.9-1ubuntu4.6 (cli) (built: Feb 13 2015 19:17:11)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologies
If you checked /var/log/apache2/error_log and saw that it's complaining that the extension needs to be at the top of php.ini... you're wondering "Wait, didn't I just do that with the 20-ioncube.ini file?!?!" Yes, you did, but for some reason it insists it needs to be at the top. So, to fix that, we do the following steps:
Code: Select all
cd /etc/php5/apache2
Code: Select all
nano php.ini
Code: Select all
zend_extension = /usr/lib/php5/20121212/ioncube_loader_lin_5.5.so
Code: Select all
[PHP]
zend_extension = /usr/lib/php5/20121212/ioncube_loader_lin_5.5.so
;;;;;;;;;;;;;;;;;;;
; About php.ini ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.
; PHP attempts to find and load this configuration from a number of locations.
; The following is a summary of its search order:
; 1. SAPI module specific location.
; 2. The PHPRC environment variable. (As of PHP 5.2.0)
; 3. A number of predefined registry keys on Windows (As of PHP 5.2.0)
; 4. Current working directory (except CLI)
; 5. The web server's directory (for SAPI modules), or directory of PHP
; (otherwise in Windows)
; 6. The directory from the --with-config-file-path compile time option, or the
; Windows directory (C:\windows or C:\winnt)
; See the PHP docs for more specific information.
; http://php.net/configuration.file
Code: Select all
service apache2 restart
Re: Ubuntu Ioncube Loaders Guide
Thanks, nice guide.
But record about ioncube, we can add in /etc/php5/conf.d/ioncube.ini too.
But record about ioncube, we can add in /etc/php5/conf.d/ioncube.ini too.
Re: Ubuntu Ioncube Loaders Guide
That needs to be included by default, then. Because VestaCP doesn't come with ioncube loaders enabled by default. Or with the ioncube loaders even in place, for that matter.skurudo wrote:Thanks, nice guide.
But record about ioncube, we can add in /etc/php5/conf.d/ioncube.ini too.
Re: Ubuntu Ioncube Loaders Guide
Ioncube loader it's extension rarer then zend, not often need.
Re: Ubuntu Ioncube Loaders Guide
You should include an option in the web interface whether or not to enable/disable it, then. That way users have the choice of loading the ioncube loaders or not, just as cPanel does.skurudo wrote:Ioncube loader it's extension rarer then zend, not often need.
Re: Ubuntu Ioncube Loaders Guide
Please add this idea to https://bugs.vestacp.com/KeiroD wrote:You should include an option in the web interface whether or not to enable/disable it, then. That way users have the choice of loading the ioncube loaders or not, just as cPanel does.
Re: Ubuntu Ioncube Loaders Guide
Done. Now it's up to you guys to add it. :pskurudo wrote:Please add this idea to https://bugs.vestacp.com/KeiroD wrote:You should include an option in the web interface whether or not to enable/disable it, then. That way users have the choice of loading the ioncube loaders or not, just as cPanel does.