Activate maintenance mode for yourls from BASH command line

Sometimes, one wants to put a yourls installation into “Maintenance mode” from the command line. Assuming your yourls is installed in /var/www/example.com/x/, the following command will put it in maintenance mode:

touch /var/www/example.com/x/.maintenance

The following command will deactivate maintenance mode:

rm -f /var/www/example.com/x/.maintenance


(Last update on September 1, 2026 was done by Editor F.)

Leave a Reply

Your email address will not be published. Required fields are marked *