JamieCameron (Admin)
Posts: 342
|
| Re: Remote API, and apache server. 2007/04/19 19:21 |
|
|
Webmin CGIs generally don't work too well when run from the command line .. you should try it from the web instead.
|
|
|
|
The administrator has disabled public write access. |
TonyShadwick (User)
Posts: 140
|
| Re: Remote API, and apache server. 2007/04/19 19:23 |
|
|
Okay. :)
Error - Missing Content-Type Header
Thus the reason I ran it from the command line. :D
Now what?
|
|
|
|
The administrator has disabled public write access. |
JamieCameron (Admin)
Posts: 342
|
| Re: Remote API, and apache server. 2007/04/19 19:40 |
|
|
Hmm .. I presume this module is in a sub-directory under /usr/libexec/webmin (a real directory, not a symlink to elsewhere) ?
|
|
|
|
The administrator has disabled public write access. |
TonyShadwick (User)
Posts: 140
|
| Re: Remote API, and apache server. 2007/04/19 19:44 |
|
|
Yeah. Really confused. : usually I can run from the command line to find the error, but in this case, it more or less is telling me that init_config isn't available. Any way to get miniserv.pl to spit out some useful logging?
|
|
|
|
The administrator has disabled public write access. |
TonyShadwick (User)
Posts: 140
|
| Re: Remote API, and apache server. 2007/04/19 19:48 |
|
|
I found miniserv.error in /var/webmin, which is nice and all, but um...
[[19/Apr/2007:19:04:24 -0500]] Reloading configuration [[19/Apr/2007:19:04:31 -0500]] [[208.231.66.99]] /apache-cluster/ : Missing Content-Type Header [[19/Apr/2007:19:06:04 -0500]] [[208.231.66.99]] /apache-cluster/ : Missing Content-Type Header [[19/Apr/2007:19:07:13 -0500]] [[208.231.66.99]] /apache-cluster/ : Missing Content-Type Header [[19/Apr/2007:19:07:16 -0500]] [[208.231.66.99]] /apache-cluster/ : Missing Content-Type Header [[19/Apr/2007:19:14:24 -0500]] [[208.231.66.99]] /apache-cluster/ : Missing Content-Type Header
That's not useful. I already knew that. :)
|
|
|
|
The administrator has disabled public write access. |
TonyShadwick (User)
Posts: 140
|
| Re: Remote API, and apache server. 2007/04/19 20:08 |
|
|
Ugh, nevermind.
I didn't have +x on the files in that directory. Don't know why I didn't think of that before. :(
|
|
|
|
The administrator has disabled public write access. |
TonyShadwick (User)
Posts: 140
|
| Re: Remote API, and apache server. 2007/04/19 20:53 |
|
|
Sorry for being a pest tonight, one last question -
I'm looking at the cluster file copy module, and wondering whether it would be wiser to somehow use Webmin's API and instruct the system to "do the copy right now", or use another method, as I need to somehow delegate replica systems from non-replica systems.
I'm open to ideas. The other thought I had was polling interest from the community here and if there's significant interest in having this done a certain way, open a bounty on it so I dedicate additional labor hours to doing it the way the community would be happy with (as I'm seeing webmin can actually manage user permissions as well, it would actually be possible for webmin to handle the whole thing, presuming that a webmin box were the load balancer too...not my configuration, but certainly feasible).
|
|
|
|
The administrator has disabled public write access. |
JamieCameron (Admin)
Posts: 342
|
| Re: Remote API, and apache server. 2007/04/19 23:29 |
|
|
For the copy, have a look at how the cluster copy module does it - basically, it uses the remote_write function, which can transfer a file from one Webmin server to another via an RCP-over-HTTP request. Of course, this would only work if you have each domain's Apache config in a separate file, which is the default for most Linux distros ..
|
|
|
|
The administrator has disabled public write access. |
TonyShadwick (User)
Posts: 140
|
| Re: Remote API, and apache server. 2007/04/20 08:37 |
|
|
Actually, it isn't default on FreeBSD, but then I reconfigured it to be that way. :)
I guess I should put a check for that - or httpd.conf would get transferred every time.
|
|
|
|
The administrator has disabled public write access. |
TonyShadwick (User)
Posts: 140
|
| Re: Remote API, and apache server. 2007/04/20 19:13 |
|
|
This is only semi-related, but I have a question, or perhaps a feature request. :)
I'm using this on my index.cgi:
use HTML::Prototype;
$header_html = &header_html();
&header($text{'module_title'}, "", "", "", "", "", "", $header_html);
That subroute basically loads prototype.js and scriptaculous.js which I have nested in apache-cluster/js/:
sub header_html { $header_html = ' [script type="text/javascript" src="/apache-cluster/js/scriptaculous.js">Grab me. GRAB ME!!!!
';
print $prototype->draggable_element('grabme');
It results in a nice draggable tile. The not-so-good - probably shouldn't go bundling a separate copy of prototype and scriptaculous with modules. I know I'm going to be writing at least one other module (Asterisk Provisioning) after this one, and if everyone were doing this, we'd have dozens of copies of the same .js files floating around. Any chance you might consider bundling a copy into Webmin for calling in? If not, it's not big deal. This works fine for me right now. :)
|
|
|
|
The administrator has disabled public write access. |
|