ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Temporarily prevent access to system area during migration

January 22, 2011 7:56pm

Subscribe [5]
  • #1 / Jan 22, 2011 7:56pm

    Eric Snyder

    202 posts

    Is there a graceful way to prevent access to the system area on the old server while a site is migrating? I thought that the easiest way would be to just rename the system’s index.php file. I only want to block access on the old server - not the new server.

  • #2 / Jan 22, 2011 7:58pm

    airways

    154 posts

    I would rename the index.php file, and create a replacement that has a nicely formatted message to indicate that the migration is underway. You could also take the system offline, but that shuts down the front-end too. I’m not aware of a way to just turn off the CP, but maybe the Ellis Labs peeps are.

  • #3 / Jan 22, 2011 8:02pm

    Eric Snyder

    202 posts

    Exactly, although it never hurts to ask. Have you actually done this?

  • #4 / Jan 22, 2011 8:13pm

    airways

    154 posts

    Sadly, I haven’t yet but it does seem like the best solution to me. I guess it also depends on what your main goal is in the migration lock out - if it’s to stop database changes and you have commenting or other user generated content then this obviously only goes half way. You’d have to block the user generated content some other way.

  • #5 / Jan 22, 2011 10:44pm

    Davor

    114 posts

    As airways sad, it depends what is your main goal,
    but if I got this right, in this situations I always close access to CP for almost all user groups, you can limit their access, super admins have always access. I guess your site is already in offline mode, even not necessary.

    [EE2] In your member group preferences (select your member group > edit group) you have “Control panel access” tab, you can set there ‘No’ for groups you don’t want to access and change something. You also have ‘Site access’ tab.

    I hope this helps

  • #6 / Jan 24, 2011 2:45am

    John Henry Donovan

    12339 posts

    Eric Snyder,

    If you simply wish to prevent access to your site while performing maintenance or aesthetic updates then use the Turn System off option in the General configuration.

    For a version or build update, it is recommended that you take your site offline for the duration of the update so that people visiting your site won’t see any PHP errors or other anomalies that may occur while you are uploading files. Here is one approach:

      1. Copy system/expressionengine/utilities/offline.html to your main directory (the same place you have your main index.php file).
      2. Rename offline.html to index.html. Now your visitors will see the “offline” page while you update your site.

    Does that help?

  • #7 / Jan 24, 2011 10:20am

    Davor

    114 posts

    I think he wants to leave site online only disable any content be changed in the meantime 😊

  • #8 / Jan 24, 2011 4:02pm

    Ingmar

    29245 posts

    I’m afraid there is no supported way to do just that, although I don’t see why renaming the “system” directory temporarily shouldn’t work.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases