home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 April / CMCD0404.ISO / Software / Freeware / Programare / dotproject / modules / help / en / install.upgrade.hlp < prev    next >
Encoding:
Text File  |  2003-05-18  |  2.7 KB  |  51 lines

  1. <!-- $Id: install.upgrade.hlp,v 1.3 2003/05/18 11:46:01 eddieajau Exp $ -->
  2. <h2>Upgrading an Existing Version</h2>
  3. <p>Here is a general outline of how to upgrade your existing version of dotProject (probably version 0.2.1 or 0.2.2)<p>
  4. <ol>
  5.     <li>Download the latest release and follow the install instructions placing it in a new directory.</li>
  6.     <li>Create a copy of your existing dotProject database.</li>
  7.     <li>Edit the database parameters in the config.php file to point to this copied db.</li>
  8.     <li>Apply the upgrade script to the copied db.</li>
  9.     <li>Test out the new version of dotProject.  If all is well then promote this version to production and archive your old data (just in case).  If there is a problem then let up know.</li>
  10. </ol>
  11.  
  12. <h3>Upgrading to Version 1.0</h3>
  13. Version 1.0 incorporates many additions and modifications to existing database structure.  You need to apply the script upgrade_022_to_100.sql to your MySQL database to upgrade from wither version 0.2.1 or 0.2.2.<br />
  14. <br />
  15. <br />
  16.  
  17. <h3>Upgrading DotProject 1.0 alpha 1 to DotProject 1.0 alpha 2</h3>
  18. The task_log, tasks and projects tables have all changed slightly from alpha 1 to alpha 2. You will need to upgrade your database to take advantage of these improvements.<br />
  19. <br />
  20. Apply the <code>upgrade_alpha2_to_beta1.sql</code> script to your database copy.<br />
  21. <br />
  22. The example below assumes the following configuration. Please modify the example commands to match your local settings. These commands are executed from the commandline within the dotproject database directory.<br />
  23. <br />
  24. <strong>
  25. $dPconfig['dbname'] = "dp_1_0_alpha";<br />
  26. $dPconfig['dbuser'] = "dp_user";<br />
  27. $dPconfig['dbpass'] = "dp_pass";<br />
  28. </strong>
  29. <br />
  30.  
  31. <h3>Upgrading DotProject 1.0 alpha 2 to DotProject 1.0 beta 1</h3>
  32. Beta 1 includes two major security improvements.  Changes were made to prevent a vulnerability caused by malicious injection of SQL into the username and password fields.  The password encryption method was also changed in line with recommendations from MySQL.<br />
  33. <br />
  34. Apply the <code>upgrade_alpha2_to_beta1.sql</code> script to your database copy.<br />
  35. <br />
  36. There is a configuration variable, <code>check_legacy_password</code>, that also needs to be set to <code>true</code>.
  37. <pre>$dPconfig['check_legacy_password'] = true;</pre>
  38. This will capture a password verified under the old encyption scheme and upgrade on the first successful login of the user.<br/>
  39. <br />
  40.  
  41.  
  42.  
  43. <strong>Backup Existing Database</strong><br />
  44. <emphasis>mysqldump -udp_user -pdp_pass dp_1_0_alpha > dp_1_0_alpha1_backup.sql</emphasis><br />
  45. <br />
  46.  
  47. <strong>Upgrade the Database</strong><br />
  48. <emphasis>mysql -udp_user -pdp_pass dp_1_0_alpha < upgrade_100_alpha1_to_alpha2.sql</emphasis><br />
  49. <br />
  50.  
  51.