Skip to content

Installing Maintenance Mode

Upload

  1. Unpack the download and copy the MaintenanceLock folder into extensions/Others/ of your Paymenter installation. The main class must end up here:

    /var/www/paymenter/extensions/Others/MaintenanceLock/MaintenanceLock.php
    
  2. Run the commands from the extension's README in the Paymenter directory:

    cd /var/www/paymenter
    php artisan optimize:clear
    composer dump-autoload
    

The folder name must stay MaintenanceLock. The extension looks up its own settings under that name.

Install and enable

  1. In the admin area, open the Extensions group in the sidebar and go to Available Extensions.
  2. Switch to the Ready to Install / Upload tab.
  3. Find MaintenanceLock in the list, click Install and confirm. Paymenter opens the extension's settings page.
  4. Switch on Enabled and save.

Enabling the extension does not lock anything yet. The lock has its own switch, Enable Maintenance Lock, in the extension settings.

The extension has no migrations and creates no tables, so there is nothing else to run.

First-time setup

  1. On the extension's settings page, enter an Access Password.
  2. Pick a value for Lock Dashboard (/dashboard).
  3. Optionally fill in Maintenance Message and Custom HTML (optional).
  4. Leave Enable Maintenance Lock on No and save.
  5. When you want to close the store, set Enable Maintenance Lock to Yes and save. Then open /maintenance in the same browser and enter the password, see Usage.

All settings are described in Configuration.

Warning

Set the password before you switch the lock on. With an empty Access Password, anything typed into the password page unlocks the store.

Updating

  1. Replace the contents of extensions/Others/MaintenanceLock/ with the new version.
  2. Run the two commands from the upload step again.

Your settings are stored in Paymenter's database and are kept.

Uninstalling

  1. Open the extension's settings page (the Extensions list, then edit MaintenanceLock).
  2. Click Uninstall Extension and confirm. This removes the extension and its settings from Paymenter.
  3. Delete the extensions/Others/MaintenanceLock/ folder.

To remove the lock without uninstalling, set Enable Maintenance Lock to No, or switch off Enabled, and save. With Enabled off, the extension is not loaded at all and /maintenance no longer exists.