Global Moxie

http://globalmoxie.com/help/faq/bm1/move-page-directory.shtml

How do I change the page directory?

Instructions for changing the directory and URL where Big Medium 1.x generates a site's files.

This FAQ page is for Big Medium 1.x. It does not apply to Big Medium 2.0 or later.

Big Medium builds HTML pages in two directories (the page directory and the homepage directory), which are established by the Big Medium administrator. These instructions describe how to change the locations of these directories. This may be useful, for example, when moving a site from a test domain or directory to its live production location.

There are two options for doing this:

Option 1: From the command line

If you use a Unix server and you have shell access, this is the easiest way to go. You'll move all of the contents from the old directory into the new one.

  1. From the command line, use the cd command to go to your current page directory. In the example below, change the example path below to match the real path:

    cd /path/to/page/directory_old
    
  2. Move all of the files from the current page directory to your new page directory location (in this case, your web root directory; change the example path below to your actual root directory):

    mv ./* /path/to/page/directory_new
    
  3. In your web browser, sign into Big Medium with a user account that has administrator-level privileges. Under "Setup" in the left-column menu of the Big Medium control panel, click "Site Setup."

  4. Change the URL and path for both the page directory and the homepage directory to their new locations. Click Continue and confirm your settings.

  5. Under "Templates" in the left-column menu, click "Rebuild Pages" and rebuild all pages on the site.

Option 2: From the Big Medium control panel

If you don't have shell access to your server, you can make Big Medium rebuild all of the pages and directories in the new location by resetting a number of settings.

  1. In your web browser, sign into Big Medium with a user account that has administrator-level privileges. Under "Setup" in the left-column menu of the Big Medium control panel, click "Site Setup."

  2. Change the URL and path for both the page directory and the homepage directory to their new locations. Click Continue and confirm your settings.

  3. Go to the Section Editor and, for each main section (you don't have to do this for subsections), click the "Settings" link from the section editor menu. No need to make any changes, just click the "Save" button at the bottom of each section settings page.

  4. If you use the ++ANNOUNCE++ widget on the homepage, click the "Edit Homepage" link in the section editor and re-enter the announcement html.

  5. Go to "Style Settings." No need to make any changes, just click the "Save" button at the bottom of the page.

  6. Go to "Widget Settings." No need to make any changes, just click the "Save" button at the bottom of the page.

  7. Copy any contents from the moxiepix directory located in your "old" page directory to your "new" page directory. For example, if your old page directory was located at

        http://www.example.com/test
    

    ...and your new page directory is located at:

        http://www.example.com/live
    

    ...you would move the contents of test/moxiepix to live/moxiepix. You can do this by using FTP to download the moxiepix directory to your local hard drive, and then uploading the directory back to the new location on the server (be sure that your FTP client is set to "binary" or "raw data" mode).

  8. If you are using a Unix server (Linux, Mac OS X, etc), make sure that permissions for all files in the new moxiepix directory are set to chmod 666 and that the moxiepix directory is set to chmod 777.

  9. If you are using Big Medium version 1.3 or later, repeat steps 7 and 8 for the bm~docs directory (if it exists) in the page directory.

  10. If you have any tips on the site, go to the Tip Editor (under "Content" in the left-column menu). Click the first tip in the list. No need to make any changes, just click "save" to save the tip.

  11. Under "Templates" in the left-column menu, click Rebuild Pages and rebuild all pages on the site.

Note: With this second method, Big Medium does not clean up after itself by removing the old page directory. So, after you're satisfied that everything is indeed working properly, you can delete the contents of your old page directory.