How to upgrade from 9.9.5 to 1.0 RC1? I Show You How In Here!

Register an Account
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 02-01-2009, 07:18 PM
Donor
 
Join Date: Jan 2007
Posts: 377
Before you proceed to do any of this, you must know that you gotta do this slow and take your time. You need to be very careful. Before you try my instruction, please know that you do this at your own risk. Do this at your own risk, and don't blame me if things go wrong. I used the exact instructions that I wrote down for you guy here, and my website at GreenSocialTech - Your Source for Social News and Networking is working with Pligg 1.0 CR1. Take a deep breath, and ready?

To upgrade from 9.9.5 to 1.0, according to me (it's easier for me this way), you must do a fresh install, then run a install script through upgrade section to update your database. Hold your horse, and follow the below. Please use your head if something goes wrong or something I wrote down is not logical, because your server settings can be really different from mine. What's work for me may not work for you and vice versa. Do this at your own RISK!!!

1) make a copy of your original pligg database to have as a backup
2) in case of accidentally deletion of a backup copy, you need to copy your original database again to have as a second backup
3) gunzip your database (db) file -- from now on I'm going to refer database as db, and copy as cp
4) create 2 new db(s) with each's own user/pass
5) load already gunzip db file into one of the two new db (note: only use one new db for now, and leave the other new db as empty for now.)
6) Make a complete backup of your original Pligg's root folder to a new folder (that's new folder name)
7) In case of accidental deletion, make a backup of your Pligg's root folder again to a new folder (that's another new folder name)
8) Since fresh Pligg's root folder that contain version 1.0's source files has a long name, you can rename it. Example: Pligg 1.0.0 RC1b to newsportal. In linux you can use this command - mv Pligg 1.0.0 RC1b newsportal
9) Point your browser to yourdomain.com/newsportal(or your directory)/install/ and follow installation instruction from pligg's readme.html in your Pligg's download source folder.
10) Fresh installed version working? Check to see if it's then logged into admin panel and disable all modules
11) In admin panel through module management panel - reinstall all modules
12) Reconfigure settings.(remember to chmod 666 settings.php or else you cannot do this step).
13) Go to phpmyadmin (or your db manager GUI) > pligg_config (table) > search for $my_pligg_base and change to the new path. example: /newsportal
14) In settings.php edit path (if you don't have to do step 13 but is able to modify settings in admin panel, then you can change your base path here.
15) Modify language file (remember to chmod your language file to 777 or else you can't do it in the admin panel, and you have to use putty or a linux terminal to do this.)
16) Check to see if your install folder is still there, if not, you have to upload your install folder again to 1.0.0 pligg's root directory (that's newsportal).

/////-----------Since everything is working as expected for installing 1.0.0 RC1b, now you need to replace your working 1.0 version over the 9.9.5's original version. Please don't jump ahead but follow the instructions below. ---////////
16) Upload index.html in install directory (if you haven't yet delete the install folder) to original installed Pligg version 9.9.5's root directory (so visitors know we are updating the website)
17) cp index.html in install folder to Pligg's successfully installed 1.0.0's root directory
18) go to admin page and then home to get to index.php page and log out from admin panel
19) in ssh terminal or putty and edit settings.php in Pligg's 1.0.0's root directory to have correct path (that's change to original path. Not using newsportal path OK, because the original path is different -- we are talking about pligg's base path here.)
20) If you already have a backup of your original Pligg 9.9.5's root directory, then you can delete the whole directory now.
21) Move the Pligg 1.0.0's root directory to the original name of the Pligg 9.9.5's root directory that you just have deleted.
22) delete all files in cache/templates_c/ but make sure you are in that very directory by doing this cd /pligg/cache/templates_c/ and then do pwd to see where you at, then only then you can do rm -rf *.
Warning) **don't do this step unless...** If anything goes wrong, all you have to do is to revert the original Pligg 9.9.5's root directory backup folder to the same name as before, but make sure to make a backup of a newer version by move it to another folder with newer name -- test everything to see if things stay the same.
23) go back into phpmyadmin > pligg_config > search for $my_pligg_base and change the path to the right one. (If you see the right base path already, just leave it alone.)
24) just to be sure, log into admin, and then check configuration again, also disable all modules and re-enable them all again.

