This is a document I am assembling based on my experience moving Photopost to a new server and also changing directory structures. Please keep in mind this may be a work in progress and I will continue to edit this first post as I find more.
How to move to a new host:
1) Archive and move your Photopost files.
- Before you do this, you'll want to close your gallery.
- In my case I was able to use the Plesk migration feature between servers.
- You can also archive all of your files to a TAR.GZ file and transfer using SFTP or (god forbid) regular FTP.
2) Copy/move the files to your new location.
- Usually you will put them on your website under /photopost or /gallery or similar. I believe /photopost is the default.
3) Re-establish all of the permissions.
- This is a VERY important step because sometimes the permissions are overwritten during the archive and transfer process. It was my biggest headache.
- Follow the basic permissions from the Photopost install guide:
http://www.photopost.com/installphp.html
- Instead of using the traditional "chmod 777 directory" append a -R to the end so it now looks like this "chmod 777 directory -R"
- This will also change all of the files and sub-folders underneath.
4) Backup and transfer your database. 5) Restore your database.
- Create a new database file on the new server and restore the data from the file you just transferred into it.
- Typically: "mysql -u username -p databasename < databasebackup.sql"
6) Edit the main config files.
- Modify config-inc.php to reflect your new server and/or directory settings.
- Modify config-int.php to reflect your new server and/or directory settings.
- If you changed database user ID's, change this as well.
7) Open your Photopost gallery and modify confgs.
- Using a web browser, open your gallery and enter the Admin console.
- Click on GLOBAL OPTIONS and change the following to your new path:
- Full SERVER PATH
- Full path to Header
- PATH to UPLOADS
- Directory to backups
- Save
- Click on WATERMARK OPTIONS
- Full server path to watermark image
- Save
8) Change storage options.
- Be CAREFUL here.
- If you changed directories you should see the NEW directory listed in "Default PATH setting".... This is where I got confused.
- The OLD path (from the previous server) should be listed under "Current PATH setting"
- DON'T TYPE ANYTHING IN NEW PATH OR NEW URL SETTING
- Click on the box "check here to revert values back to default"
- Click UPDATE
- One more time, Click on the box "check here to revert values back to default"... (I believe it does this to confirm)
- Click UPDATE
- Verify that CURRENT PATH and DEFAULT PATH now match.
9) Check the config files.
- From the admin panel, pick Edit Config from the left menu.
- Verify that your information is correct.
- Also check the integration if applicable. Pick Edit Integration.
10) Verify your gallery functionality.
- Open a web browser and check the functionality as admin.
- Upload a few files on your own (very important to test).
- Re-open your gallery to the public.
Notes:
- Don't forget to change your DNS information on for your selected host.
- If you just changed DNS information, it will take 24 hours for any links to your old URL to start working on the new server. Ie:
http://www.yoursite.com may be in the configuration and links may not work properly until DNS points to the new host IP address.