![]() ![]() images/icon.gif The icon displayed on the main menu for this module. This file contains information about the module and the operating systems it runs under. It will differ depending on which operating system Webmin is installed.įor a module to be displayed on the main Webmin menu, it should contain at least the following files. ![]() You can find this base directory by looking at the root line in your /etc/webmin/nf file. For example, if the Webmin base was /usr/libexec/webmin,Ī module called foobar would be created or installed in /usr/libexec/webmin/foobar. Even though you can just stick any existing CGI script into a module directory, this is not a good idea.Įvery module has its own directory under the Webmin base directory, in which all the module's CGI programs and configuration files must be stored. However, there are certain rules that should be followed to make sure that they work with the Webmin API, main menu, and access control system. For these reasons, using Perl is strongly recommended.Īt their simplest, modules are really just directories of CGI programs that Webmin's web server runs. Modules written in other languages will not be displayed using the standard Webmin UI and will not be able to call its API. The aim is for modules to be as portable as possible across different Unix systems and CPU types. A module should be written entirely in Perl, with no C functions or external binary programs. However, to make use of the Webmin API Perl version 5.8 or above should be used. Modules can theoretically be written in any language. Some complex system functions may even be split over several modules - for example, disk partitioning, mounting disks, and disk quota management are 3 separate modules in the standard Webmin distribution. A module can be thought of as something like a Photoshop plugin or iPhone application - it can be written by someone other than the developers of Webmin and distributed under a license the developer chooses.Ī module should be written to administer one service or server, such as the Unix password file or the Apache web server. Webmin is designed to allow the easy addition of new modules without changing any of the existing code. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |