jReviews Support Forum

General => ionCube encoding questions => Topic started by: Harrison on March 07, 2008, 08:18:37 PM



Title: Installing ioncube on 1and1 servers
Post by: Harrison on March 07, 2008, 08:18:37 PM
Until now
Until this week it was straight forward to install ioncube on a server hosted with 1and1.  You just uploaded the ioncube file ioncube_loader_lin_5.2.so to the root of your server's hosting directory and the server would automatically find and used it.

Changes to 1and1 setup now stop this working
As of this week 1and1 have started to upgrade their servers, and this includes updating to php 5.2.5.  With this version of php the dl() function has been disabled on the server, and this was needed to make the run-time install of ioncube work.  Therefore if any of you using a 1and1 server have your ioncube install setup by just having the ioncube loader in the root of your hosting space, then it might suddenly stop working once 1and1 get around to upgrading your server.

Thankfully there is a solution.

Installing ioncube
Download the current ioncube package for your server from here (http://"http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.gz").

Upload the file ioncube_loader_lin_5.2.so from this package into the root of your hosting webspace.

Next you need to create a new php.ini file using notepad or any other text editor.  Inside of this file put the following and then save the file:

Code:
zend_extension=/homepages/xx/dxxxxxxxxx/htdocs/ioncube_loader_lin_5.2.so
(Put the relevant parts for your specific server path where I have put the x's.  You can find this path out from your 1and1 control panel).

Then copy this php.ini file onto your server, placing it into the Joomla Administrator directory.  (It needs to be in here as this is the location of the index.php file that is called when the jReviews administration panel is loaded).

And that is it.  Now the server and jReviews should find and load the ioncube loader and allow the jReviews backend to work.


Title: Re: Installing ioncube on 1and1 servers
Post by: yannenater on April 01, 2008, 07:44:08 AM
Hello,

I'm trying to install ioncube on 1and1.fr servers and it doesn't work...

It says :

Quote
Warning: dl() [function.dl]: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20020429//../../../../../homepages/X/xxxxxxxx/htdocs/ioncube/ioncube_loader_lin_4.4.so' - /usr/lib/php/extensions/no-debug-non-zts-20020429//../../../../../homepages/X/xxxxxxxx/htdocs/ioncube/ioncube_loader_lin_4.4.so: cannot open shared object file: No such file or directory in /homepages/X/xxxxxxxx/htdocs/ioncube/ioncube-loader-helper.php on line 411

and

Quote
Run-Time Loading Installation Instructions
Testing Server
Testing whether your system supports run-time loading...


Looking for Loader 'ioncube_loader_lin_4.4.so'

Extensions Dir: /usr/lib/php/extensions/no-debug-non-zts-20020429 (/usr/lib/php/extensions/no-debug-non-zts-20020429)
Relative Path: /../../../../../homepages/X/xxxxxxxx/htdocs/ioncube/
Found Loader: /usr/lib/php/extensions/no-debug-non-zts-20020429/../../../../../homepages/X/xxxxxxxx/htdocs/ioncube/ioncube_loader_lin_4.4.so

 :-\

any idea?


Title: Re: Installing ioncube on 1and1 servers
Post by: Alejandro on April 01, 2008, 07:57:05 AM
Have you tried getting support from your host?


Title: Re: Installing ioncube on 1and1 servers
Post by: yannenater on April 01, 2008, 08:02:10 AM
Actually, no... :P

But is it really nessecary for me to install this version of JReviews if the 2.0 is coming soon?  ;)


Title: Re: Installing ioncube on 1and1 servers
Post by: Harrison on April 09, 2008, 11:24:36 AM
That is very similar to the errors I received after 1and1 upgraded their servers to PHP 5.2.5 because this removed a function required to auto include the ioncube loader.

Did you try the method I outlined above?  Remembering to create a php.ini file with the line shown, but changed to reference the location of the iconcube loader on your server.  However your server seems to need the older 4.4 version of the loader, so just replace the one I've referred to with that version when you are doing it.


Title: Re: Installing ioncube on 1and1 servers
Post by: DeanMarshall on April 28, 2008, 07:34:30 AM

Because on 1and1's servers PHP is run as through a cgi interface the local php.ini settings don't propagate to subfolders. I find it is necessary to put the php.ini file in the root, in /administrator/ and in /administrator/com_jreviews/  . This makes the jReviews admin interface accessible. I'm doing this for a client and can't give it a thorough test on his live site - but I've asked him to report back on any issues.

The only issues I can foresee would be caused by the presence of encoded files in subfolders under the /administrator/com_jreviews/ folder. In this case the php.ini file would need to be copied to these sub-folders too.

So far things are looking good - fortunately this means we won't require 1and1's support staff - because frankly they aren't up to the job.

Dean.


Title: Re: Installing ioncube on 1and1 servers
Post by: eskwire on May 25, 2008, 03:54:55 PM
Hi Harrison,

Thanks so much for your guide.  It save me lots of time.

I had all of the steps except for placing the php.ini file in the Administrator directory.

I moved the file I had created there and everything worked perfect!

Thanks Again!


Title: Re: Installing ioncube on 1and1 servers
Post by: ailema on June 30, 2008, 11:52:19 PM
hmm am not really familiar with  ioncube on 1and1 servers but is this for joomla codes rght?


Title: Re: Installing ioncube on 1and1 servers
Post by: FluidDynamics on October 05, 2008, 10:04:38 AM
This is from the 1and1 Administrator FAQ if anyone needs additional info
(note: they too mention you need the php.ini in each folder):

What's the PHP configuration?

On our Managed Servers PHP is installed as a CGI application. Scripts ending
in ".php" are executed by the PHP-interpreter using your customer ID.

The PHP installation includes the following modules:Module    Version
Expat   1.95.6
Sablotron   1.0
PCRE   4.5
OpenSSL   0.9.6
Libcurl   7.10.3
MySQL Client API   4
IMAP c-Client   4.1
GD   2.0 or higher (FreeType, TTF library, GIF Read/Create, JPG, PNG, WBMP)
GDBM   1.8.0
Zlib   1.2.1


The php.ini file contains the following default values:
upload_max_filesize:20 M
max_execution_time:300
memory_limit:40 M
post_max_size:8 M
SMTP:localhost

The php.ini file should be placed in all the directories that has PHP scripts you
want effected by that php.ini file.

PHP version 5 is available to use with your 1&1 Managed Server


Title: Re: Installing ioncube on 1and1 servers
Post by: FluidDynamics on October 05, 2008, 03:18:46 PM
The following information may be helpful for beginners
(i'm throwing this in here because a fair number of people trying to use ioncube on 1and seem to be navigating here from google for advice:):

1) Which ioncube loader do I download? (from:  http://www.ioncube.com/loaders.php ):

You can find the server information and php info. your hosting company is using from the Joomla administrator's control panel under a menu on the top right: "Help > System info." Often it will be running on an x86 Linux machine.

2) If you don't know how to use FTP (although if this is the case you may want to learn a little more about this.  If you're going to be playing around with a Joomla website, you'll need to know how to move files around from time to time) you can use the "windows installer" package instead of the .zip version.  It includes a little FTP service that will allow you to upload the Ioncube loader to wherever you'd like on the remote server (it creates a folder called "ioncube").

Help is available here on the installer: http://help.ioncube.com/ipf/index.php?page=intro&version=3.0.6&type=remote&locale=en_US

Generally you'll want to have the "ioncube" folder one directory level above any.php files that you're going to be using.  And if you're with 1and1 make sure you place the .ini files as described above.

3) Other interesting information about 1and1, php, and ioncube:

