How to update packages correctly

From WOS Wiki

Jump to: navigation, search

Please read this article carefully since otherwise you could lose your data or crash your WOS installation!

WOS can not really update packages at the moment. This comes from the fact that WOS can not know which files it would need to update as if you were doing a manually update.

So WOS will completly delete the existing package and install the new package

This is perfectly fine if you update apache or php since in this directories are no user created files. It becomes problematic if you'd like to update MySQL or any application software like TYPO3, Wordpress or similar since these directories contain user created files!

For the application software is normally no clear way to describe how to update best. I'd recommend that you use a new WOS package and copy the files and SQL data from the old package to the new.

[edit] How to update MySQL correctly

Make absolutly sure that you follow these steps because otherwise you could lose all your databases and data!

  1. Stop WOS!
  2. Create a backup of the whole WOS system using the "Backup" function or just make copy of the WOS folder
  3. Open the folder "mysql" in your WOS directory in the windows explorer
  4. Copy the "data" folder to a safe place!
  5. Get the new MySQL package and copy it to the WOS folder where the wos.exe resides
  6. Exit WOS and start WOS again
  7. WOS will install the new package now. Click OK on the warning that the package already exists and all data will be lost!
  8. After the package is installed and WOS fully started make sure that the server is stopped
  9. Go the the "mysql" folder in your WOS directory again
  10. Delete the "data" folder
  11. Put your old "data" folder we made a backup of some steps earlier back
  12. Done.

This only works if you stay in the same MySQL version! It will not work if you upgrade from MySQL 4 to MySQL 5! If you are not sure about this you could use phpMyAdmin or the mysqldump tool to dump all the data and import it later on again!

Personal tools