How to migrate/change servers from Bitnami gallery in windows to Gallery3 in Ubuntu Linux
Windows -bitnami
- Copy var folder
- Access phpmyadmin
- Select bitnami_gallery database
- Select export tab
- Export method: custom
- Check Object creation options: Add statements: Add DROP TABLE / VIEW / PROCEDURE / FUNCTION / EVENT statement
- Go
- Download bitnami_gallery.sql file
Ubuntu
- Install gallery 3 in Ubuntu normally
- This would create the gallery3 database, create var folder etc.
- Import bitnami_gallery.sql file into gallery3 database
- Copy contents of var folder in the var folder in Ubuntu
- Edit database.php to match the newly created user, pass, database, etc.
- You can now see your old gallery in the gallery3 page in Ubuntu but the photos are blank.
- Right click on var folder > permissions tab
- Change File Access: Read and write; Group file acess: read-only. Others file access: read-only.
- Click apply permissions to enclosed files > close
- You should now be able to see your old photos
- 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?