Control Webmin with XML-RPC

Source: Internet
Author: User

I want to get this Webmin thing recently. I'll take a closer look.Code, Coupling is really tight. Now you want to manage the server. It is impossible to rewrite a set of solutions by yourself. In this case, modify Webmin and rewrite some modules I use.

1 use soap: Lite package

This package contains common packages such as XML-RPC and soap.

2 install Apache + perl cgi

Add in Conf. php

Options + execcgi
Addhandler CGI-script. cgi. pl
Alias/Webmin-RPC/"/usr/local/Webmin-RPC/" Create a test script #! /Usr/bin/perl
Print "Content-Type: text/html/n ";
Print "Hello, world."; grant the chmod a + X first. pl 3 permission. My initial idea is to use XML-RPC to call Linux-side perl scripts. Basically script or inside, other modules under the CGI function are very easy, anyway, the inside generated HTML place removed. The result is returned as an XML file to the manager.

Trackback: Postid = 477463

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.