May 23, 2013, 06:04:30 PM

Login with username, password and session length

FORUM POSTING GUIDELINES - Please read and follow them.

Pages: [1]
  Print  
Author Topic: PHP 5.2.17 > 5.3.10 upgrade & Zend/Ioncube issues  (Read 509 times)
Steve Wyant
Newbie
*
Offline Offline

Posts: 9


« on: July 17, 2012, 06:56:22 PM »

My Jreviews installation is currently on a shared server (Hostgator reseller) with PHP 5.2.17 installed. I need to install another plugin that requires PHP 5.3. The host issues this warning regarding the upgrade:

Quote
Please keep in mind: Using PHP 5.3 will break any sites requiring Zend or ioncube that were encoded with PHP 5.2. We recommend you check with the application developers to see if they have a 5.3 version available.

They also state the upgrade step as:
Quote
We currently have 5.3.10 (or higher) installed on all servers. A handler for PHP 5.3 is added to our shared and reseller servers for those who wish to utilize it. In order to utilize this handler, you will need to add the following code to your .htaccess file:
# Use PHP 5.3
AddType application/x-httpd-php53 .php

So before I upgrade my PHP to 5.3, what steps do I need to take so Jreviews does not break?

Specs: Jreviews Version: 2.3.19.213; Joomla 2.5.4
Logged
Alejandro
Global Moderator
Administrator
Hero Member
*
Offline Offline

Posts: 28411


« Reply #1 on: July 17, 2012, 07:23:33 PM »

The important thing is that the ionCube loaders need to be upgraded to the php 5.3 version. JReviews works fine in both php 5.2 and php 5.3 as long as the correct loaders are used.
Logged

http://www.reviewsforjoomla.com/testimonials Leave a testimonial for JReviews
Steve Wyant
Newbie
*
Offline Offline

Posts: 9


« Reply #2 on: July 19, 2012, 02:02:48 PM »

Is that handled in the PHP.ini file?

It looks like the current loader is here:
Code:
zend_extension="/usr/local/IonCube/ioncube_loader_lin_5.2.so"

So would I change it to:
Code:
zend_extension="/usr/local/IonCube/ioncube_loader_lin_5.3.so"

If the above is correct, is there anything else required? I see another reference to 5.2 under [ZEND]:
Code:
extension="ixed.5.2.lin"
zend_extension="/usr/local/Zend/lib/Optimizer-3.3.9/php-5.2.x/ZendOptimizer.so"

Does that need to be revised to 5.3 as well?
Logged
Kristian
Global Moderator
Hero Member
*
Offline Offline

Posts: 9560



WWW
« Reply #3 on: July 19, 2012, 04:02:50 PM »

You only need to change this line:
zend_extension="/usr/local/IonCube/ioncube_loader_lin_5.2.so"

to this:
zend_extension="/usr/local/IonCube/ioncube_loader_lin_5.3.so"

Of course, the ioncube_loader_lin_5.3.so file needs to exist in /usr/local/IonCube/ folder.
Logged

Steve Wyant
Newbie
*
Offline Offline

Posts: 9


« Reply #4 on: July 20, 2012, 04:29:00 PM »

As it turned out, all I needed to do was add the php5.3 code to the .htaccess file, and remove (renamed) the php.ini file.

I tried that because I created a new hosting account under my Hostgator reseller plan, revised the .htaccess file for php5.3, and did a fresh install of Joomla 2.5.4 (using QuickInstall) to see what the php.ini file contained. To my surprise, not a single php.ini file could be found! So I removed it on my live site's directory, and everything has gone swimmingly (so far).

Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!