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.







Linear Mode




