• Resolved mac_master_it

    (@mac_master_it)


    Hi support,
    I need to put offline my website at 3.00AM and come back online at 6.00AM.
    I wanna use a bash script in crontab.
    How can i enable Maintenance from cli?

    BR

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi.

    Thank you for contacting us.

    Unfortunately, it is not possible by default plugin options.

    It is possible only by custom development. If you are interested, please send a request to our Support and we will provide estimation soon.

    http://support.fruitfulcode.com/hc/en-us/requests/new

    Regards.

    I would suggest looking at WP-CLI for this:

    http://wp-cli.org/

    Enable maintenance mode permanently and then you can use these commands to activate or deactivate the plugin (where “webuser” is the user the Web server runs as):

    sudo -u webuser wp –path=/full/path/to/web/tree/root wp –path=/full/path/to/web/tree/root plugin activate maintenance
    (would activate the plugin and switch on maintenance mode)

    sudo -u webuser wp –path=/full/path/to/web/tree/root plugin deactivate maintenance
    (would deactivate the plugin and switch off maintenance mode)

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Enabling plugin from cli’ is closed to new replies.