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
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.
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,
or
http://xx.xx.com/zp-core/setup.php
I get back:
https://test.waltrips.com/zp-core/setup/index.php?autorun=admin
and it says site cant be reached.
Sorry, not an apache expert... what could be causing it to switch to https?
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:
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?
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?
"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.
OK.... Here is what I did:
Not Found
The requested URL was not found on this server.
Apache/2.4.41 (Ubuntu) Server at test.waltrips.com Port 80
debug.log:
{18003:Fri, 11 Aug 2023 10:24:52 GMT}
NOTICE: A non well formed numeric value encountered in /mnt/Disk1/www/test.waltrips.com/zp-core/setup/class-setup.php on line 307
setup::versionCheck called from index.php [636]