NukeXchange Network

          

NukeZone Hosting - Fast, Affordable and Dependable
Nuke Fixes · NukeForums · NukeZone Hosting · NukeUnited · Nuke Sites · Nuke Skins · NukeLance
Nuke Resources
 :: Home  :: Downloads  :: Your Account  :: Forums  :: Advertise :: 
Login or Register
Main Menu
General
 Main
 AvantGo
 Banner_Clients
 cfaq
 Donations
 Downloads
 Forums
 Members_List
 Private_Messages
 Search
 Stories_Archive
 Submit_News
 Surveys
 Topics
 Web_Links
 Your_Account

Your Account
 Login
 Register
 Lost Pass

Modules
Quick Links
· CMS Focus
· Domain Names
. Game Quest
· Learning Linux
. MateMaker
· NukeFixes
· NukeForums
· NukeLance
· Nuke Sites
· Nuke Skins
· NukeZone Hosting
. SearchDevil
Other Options

Download Resources
· Nuke Downloads
· Add a Link
· New Files
· Top Rated
· Most Popular

Web Site Resources
· Nuke Sites
· Add A Site
· New Sites
· Top Rated
· Most Popular

Support
· NukeZone Hosting
· NukeSkins.com
· NukeForums.com
· phpnuke.org
· NukeFixes.com
Information
NukeForums
·Please Help Question about Siggy's
·time doesn't appear when I post a new
·Install problems
·Security about Embeding into news articles.
·I get nomail in my phpnuke :(
·Hi My name is Rukasuzu, where is the introduction?
·I get an bug TinyMCE_basic_getEditorTemplate?
·MYSQL ERROR HELP ME PLEASE
·Creating a Gaming PHP Nuke Site - Newbie
·Issues with GIF Images

read more...
Top10 Links
· 1: Nuke Forums
· 2: PHPNukeFiles
· 3: NukeSkins
· 4: Nuke Templates
· 5: EcomJunk
· 6: MDesign
· 7: Windows Installation: PHP
· 8: FLASH-FOR-NUKE
· 9: Dezina
· 10: Global Dream News Sharing Portal!
Site Visitors
User Login:

Nickname:
Password:
Security Code: Security Code
Type Security Code Here:

Members List Membership:
Latest: churchy
Today: 3
Yesterday: 1
Overall: 15033

Visitation:
Guests: 506
Members: 1
Total: 507


You are Anonymous user. You can register for free by clicking here
Sponsor Links
Nuke Sites Link Directory
Nuke Sites Link Directory

NukeResources :: View topic - Patching Php-Nuke - How To:
NukeResources Forum Index

NukeResources Forum Index -> Upgrading PHP-Nuke -> Patching Php-Nuke - How To: Goto page 1, 2  Next
Post new topic  Reply to topic    View previous topic :: View next topic 
Patching Php-Nuke - How To:
PostPosted: Thu Aug 17, 2006 2:49 pm Reply with quote
Dove
Resourceful
Resourceful
 
Joined: Mar 17, 2004
Posts: 140
Location: USA




As this was confusing to me in the beginning, hopefully this will help some people with questions on how to patch your php-nuke.

There are basically 2 parts to patching your Nuke website. PART 1-the website and PART 2-the bbtonuke (forums). These are just pieces of PhP-Nuke (corrected/patched files), your site will not run just on these patch files alone.
* Cpanel install - If you used cpanel to install your Php-Nuke chances are your site does not include any of the LATEST patches at all.

START:
BACKUP YOUR SITE - if you don't know how to do this read the php nuke how-to manual to zip/tar your site and dump the database.
2) GET YOUR 2 CURRENT VERSIONS:
Determine where you are(the version of Nuke & the version of bbtonuke-forum) and where you need to go.
- Get your current versions by using phpMyadmin & view your database tables by browsing
Nuke_Config table - version number
-this will give you your "Nuke Version" - mine said 7.6
Nuke_bbconfig - version
-this will give your bbtonuke(forum) version - mine was 0.17 meaning 2.0.17 & was on page 2 when I browsed

