> That said, if you really, /really/ must go about it this way, you have a
> couple of choices:
>
> Setup Webmin to run under Apache. This will allow you to run PHP
Is it really needed? I read no mention about it! (nor I understand it!)
while I managed to use w/ success webmin.py (python library, used only to
test the example), I was not able to run any example in php.
I'd like to know if somebody knows of a module written in php, the author
of web-lib.php (Nicolas Faurant) did not write an e-mail in the file, and
provided no examples, please, if you read this, let us know...
Here is the misbehaviour:
If the php script contains #!/usr/bin/php4, that same string will be
output to the browser and a warning will be issued:
Warning: Cannot add header information - headers already sent by (output
started at /usr/share/webmin/uptimephp/index.cgi:2) in
/usr/share/webmin/web-lib.php on line 25
if '-q'(quiet) option is used, no header is issued by php4 and "no input
specified" appears in the browser.
I have no problem w/ cgi scripts in bash, tcl, python, awk... what has php
special?
Thanks in advance for any reply
sandro
*:-)
--
Sandro Dentella *:-)
e-mail: sandro.dentella@...
http://www.tksql.org TkSQL Home page - My GPL work

Got three years to spare? ;-) (Webmin has been under serious
development for at least that long...)
To answer your question more seriously:
If you have to ask these kinds of questions, you're not going to have
the skills needed to reinvent even a small part of Webmin for some time
to come, regardless of the language used. A serious PHP /and/ Perl
hacker with some C skills could probably come up with appropriate glue
to allow you to write integrated Webmin modules in PHP given enough time
and inclination.
I'm pretty sure the easier path is simply to learn perl well enough to
write your module(s) in the language that Webmin currently uses. You'll
find Perl to be not much different than PHP, when it comes down to the
actual gritty bits that do all the work--some things will be easier,
while other things will be harder. Depending on your programming
experience, and enthusiasm, you could potentially be writing reasonably
good module code in under a month (that's about how long it took me to
start writing real useful modules--nothing like Jamie's best modules,
but not entirely ugly, either).
That said, if you really, /really/ must go about it this way, you have a
couple of choices:
Setup Webmin to run under Apache. This will allow you to run PHP
programs alongside Webmin. You'll then need to teach your PHP modules
how to deal with ACLs from Webmin, and will also have to have all of the
normal Webmin files (config.info, module.info, etc.). This isn't really
writing a Webmin module in PHP, but it will look roughly like a Webmin
module, and depending on how clever you are with PHP you can probably
make it act extremely similar to a Webmin module.
Start with some other similar project that is already written in PHP.
There are a few out there, I'm sure. Everybody and his brother who has
learned a few lines of PHP has had the same thought: "This is easy! I
could write a cool program to do ________." A few of them have probably
even gotten some working code out there. So look for something that
addresses some or all of your needs, and build from there. You won't
find anything even approaching Webmin's functionality, but maybe you
don't need all of the functionality of Webmin for your project.
In all cases, beware of security issues...It is real easy to build
something that will allow any random user to own your server.
Yohanes Adi Gunawan wrote:
> i'm a newbie and i'm trying to create a site that can function like webmin
> only i'm going to use php?
> is it possible to create something simillar to webmin from php?
> if it is then can anyone give me any hint how can I call webmin's function
> from php?
> or do i have to create my own modules under php?
--
Joe Cooper <joe@...>
Web caching appliances and support.
http://www.swelltech.com

i'm a newbie and i'm trying to create a site that can function like webmin
only i'm going to use php?
is it possible to create something simillar to webmin from php?
if it is then can anyone give me any hint how can I call webmin's function
from php?
or do i have to create my own modules under php?

Jannetta S Lewis wrote:
> Hi folks
>
> I somehow messed up my upgrade from 0.990 to 1.000 and I now get the
> following error at the end of the setup:
>
> Starting Webmin server in /space/webmin-1.000
> Failed to open SSL key at /space/webmin-1.000/miniserv.pl line 171.
> ERROR: Failed to start web server!
>
> Is there a way of recreating the SSL key, or copying it from it's old
> position?
Check the keyfile= line /etc/webmin/miniserv.conf for the path that
webmin is looking for the SSL key at, and copy it from
/space/webmin-1.000/miniserv.pem to wherever the keyfile line points to.
- Jamie

Hi folks
I somehow messed up my upgrade from 0.990 to 1.000 and I now get the
following error at the end of the setup:
Starting Webmin server in /space/webmin-1.000
Failed to open SSL key at /space/webmin-1.000/miniserv.pl line 171.
ERROR: Failed to start web server!
Is there a way of recreating the SSL key, or copying it from it's old
position?
Thanks
Jannetta
================================================================
Jannetta S Lewis
email: jannetta@...
home page: http://bright-ideas.keystroke.info
================================================================

Tarjei Huse wrote:
> Hi,
>
> I got a module that I want to have installed with a different language than the
> rest of webmin. How do I do that?
Not currently possible.. you can create a user who uses a different language,
but there is no way to set a module to use a different language to the rest of
webmin.
- Jamie

