File: UPGRADE

package info (click to toggle)
jffnms 0.8.3dfsg.1-2.1etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 4,928 kB
  • ctags: 5,050
  • sloc: php: 19,981; sh: 266; makefile: 91; perl: 52
file content (58 lines) | stat: -rw-r--r-- 1,841 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
This file explains the upgrade procedure between versions:

0.8.2 to 0.8.3
==============

    0. You are adviced to upgrade your PHP and PostgreSQL (if you use that) versions before the upgrade,
	because some new features may need that. 
	
	The new poller is still experimental, and its not enabled by default.

    Replace the <patch tar.gz path> with the actual path to the patch files,
    '../jffnms-upgrade-0.8.2-to-0.8.3' if you are using jffnms-upgrade-0.8.2-to-0.8.3.tar.gz or 
    '/opt/jffnms-0.8.3/docs/upgrade' if you are using jffnms-0.8.3.tar.gz
    
    1. Apply the code patch: 
	# cd /opt/jffnms 
	# patch -p1 < <patch tar.gz path>/jffnms-0.8.2-to-0.8.3.patch 

	If you have not changed the code, there should not be any errors.
	Replace apache.apache with your HTTPd username and group (nobody, httpd, etc)

    2. Upgrade the DB: 
	MySQL:
	    Backup in case of failure:
		# mysqldump --opt -ujffnms -pjffnms jffnms > /tmp/jffnms.backup.mysql
	
	    Upgrade the MySQL Tables:
		# cat docs/upgrade/mysql/jffnms-0.8.2-to-0.8.3.mysql.diff* | mysql -u jffnms -pjffnms jffnms

	PgSQL:
	    Backup in case of failure:
		# pg_dump -U jffnms jffnms -dROc > /tmp/jffnms.backup.pgsql

	    Upgrade the PgSQL Tables:
		# cat docs/upgrade/pgsql/jffnms-0.8.2-to-0.8.3.pgsql.diff* | psql jffnms jffnms

    3. Copy the new binary files: 

	# cp -Rv <patch tar.gz path>/files/* /opt/jffnms/

    4. Change Ownership
    
    	# chown -R apache:apache *

	    OR if you used the new Instalation method: 
	# chown -R jffnms:jffnms *  

    
	And then re apply the permissions to the /opt/jffnms folder:
	
	# chmod -R ug+rw *

	
    5. Verify Everything is ok:
	Go to the Setup page at
	    http://youserver/jffnms/admin/setup.php (or the path you set)
	    
	    Check everything, make the corrections and SAVE the Configuration anyway.