Commit | Line | Data |
---|---|---|
de8695b2 DO |
1 | Thank you for selecting RackTables as your datacenter management |
2 | solution. Feel free to address your questions to the mailing list | |
3 | before contacting the authors directly. The project web-site | |
4 | (http://racktables.org/) is usually kept up to date with the | |
2dfc597c | 5 | current version and URLs. |
de8695b2 DO |
6 | |
7 | Mailing list: <racktables-users/=@=/freelists.org> | |
2dfc597c | 8 | Bug tracker and Wiki: http://racktables.org/trac |
de8695b2 DO |
9 | Authors: <info/=@=/racktables.org> |
10 | ||
11 | ******************************************************* | |
12 | * * | |
13 | * INSTALLING RACKTABLES * | |
14 | * * | |
15 | ******************************************************* | |
16 | ||
17 | I. Dependencies. | |
18 | ||
19 | For database you must have a MySQL server installation version 4.x or 5.x: | |
20 | Fedora Core 6: yum install mysql-server mysql | |
21 | Fedora 8: yum install mysql-server mysql | |
22 | ALTLinux Compact 3.0: apt-get install MySQL-server MySQL-client | |
23 | ALTLinux Desktop 4.0: apt-get install MySQL-server | |
24 | ||
9ddee5ea DO |
25 | For web-frontend you must have Apache and PHP 5 with PDO and multibyte |
26 | extensions: | |
de8695b2 | 27 | Fedora Core 6: # yum install httpd php php-mysql php-pdo php-gd |
e6412f6e | 28 | Fedora 8: yum install httpd php php-mysql php-pdo php-gd php-snmp php-mbstring |
9ddee5ea DO |
29 | ALTLinux Server 4.0: apt-get install apache2-httpd-prefork php5-gd2 \ |
30 | php5-pdo_mysql php5-pdo apache2-mod_php5 php5-mbstring | |
c2d46542 DO |
31 | |
32 | II. Prepare the server. | |
de8695b2 DO |
33 | 1. Unpack the tarball and make it web-accessible, e.g. http://yourcompany.com/racktables |
34 | or http://racktables.mysite.org. | |
c2d46542 DO |
35 | 2. mysql> create database_name; grant all privileges on database_name.* to XXX@YYY identified by 'ZZZ'; |
36 | ||
37 | ||
38 | There are two mutually exclusive ways to install RackTables, they are described as III-A and III-B. | |
39 | ||
40 | ||
41 | III-A. HTTP installation (starting with 0.14.12 release) | |
42 | Open your RackTables URL and follow the instructions. In a suitable | |
43 | environment everything should take a minute or so. | |
44 | ||
de8695b2 | 45 | |
c2d46542 DO |
46 | III-B. Manual installation. |
47 | 1. Edit install/init-auth.sql and change admin password | |
48 | ||
49 | 2. Init database. | |
de8695b2 DO |
50 | mysql> use database_name; |
51 | mysql> source install/init-structure.sql | |
52 | mysql> source install/init-auth.sql | |
53 | $ rm -f install/init-auth.sql | |
54 | mysql> source install/init-dictbase.sql | |
55 | mysql> source install/init-dictvendors.sql | |
de8695b2 | 56 | |
c2d46542 | 57 | 3. Edit inc/secret.php |
de8695b2 | 58 | |
c2d46542 | 59 | 4. $ rm -f install/init-auth.sql |
de8695b2 DO |
60 | (Just to be sure you did.) |
61 | ||
62 | ******************************************************* | |
63 | * * | |
64 | * UPGRADING RACKTABLES * | |
65 | * * | |
66 | ******************************************************* | |
67 | RackTables now provides an automatic database upgrade feature. | |
68 | If you already have a working installation, the following | |
69 | procedure should be sufficient: | |
70 | ||
71 | 0. BACKUP YOUR DATABASE | |
72 | 1. Remove all existing files except inc/secret.php and gateways' | |
73 | configuration (in the gateways directory). | |
74 | 2. Unpack the new tarball into the place. | |
75 | 3. Open the RackTables page in your browser. | |
76 | 4. Follow instructions. Normally, everything should be Ok. If it | |
77 | is not so, write down the failed quieries for further investigation. | |
7fc5565c | 78 | |
c2d46542 DO |
79 | ******************************************************* |
80 | * * | |
81 | * RELEASE NOTES * | |
82 | * * | |
83 | ******************************************************* | |
84 | ||
9ddee5ea DO |
85 | *** Upgrading to 0.14.12 *** |
86 | ||
7fc5565c DO |
87 | The upgrade may show a failed query "alter database character set utf8", in |
88 | this case the user should issue the query manually from the mysql command | |
89 | line. | |
9ddee5ea DO |
90 | |
91 | *** Upgrading to 0.16.0 *** | |
92 | ||
93 | This release features a completely new authorization system, RackCode, | |
94 | which brings the tags feature (introduced in 0.15.0) to its full potential. | |
95 | The old-style user permissions are converted during upgrade automatically, | |
96 | but the result may appear not what you would expect. Review the RackCode | |
97 | after upgrade (Main page -> Configuration -> Permissions) and adjust, | |
98 | if necessary. | |
99 | ||
100 | Another important change is a new dependency on "multibyte string" PHP | |
101 | extension. Normally one should get it working before starting the upgrade, | |
102 | this is typically achieved by installing a particular PHP RPM from the | |
103 | standard package repository (and restarting Apache after that): | |
104 | ||
105 | Fedora: yum install php-mbstring | |
106 | ALTLinux: apt-get install php5-mbstring | |
8608b285 DO |
107 | |
108 | *** Upgrading to 0.16.1 *** | |
109 | This release fixes a missing UNIQUE key in the database. However, this fix | |
110 | may sometimes fail, if the table contains duplicate records. If the | |
111 | 0.16.0-0.16.1 upgrade batch completed without errors, no action needs to be | |
112 | taken. If you see a failed ADD UNIQUE query during upgrade, the only solution | |
113 | is to delete the duplicates manually. To do this, open a MySQL console and | |
114 | issue the failed query again: | |
115 | ||
116 | mysql> alter table IPVirtualService ADD UNIQUE endpoint (vip, vport, proto); | |
117 | ||
118 | The IP address of the duplicate VS will be known from the "Duplicate entry" | |
119 | message. For example, to decode "Duplicate entry '180879877-80-TCP' for key | |
120 | 2" error message, issue: | |
121 | ||
122 | mysql> select inet_ntoa(180879877); | |
123 | ||
124 | Then go to "virtual services" web-interface page and adjust the data as | |
125 | necessary. You would need to get rid of the duplicates accurately one by | |
126 | one, repeating the ADD UNIQUE query until it succeeds. |