***note... remember I asked you to create two new empty db? This will become clear at the end. It's optional. ***

//It's time to use normal account or admin account or god account to verify everything ** I mean everything ** is working as it should have.
25) Try to submit story through bookmark, and then submit through manually using sumbit link on the homepage.
26) Try vote as anonymously to see if vote is working (turn on vote anonymous option in settings.php -remember to chmod 666 settings.php) Also try vote as a normal user too.
27) Try to hit on discuss link to see if things are OK -- look for title on the top of browser to see if it's correct.
28) Click on links to see if redirection is working!
29) Try to vote twice to see if error is showing or not!
30) Click on categories to see if categories are working
31) Login to admin or god and then add category to see if category can be added.
32) Try to sort news to see if news are sorting or not.
33) Try testing comments by adding comments, and then up or down its score to see if it's OK.
34) Login as God and try to discard stories and then empty discard stories to see if it's OK.
35) Check rss import to see it's working. (remember to copy import.php in rss import modules in the modules folder to the root folder.) If unsure, open up import.php and it has the explanation for you to follow on how to do just that.
36) Make sure rss import has correct cron setting and wait to see if it's indeed Pligg 1.0.0 gets update through cron job. (if you are using rss import, you can skip this step and step 35 if you are not using rss import.)
37) Try to create a test account to see if you can!
38) Check test account email to see if module send welcome message is working!
39) check settings.php again to see it's permission is 644 just to make sure for security, you don't want others to modify your pligg's setting now eh?
optional step) This is where you a remaining empty db that I asked you to create earlier come into the game. Got extra 1.0.0 db? Go to database using phpmyadmin or anything that you have that is easy for you to control your database (either for mysql or postgresql) and delete extra tables that belong to modules of your 9.9.5 templates -- you can pick one db in the two 1.0.0 db you got to work on, but only work on the same db OK?. (Do not delete Pligg 9.9.5's default tables or 1.0 default tables, or else you're screw!!!!) After you got everything done to your satisfaction, now you need to go into dbconnect.php and modify your Pligg's to point to the db that you want Pligg to run with, that's the db you just played around with. You can use dbconect.php to point your Pligg back to the other 1.0.0 db that you have left it alone.
At last! Check any other stuff that I had missed to mention. Good luck! Enjoy!



I have noticed Pligg 1.0.0 Rc1b is having couple errors during my testings, and the message below is for Pligg's developers. Not for Pligg's users. You can help me create new thread for these bugs if you want to, because I'm tired after all this typings. LOL...

Error 1) In admin panel > settings > submit, under html tags allow to normal user - when change the values or insert values such as < img > < p > and so on without the space of course, the values cannot be saved. The same goes for god and admin section.

Error 2) Wistie template, when users had already logged out, the save link still appears under each story. This is a feature for anonymous save? Or a bug?

Error 3) Wistie template, bury link under each story cannot be refresh when clicked, because when click it's static and has no animation, but refresh the browser you'll see the story gets buried. Bug or not?

Error 4) In admin panel, in news management section, when mark all discarded stories, the discarded section did not pagination to the next page, but after the mark all discard it returns to page 1 of discarded. This is a bug! Or it's a big inconvenient. Plus how do I change this page to show more than just couple stories to like 200 stories or so? It will be a big help for large Pligg's site. What file do I need to modify?

Error 5) Even though module image upload is enable,but wistie shows no form for users to add or upload images. Wistie template don't have this form installed? Or upload image module is not working? Which is the bug?

Error 6) Phpmyadmin warned in pligg_group_shared table: The following indexes appear to be equal and one of them should be removed: share_group_id, share_group_id_2

Error 7) Phpmyadmin warned table_tag_cache: no index define

Just curious: Pligg 1.0.0 don't have modify total link in admin panel anymore?

New discovery: When empty modify_total table in Phpmyadmin, it's OK now. Do we need this table anymore?

Just finish install using this instruction? Please test and submit bugs to Pligg's developer.

