Thursday, January 23, 2014

How to move photos from Bitnami gallery in windows to Gallery3 in Ubuntu Linux


How to migrate/change servers from Bitnami gallery in windows to Gallery3 in Ubuntu Linux

Windows -bitnami

  1. Copy var folder
  2. Access phpmyadmin
  3. Select bitnami_gallery database
  4. Select export tab
  5. Export method: custom
  6. Check Object creation options:  Add statements: Add DROP TABLE / VIEW / PROCEDURE / FUNCTION / EVENT statement
  7. Go
  8. Download bitnami_gallery.sql file

Ubuntu

  1. Install gallery 3 in Ubuntu normally
  2. This would create the gallery3 database, create var folder etc.
  3. Import bitnami_gallery.sql file into gallery3 database
  4. Copy contents of var folder in the var folder in Ubuntu
  5. Edit database.php to match the newly created user, pass, database, etc.
  6. You can now see your old gallery in the gallery3 page in Ubuntu but the photos are blank.
  7. Right click on var folder > permissions tab
  8. Change File Access: Read and write; Group file acess: read-only. Others file access: read-only.
  9. Click apply permissions to enclosed files > close
  10. You should now be able to see your old photos
  11. Done


Some helpful links:
How to install xampp in ubuntu?
why cant i copy into /opt/lampp/htdocs ?
How to auto start XAMPP in Ubuntu?