Book Image

Webmin Administrator's Cookbook

By : Michal Karzynski
Book Image

Webmin Administrator's Cookbook

By: Michal Karzynski

Overview of this book

Table of Contents (19 chapters)
Webmin Administrator's Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Creating a panel for the commands that you execute often


There are some commands that you will find yourself running over and over again. In such cases, you may wish to use Webmin's Custom Commands module to create a convenient control panel from which you can run your command with the click of a button.

Tip

Using this feature, you can also allow some users to run a command as a different user. It's also useful as an alternative to creating scripts and a way to store the syntax of long or complicated commands.

Getting ready

In this recipe, we will create a custom button that uses the drush command to clear caches of a Drupal site. You will probably want to use a different command, so make a note of its syntax and the directory you want to execute it in before you begin.

How to do it...

In order to create a custom command button, follow these steps:

  1. Navigate to Others | Custom Commands.

  2. Click the link marked Create a new custom command.

  3. Provide a short Description of the command, for instance: Clear...