Last edited by argh2xxx; 02-01-2009 at 07:36 PM. Reason: adding more
Reply With Quote
  #2 (permalink)  
Old 02-01-2009, 08:09 PM
Donor
 
Join Date: Jun 2007
Posts: 289
thanks argh2xxx,

very useful
Reply With Quote
  #3 (permalink)  
Old 02-02-2009, 12:26 AM
New Pligger
Pligg Version: 9.9.5
 
Join Date: Jan 2009
Posts: 3
Send a message via MSN to mahongwei
Very good!
Reply With Quote
  #4 (permalink)  
Old 02-02-2009, 02:08 AM
Constant Pligger
 
Join Date: May 2007
Posts: 143
nice work ts.
thanks

Watch Tv Episode Online - Watch your favorites Tv Shows.
Reply With Quote
  #5 (permalink)  
Old 02-02-2009, 02:19 AM
Yankidank's Avatar
Pligg Founder/Coder/Designer
Pligg Version: SVN
Pligg Template: Wistie
 
Join Date: Dec 2005
Location: Ocala, FL
Posts: 4,934
Send a message via AIM to Yankidank
Thanks for the error reports,could you please post more detailed bugs through the Projects page. Some of the bugs reported aren't clear enough for me to duplicate or understand them.

Error 1 I have had another person tell me about this, but no open project for it. Please open a project for the bug and it will be addressed.

Error 2 the saved stories is actually a broken feature right now. it's displaying saved stories from everyone on the site, not just the logged in user. I forgot about this problem until now. Once again, posting this to the projects page would be helpful.

Error 3 is valid, the javascript effects are a little bit broken right now with Wistie. There are a couple reason behind this, one of which being that we are trying to limit the amount of javascript used. Previously there were huge libraries of scriptaculous code being loaded just for simple effects. I'll try to have the bury and vote text ajax update with our final release.

Error 4 I would like to make changes to allow admins to set how many stories should appear on the story and comment admin pages. Please open up a project page with your notes and I'll try to address this.

Error 5 is probably caused because the image upload module hasn't been upgraded/tested for 1.0. We are rewriting it now so that a new and improved Image attachment module will be released with 1.0 final.

Errors 6 and 7 I will need more details.
Could you elaborate on the modify total link comment? I'm guessing that it was a module or feature that we removed. It's been so long since I've played with 9.9.5 that I forget a lot of things.

The Twitter Module for Pligg CMS!
Register, Login, and Submit Stories with Twitter. An absolute MUST HAVE for all Pligg sites!

Last edited by Yankidank; 02-02-2009 at 02:31 AM.
Reply With Quote
  #6 (permalink)  
Old 02-02-2009, 02:50 AM
wnw's Avatar
wnw wnw is offline
Casual Pligger
Pligg Version: 9.9.5
Pligg Template: Wnw
 
Join Date: Dec 2007
Posts: 55
I think it too early to implement the 1.0 .. right??? as we need more of a stable release to implement it on a live site...what others have too say here.
Reply With Quote
  #7 (permalink)  
Old 02-02-2009, 05:04 AM
nellaitamil's Avatar
Constant Pligger/Designer
Pligg Version: 1.1.3
Pligg Template: ar...
 
Join Date: Dec 2008
Location: india
Posts: 208
Quote:
Originally Posted by Techkr View Post
thanks argh2xxx,

very useful
Pleace Put in Your Php, TBl Files. Help Me Techkr. I Am not English writer.
My site.
india.nellaitamil.com / பிரபலமானவை
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Upgrade from 9.9.5 to 1 RC3 hQcoder Questions and Comments 1 04-06-2009 03:38 PM
upgrade to 1.0 rc1 xml-sitemap show blank page and rss not work Techkr Questions and Comments 0 02-16-2009 11:16 PM
Upgrade from 9.9.5 to 1 RC1 is not easy argh2xxx Questions and Comments 0 01-31-2009 01:50 PM
Upgrade to 9.9.5, but a couple questions jrothra Questions and Comments 3 01-21-2009 04:35 AM
[SOLVED] Stories not showing after 9.8.2 to 9.9.5 upgrade elindbloom Questions and Comments 2 10-27-2008 08:26 PM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development