Hi,
I got a module that I want to have installed with a different language than the
rest of webmin. How do I do that?
Tarjei
-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/

Wil Cooley wrote:
> On Wed, 2002-10-02 at 17:37, Jamie Cameron wrote:
>
>>The file should be called module.info, not modules.info . Also, because webmin
>>caches this file you need to delete /etc/webmin/module.infos.cache every time
>>you modify it, so that the cache is re-loaded.
>>
>
> Is this cache file new in the last few versions? I don't seem to recall
> seeing it before.
Yes .. it was introduced in version 0.950, to save every page from having to
read all the module.info files to display the category icons at the top.
- Jamie

Yup just thought that a little more makeup would make the old girl(I'm not
a sexist this is just a real good analogy)
and no one would know about the boo-boo(very small error in relation to the
world).
Bob Teeter
Jamie Cameron <jcameron@...>@lists.sourceforge.net on 10/03/2002
07:00:00 PM
Please respond to webadmin-devel@...
Sent by: webadmin-devel-admin@...
To: webadmin-devel@...
cc:
Subject: Re: System Identification for Redhat 8.0
Robert_Teeter@... wrote:
> When the 1.0 webmin is installed it is identified as 7.4.
> Jamie Could you do a minor edit to correct this to 8.0.
Yeah, this is already done .. unfortunately, when the 'null'
beta of redhat 8.0 came out, it was version number 7.3.99.
So I assumed that the next official redhat release would be 7.4 :(
Fortunately this is just cosmetic, and having webmin think you are
running redhat 7.4 will cause no harm.
- Jamie
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
-
Forwarded by the Webmin development list at webmin-devel@...
To remove yourself from this list, go to
http://lists.sourceforge.net/lists/listinfo/webadmin-devel

Robert_Teeter@... wrote:
> When the 1.0 webmin is installed it is identified as 7.4.
> Jamie Could you do a minor edit to correct this to 8.0.
Yeah, this is already done .. unfortunately, when the 'null'
beta of redhat 8.0 came out, it was version number 7.3.99.
So I assumed that the next official redhat release would be 7.4 :(
Fortunately this is just cosmetic, and having webmin think you are
running redhat 7.4 will cause no harm.
- Jamie

http://www.swelltech.com/support/webminguide/x320.htm#WMPORTADDRESS
Steve M Bibayoff wrote:
> Is there a way (or easy way to implement) to have miniserv.pl only
> listen for connection comming form a certain network? See Sendmail,
> Apache, etc... for examples.
>
> I currently just use iptables to block the port I'm using, but thought
> there might be a more eloquant way.
>
> Steve
--
Joe Cooper <joe@...>
Web caching appliances and support.
http://www.swelltech.com

Is there a way (or easy way to implement) to have miniserv.pl only
listen for connection comming form a certain network? See Sendmail,
Apache, etc... for examples.
I currently just use iptables to block the port I'm using, but thought
there might be a more eloquant way.
Steve

Sorry that was a typo, I do have a module.info file. I have just had a
look and there is no module.infos.cache file and the description still
doesn't show up?!?
On Thu, 3 Oct 2002, Jamie Cameron wrote:
> Jannetta S Lewis wrote:
>
> > Could someone perhaps assist a dumb newbie. I am working my way through
> > the documentation on creating a new module for webmin. I created the
> > directory, the images dir, the index.html and the modules.info file.
> > However, despite the fact that I have a desc=description line in
> > modules.info, the name of the module does not appear under the icon. What
> > is wrong?
>
>
> The file should be called module.info, not modules.info . Also, because webmin
> caches this file you need to delete /etc/webmin/module.infos.cache every time
> you modify it, so that the cache is re-loaded.
>
> - Jamie
>
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> -
> Forwarded by the Webmin development list at webmin-devel@...
> To remove yourself from this list, go to
> http://lists.sourceforge.net/lists/listinfo/webadmin-devel
>
>
================================================================
Jannetta S Lewis
email: jannetta@...
home page: http://bright-ideas.keystroke.info
================================================================

Jannetta S Lewis wrote:
> Could someone perhaps assist a dumb newbie. I am working my way through
> the documentation on creating a new module for webmin. I created the
> directory, the images dir, the index.html and the modules.info file.
> However, despite the fact that I have a desc=description line in
> modules.info, the name of the module does not appear under the icon. What
> is wrong?
The file should be called module.info, not modules.info . Also, because webmin
caches this file you need to delete /etc/webmin/module.infos.cache every time
you modify it, so that the cache is re-loaded.
- Jamie

Could someone perhaps assist a dumb newbie. I am working my way through
the documentation on creating a new module for webmin. I created the
directory, the images dir, the index.html and the modules.info file.
However, despite the fact that I have a desc=description line in
modules.info, the name of the module does not appear under the icon. What
is wrong?
================================================================
Jannetta S Lewis
email: jannetta@...
home page: http://bright-ideas.keystroke.info
================================================================