Difference between revisions of "Upgrading JReviews from a PHP 5 server to PHP 7"

From JReviews Documentation
Jump to: navigation, search
Line 1: Line 1:
PHP 7 is a huge upgrade because it comes with significant performance improvements over PHP 5.6. Not only can it run apps up to 2x faster, but it also is a lot more memory efficient. So that translates into a huge performance boost for your site without the need to upgrade the hardware that supports it.
+
PHP 7 is a huge upgrade because it comes with significant performance improvements over PHP 5.6. Not only can it run apps up to 2x faster, but it also is a lot more memory efficient. So that translates into a huge performance boost for your site without the need to upgrade the hardware that supports it. JReviews v2.7.11.2 is the first release of JReviews that is compatible with PHP 7.
  
 
It's important to note that the upgrade to PHP 7 is not mandatory and JReviews will continue to ship for PHP 5 and PHP 7 as a download package. Also when updating remotely, the correct version will be installed depending on whether you are using PHP 5 or PHP 7.  
 
It's important to note that the upgrade to PHP 7 is not mandatory and JReviews will continue to ship for PHP 5 and PHP 7 as a download package. Also when updating remotely, the correct version will be installed depending on whether you are using PHP 5 or PHP 7.  
  
JReviews v2.7.11.2 is the first release of JReviews that is compatible with PHP 7 and there are a few things you need to do in order to get ready to upgrade to PHP 7:
+
'''Steps to upgrade JReviews to PHP 7'''
  
 
* Check with your host to see if they'll be able to upgrade your server. Many hosts now allow you to do this directly from the hosting panel
 
* Check with your host to see if they'll be able to upgrade your server. Many hosts now allow you to do this directly from the hosting panel

Revision as of 12:58, 24 September 2016

PHP 7 is a huge upgrade because it comes with significant performance improvements over PHP 5.6. Not only can it run apps up to 2x faster, but it also is a lot more memory efficient. So that translates into a huge performance boost for your site without the need to upgrade the hardware that supports it. JReviews v2.7.11.2 is the first release of JReviews that is compatible with PHP 7.

It's important to note that the upgrade to PHP 7 is not mandatory and JReviews will continue to ship for PHP 5 and PHP 7 as a download package. Also when updating remotely, the correct version will be installed depending on whether you are using PHP 5 or PHP 7.

Steps to upgrade JReviews to PHP 7

  • Check with your host to see if they'll be able to upgrade your server. Many hosts now allow you to do this directly from the hosting panel
  • Also check with your host if they have already installed ionCube loaders v6.0.3 or higher or if you are able to install them yourself. This is the minimum version required to use with JReviews on PHP 7.
  • Make sure all your Joomla extensions or WordPress plugins are compatible with PHP 7
  • Make a backup or your site or create a development site so you can test the upgrade there
  • Upgrade your server to PHP7 and the ionCube loaders to v6.0.3 or higher
  • Download the latest JReviews package from the Client Area and find the jreviews zip file inside the "jreviews-for-php7" folder.
  • If you are on Joomla, go to the Joomla extensions manager and install the new JReviews component zip without the need to uninstall first. If you use JomSocial, you also need to update all the plugins included in the download package and you do that also from the extensions manager.
  • If you are on WordPress, deactivate the JReviews plugin, delete it, and then install the new JReviews plugin zip and activate it.
  • If you have any JReviews Add-ons installed, head over to the JReviews admin remote install & update and update the add-ons.

In the scenario where you already updated JReviews and all add-ons to the latest version while still on PHP 5, you will still follow all the above steps, but in the last step for the Add-ons, you will remove the add-ons first, and then you'll re-install them again. This step is necessary so that the remote updates server will deliver the PHP 7 version of the add-on when you re-install them.