How to upgrade phpnuke


Learn how to upgrade your version of phpnuke..

Steps :
Before you upgrade your version of phpnuke, there are a couple of things to consider

1. Are the new features a must have? If they are, is it possible to have them install without upgrading..

2. Is security not a major concern? Can you live with an insecure version until it is patched ....

If the answer to both questions are yes then proceed to the upgrade instructions.

Upgrade Instructions

There are two ways to upgrade and they both vary on the current version of phpnuke that you have installed. The first step is easy and requires you overwriting all your current nuke file. The second step is much harder and is very time consuming. This step is used if you have a highly modified phpnuke and you do not want to lose all those customizations. Caution should be taken before using either upgrade options. PLEASE BACKUP ALL FILES AND DATABASE!! We will explain the first and easiest step since most use this method.

Upgrade by replacing files

Get a fresh copy of the new version that you want to upgrade to. Unpack the files keeping the folder structure. You will notice an upgrade folder, this folder contains the required upgrade scripts. By now you should have the version number of the nuke you are using. This number will determine the required upgrade scripts. Also make a note of your database info as you will be overwriting your config.php file during the process.

Step1:
Upload all the nuke files and folders in the 'html' folder to your server overwriting the ones currently there.

Step2:
This is the step that most people get confused with, it's rather simple. Inside the upgrades folder you will see a number of nuke versions folder eg 7.x, 6.x and so on. The first thing is to know your current php nuke version. Let's say you are upgrading from 7.0 to 7.7, in this case you look inside the 7.x folder and look for your version. You will have to run all the scripts from upgrade70-71.php all the way to upgrade76-77.php. DO NOT skip any in between or you may end up with more problems. You should also note that these files must each be ran from the root folder ( same place where config.php and mainfile.php are located). Delete these files once you have ran them.

Step3:
Open the config.php file and re-add your database details.

That's it, you have successfully upgraded your version of nuke.