Previously, my zp install was at
http://www.example.com/galleryNow I would like to have it at
http://gallery.example.comI was hoping it was as simple as doing a "cp -Rp" of everything in /gallery to the root of my new domain but...I consistently get:
"setup scripts missing"
I tried editing .htaccess to change RewriteBase (it was /gallery, changed it to /), also tried explicitly setting WEBPATH and SERVERPATH in zp-data/zp-config.php, but that did not fix it.
index.php gets as far as checkInstall() but dies in that function.
Just curious what else I should look at.
Comments
What you need to do is:
1. Reupload the setup scripts.
2. Run the setup script.
What I did:
- cp -R everything from www.example.com/gallery to the root of gallery.example.com
- reuploaded zp-core/setup* (including the setup subdir)
- pointed my browser at gallery.example.com, ran through setup (which referred to itself as "upgrade"). Yes, I did copy the setup for the same version of zp.
- viewed my gallery and it was broken images and missing CSS
I don't want to just reinstall and start from scratch, as I'd lose all the metadata and descriptions :-(
I'm quite surprised this is such a major change, since it's just a directory change on the web server from php's point of view.
Any suggestions?
If you don't overwrite the /albums folder and use the same db config you don't loose any data. See the installation instructions on the user guide.