Moved domains, zp is unhappy

Previously, my zp install was at

http://www.example.com/gallery

Now I would like to have it at

http://gallery.example.com

I 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

  • acrylian Administrator, Developer
    Yes, setup scripts should be deleted (security you know?) after installation.

    What you need to do is:
    1. Reupload the setup scripts.
    2. Run the setup script.
  • When you relocate your gallery you always need to run setup to adapt to the new location. For that you probably have to upload the script files again since (hopefully) you removed them on the original setup as suggested.
  • There is some other step that must be required, because simply rerunning setup left me without CSS, no photos, etc.

    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?
  • acrylian Administrator, Developer
    My guess, it is about wrong permissions, setup should warn/tell about (but note that strict+ does not work on many hosts).

    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.
Sign In or Register to comment.