![]() |
|
Moving website - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Moving website (/thread-13868.html) |
Moving website - jwaltrip4 - 09-08-2023 Have website running on one of my servers. Want to move it to new server
When I run setup, it prompts for database info. I give it the info. It then returns: This site can’t be reached test.waltrips.com refused to connect.
if I type the http:/test/waltrips.com, it says the the gallery is being upgraded Moving website - acrylian - 10-08-2023 We have detailed infos about moving sites here: https://www.zenphoto.org/news/moving-and-changing-existing-installations/ If you didn't move any content, you doing a fresh install. If the site is trying to connect via https and you didn't enable it that is probably your server/domain/subdomain being setup for https already. The usual behaviour is to force it so only https is accessbile. Good for security and avoiding duplicated content because the http variant is technically a separate addresss. That forcing is usually a server option so check you server setup, especially if you did all this yourself. Moving website - jwaltrip4 - 10-08-2023 Understand on HTTPS vs HTTP security. I am only going to use local for testing. Is there some setting in Zenphoto that requires https? That I need to change? the conf file in apache is not set up for https, only http Moving website - acrylian - 10-08-2023 Okay, the local testing you didn't mention previously. https is set in the ZP config file. There is also an option on the backend but that is also tied to the config file. Moving website - jwaltrip4 - 10-08-2023 OK... I found the setting. it was already set to http I restored the database from the other server... if I run http://xx.xx.com/zp-core/admin.php, I get back: and it says site cant be reached. Sorry, not an apache expert... what could be causing it to switch to https? Moving website - acrylian - 10-08-2023 There might be an option "server_protocol" in the options table but actually the config setting overrides that. It's basically only used on changing the options on the backend which then updates the config file in turn. The only other ideas are:
Moving website - jwaltrip4 - 10-08-2023 where is the options table? Moving website - acrylian - 10-08-2023 In the database where all tables are? ;-) Moving website - jwaltrip4 - 10-08-2023 Also,... when I look at the "Gallery is undergoing and Upgrade" the "Please Return later" link is https://test.waltrips.com.... Isn't Zenphoto creating that link? Moving website - acrylian - 10-08-2023 Yes if you don't have a custom static siteupgrade page within /plugins/site_upgrade. Moving website - jwaltrip4 - 10-08-2023 Ung... I will have to test recovery at some point.... this was messy, possiblly beacuse it is not an exact copy of original. It is working now, thanks for the help For recovery.... would this be as simple as duplicating all same directory structure, restore all zenphoto and album folders, use same apache config, and restore database? Moving website - acrylian - 10-08-2023 "Recovery" or duplicating is basically the same as moving as described on the link above. The really import part is the order first to copy the albums folder then the database because the database mirrors the filesystem. It will work with db first too but then you loose all db entries for images and albums because no albums means empty albums/images table so they would be imported freshly. Moving website - jwaltrip4 - 10-08-2023 OK...
? Moving website - acrylian - 11-08-2023 Yes, as documented on the link above. You can also copy the cache folder so sized images do not need to be recreated. Moving website - jwaltrip4 - 11-08-2023 OK.... Here is what I did:
Apache/2.4.41 (Ubuntu) Server at test.waltrips.com Port 80 ==================================== |