3) DOWNLOAD:
All right now you are ready to download the patch files. Since my NUKE version was 7.6
I will
a) download Nuke 7.6 Patched (current patch version 3.2b)located on the front page of Nuke Resources. You must match your version of Php-Nuke to the patch version. At the same time these patch files include SOME of the bbtonuke forum updates. You need to determine the version of bbtonuke patch updates the 3.2b or current patch version files include.
b) So now unzip this patched version to your desktop and view the upgrade.php on the last line where it says
-----
Code:
$result = $db->sql_query("UPDATE ".$prefix."_bbconfig SET config_value='.0.17' where config_name='version'");

-----
Notice where it says SET config_value='.0.0.17" this means the 7.6 -3.2b patches include bbtonuke updates to 2.0.17 (this could change - so look). After this (PART 1) 3.2b patch update your bbtonuke forums will now be version 2.0.17. Current (PART II)bbtonuke patches as of writing this is bbtonuke 2.0.21. You need to update.
C) So now download (start with next version & work to latest):
BBtoNuke 2.0.18 For NP-Nuke Patched
BBtoNuke 2.0.19 For NP-Nuke Patched
BBtoNuke 2.0.20 For NP-Nuke Patched
BBtoNuke 2.0.21 For NP-Nuke Patched
Found in Nuke Resources Download Section - Main/PHPNuke 7.x/Addons

4) EXTRACT/UPLOAD/OVER-WRITE:
*Note - you are about to over-write your config.php (all your database info) and any edited files you have on your site (you did a backup right?).
a) Now extract the files to separate folders on your desktop. Edit/open the config.php and add your current database info (get it from your old config.php). Now upload these files to your website and overwrite your existing files (keeping folders/file structure intact).
- Start with the 7.6(your nuke version) patched 3.2b(latest patch version) files then do the bbtonuke files 2.0.18, then 2.0.19, 2.0.20, 2.0.21 in order (if your site had bbtonuke 2.0.19 you only need 2.0.20 & 2.0.21).

5) RUN PATCH SCRIPTS:
Now each one of these patches include an upgrade script which needs to be run in order.
a) First do the Nuke patch files upgrade.php (ex: 7.6- 3.2b upgrade.php)
http://mysite.com/upgrade.php
delete the file off your server once run
b) Then do the bbtonuke patch update scripts in order
http://mysite.com/upgrade17-18.php
http://mysite.com/upgrade18-19.php
http://mysite.com/upgrade19-20.php
http://mysite.com/upgrade20-21.php
delete these files off your server once run

Don't forget to view the readme for important notes and check for updates to modules/blocks not included in the patches.
If your using a different theme than a default one included in Nuke (deepblue & subsilver) these will need to be updated to. View the change log or compare the replaced/patch files to your present ones.

If you get an error and want to post a question - please provide:
Version of Nuke (7.0,7.1,7.2,7.3.7.4 .... etc)
Version of the patch files (3.1, 3.2, 3.2b) or "not patched" if no patches were applied
Version of bbtonuke (2.0.17, ...2.0.21)

All done - congratulations Smile
Give thanks to NR & the patch team for helping to keep our sites secure.

Did I miss anything? - thanks Smile
View user's profile Send private message
PostPosted: Fri Aug 18, 2006 2:29 pm Reply with quote
Evaders99
Resource Master
Resource Master
 
Joined: May 25, 2004
Posts: 1785




Looks like you got everything.

To be sure each update worked successfully, I would do them sequentially. Do the Patched files first (install files and run the upgrade script) and make sure it works before going onto the BBToNuke upgrades.

_________________
- Star Wars Rebellion Network - Evaders Squadron Coding -

Need help? Nuke Patched Core, Coding Services, Webmaster Services
View user's profile Send private message Visit poster's website AIM Address
PostPosted: Wed Aug 23, 2006 11:27 pm Reply with quote
waverider
Resource Seeker
Resource Seeker
 
Joined: Jul 08, 2005
Posts: 20




Thanks for the great HowTo.

However - I am confused. I am using 7.8 platinum patched 3.1

When I download 7.8 patched 3.2B all I get is the patched files - no upgrade scripts or BB patches.

If I just copy the patched scripts I lose my Nukesentinal completely from admin. This is caused when loading the new mainfile.php

Do I have to download all patches between 3.1 and 3.2B and apply?
there are no instructions included with the patched files
View user's profile Send private message
PostPosted: Thu Aug 24, 2006 2:03 pm Reply with quote
Evaders99
Resource Master
Resource Master
 