“It's not that they are running php version 4x, they actually run version 5, but they've set it so that files with just a .php extension run in version 4 mode - files with .php5 run with version 5. No clue as to why they are doing it that way.”

http://forum.joomla.org/viewtopic.php?f=430&t=325310&p=1416220

4) Keep in mind that the older this post gets the less relevant this information will be.


Title: Re: Installing ioncube on 1and1 servers
Post by: jpipitone on December 20, 2008, 06:27:16 PM
Hello,

I've followed the instructions and I have the ioncube loader loaded.  Here's the message I get from the ioncube-loader-helper.php:

An ionCube encoded file has been loaded successfully.
Encoded files should now function correctly.

When I click on the jReviews component, all I see is a blank page, and my URL looks like:

sitename.com/administrator/index2.php?option=com_jreviews&url=license&msg=Please%2Benter%2Byour%2Blicense%2Bnumber.


Title: Re: Installing ioncube on 1and1 servers
Post by: Alejandro on December 20, 2008, 06:52:07 PM
A couple of suggestions:

1) Put the ioncube-loader-helper.php file in the /administrator/ folder and run it from there to make sure it's working where it's supposed to. If it's not, you may need to put your php.ini file in /administrator as well

2) Go to this url to finish the installation correctly

sitename.com/administrator/index2.php?option=com_jreviews&url=install



Title: Re: Installing ioncube on 1and1 servers
Post by: Harrison on January 06, 2009, 11:43:04 AM
A quick run through of some of the additional information posted by others to give a bit more information.

1) Which ioncube loader do I download? (from:  http://www.ioncube.com/loaders.php )

As I mentioned in my original post it is the ioncube_loader_lin_5.2.so file is the one needed for 1and1.  This in in the Linux 5.2 ioncube download.

3) Other interesting information about 1and1, php, and ioncube:

“It's not that they are running php version 4x, they actually run version 5, but they've set it so that files with just a .php extension run in version 4 mode - files with .php5 run with version 5. No clue as to why they are doing it that way.”

Yes, it is true that by default 1and1 servers load .php scripts using php4.  To get around this issue and make all scripts run using php5 create a blank text file in notpad and add the following line:

AddType x-mapp-php5 .php

Now save your file as .htaccess  Make sure it has the . at the start and no extension to the filename.  Now upload this to the root of your Joomla site and all php scripts will now load using php5.


Title: Re: Installing ioncube on 1and1 servers
Post by: Harrison on January 06, 2009, 11:45:51 AM
Hello,

I've followed the instructions and I have the ioncube loader loaded...

When I click on the jReviews component, all I see is a blank page, and my URL looks like:

sitename.com/administrator/index2.php?option=com_jreviews&url=license&msg=Please%2Benter%2Byour%2Blicense%2Bnumber.


You do not have the php.ini file in your Joomla/Administrator directory on the server.  Do this so that ioncube can load and run the jReviews admin panel. 

Alternatively this could also be a jReviews licensing issue.  Is your site running on the actual domain you have linked to your license?  And if so do you have a valid key file for your license on your server?