Joined: May 25, 2004
Posts: 1785




The Patched series is only designed to overwrite the original phpNuke releases from FB. They aren't designed for other distributions such as Platinum. So you may need to go to the creators for that, or do the patching manually using a file difference program (I use Winmerge, its free). It is quite a time consuming process to do.

_________________
- Star Wars Rebellion Network - Evaders Squadron Coding -

Need help? Nuke Patched Core, Coding Services, Webmaster Services
View user's profile Send private message Visit poster's website AIM Address
PostPosted: Thu Aug 24, 2006 7:56 pm Reply with quote
waverider
Resource Seeker
Resource Seeker
 
Joined: Jul 08, 2005
Posts: 20




Thanks Evaders99. I made a big mistake using Platinum in the first place apparently. Now I pay Sad
View user's profile Send private message
PostPosted: Thu Aug 24, 2006 8:15 pm Reply with quote
waverider
Resource Seeker
Resource Seeker
 
Joined: Jul 08, 2005
Posts: 20




Also thanks for the tip on Winmerge. Have downloaded and installed - looks great Very Happy
View user's profile Send private message
PostPosted: Sun Sep 17, 2006 12:49 am Reply with quote
ShotoKan
Resource Seeker
Resource Seeker
 
Joined: Sep 14, 2006
Posts: 12




little problem here. I am just installing the php-nuke 7.8 with the patch 78patched3dot2 I got here but the problem is i couldn't find the file upgrade.php on this zip file so following the how-to above i can not see which bbforum updates is already on this patch.

I know i can still patch my php-nuke7.8 but then when it comes to know which bbtonuke files i need then how do i found this out?
View user's profile Send private message
PostPosted: Sun Sep 17, 2006 3:54 am Reply with quote
Evaders99
Resource Master
Resource Master
 
Joined: May 25, 2004
Posts: 1785




I believe the latest still has 2.0.17. You may need to get the upgrade from another package if chatserv didn't include it, perhaps from 7.7

_________________
- Star Wars Rebellion Network - Evaders Squadron Coding -

Need help? Nuke Patched Core, Coding Services, Webmaster Services
View user's profile Send private message Visit poster's website AIM Address
PostPosted: Mon Sep 18, 2006 9:29 am Reply with quote
ShotoKan
Resource Seeker
Resource Seeker
 
Joined: Sep 14, 2006
Posts: 12




Ok.

I am not upgrading right now i am just installing a brande new php-nuke 7.8.

So i installed the 7.8 on my webserver and everything was OK. After that i did install the patch 3.2b and also everything was OK. When i try to look inside the upgrades.php to know which version of bbtonuke was there i couldn't find.

So my question is should i get these upgrades from another package like you said or just the bbtonuke pakages?

Maybe because i am installing a full 7.8 and not upgrading i don;t need the upgrade.php file rihgt? If that so i just need to know if the version of bbnuke would be 0.17.

Another information is that i just run the analize.php and it shows that i am running bbtonuke 0.15 right now even after installing the patch.
View user's profile Send private message
PostPosted: Mon Sep 18, 2006 11:57 pm Reply with quote
Evaders99
Resource Master
Resource Master
 
Joined: May 25, 2004
Posts: 1785




Go ahead and install BBToNuke 2.0.18. I don't think there were any major changes from 2.0.15 to 2.0.17

_________________
- Star Wars Rebellion Network - Evaders Squadron Coding -

Need help? Nuke Patched Core, Coding Services, Webmaster Services
View user's profile Send private message Visit poster's website AIM Address
PostPosted: Tue Sep 19, 2006 10:12 am Reply with quote
ShotoKan
Resource Seeker
Resource Seeker
 
Joined: Sep 14, 2006
Posts: 12




Great. Thanks a lot.
View user's profile Send private message
PostPosted: Tue Sep 19, 2006 3:22 pm Reply with quote
ShotoKan
Resource Seeker
Resource Seeker
 
Joined: Sep 14, 2006
Posts: 12




by the way how do you know if a version of php-nuke is patched or not. In other words I knwo that if you look at the version inside nuke-config table you will find that the site is using 7.8 for instance but how you find out if this version has been patched or not?

Is there a place to look and is something you need to know?
View user's profile Send private message