Apache error when adding a new virtual server

9 posts / 0 new
Last post
#1 Wed, 04/11/2007 - 13:03
thetitan

Apache error when adding a new virtual server

webmin 1.340 usermin 1.270 virtualmin 3.39.gpl

When i add a new virtual server i receive the following error:

Adding Apache user apache to server's group .. .. done

.. Apache website failed! : Undefined subroutine &main::save_domain_ruby_mode called at /usr/libexec/webmin/virtual-server/feature-web.pl line 1856.

when i check apache, the virtualhost is created and running, but when managing the virtual server "Web virtual server enabled?" is not checked. When i try to delete the server, everything is removed with exception of the the apache virtualhost. The above error prevents virtualmin from "remembering" that the virtualhost exists.

before today i was not receiving this error. The only new thing i did today was to install usermin. Before the installation Webmin was 1.340 and virtualmin was 3.39.gpl.

Any suggestions on how to fix this without uninstalling usermin?

Sun, 06/07/2009 - 07:02
thetitan

OK, I decided to review the source code myself.

this is what i see:

1854: if ($tmpl->{'web_ruby_suexec'}]= 0) {
1855: # Setup for Ruby
1856: &save_domain_ruby_mode($d,
1857: $tmpl->{'web_ruby_suexec'} == 0 ? "mod_ruby" :
1858: $tmpl->{'web_ruby_suexec'} == 1 ? "cgi" : "fcgid",
1859: $port, 1);
1860: }
1861: }

It appears that it wants to do somethign with Ruby. Mod_ruby is not an active module in my apache config. In addition Ruby is not installed on my server, and i do not want to install it at the moment.

Are there any elements in the most current releases of webmin and virtualmin.gpl that use/require Ruby?

Sun, 06/07/2009 - 07:02
thetitan

OK, I decided to review the source code myself.

this is what i see:

1854: if ($tmpl->{'web_ruby_suexec'}]= 0) {
1855: # Setup for Ruby
1856: &save_domain_ruby_mode($d,
1857: $tmpl->{'web_ruby_suexec'} == 0 ? "mod_ruby" :
1858: $tmpl->{'web_ruby_suexec'} == 1 ? "cgi" : "fcgid",
1859: $port, 1);
1860: }
1861: }

It appears that it wants to do somethign with Ruby. Mod_ruby is not an active module in my apache config. In addition Ruby is not installed on my server, and i do not want to install it at the moment.

Are there any elements in the most current releases of webmin and virtualmin.gpl that use/require Ruby?

Thu, 04/12/2007 - 17:56
Joe
Joe's picture

Hey Alexandar,

If you see a perl error, it's a bug. File a bug about it, and it'll get fixed.

Virtualmin does not require Ruby, though we have begun adding a lot of Ruby support lately--this is just a bit of that that seems to have slipped in before support was complete. It's a bug. You don't need to install ruby or mod_ruby.

--

Check out the forum guidelines!

Fri, 04/13/2007 - 10:32
Tue, 04/17/2007 - 05:44
NicholasChua

added web_ruby_suexec=-1 to the templates.

Now its complaining that httpd is not running.

Applying web server configuration ..
.. not running!

Tue, 04/17/2007 - 07:18
thetitan

Have you started apache? Maybe you r stopped it for some reason and forgot to start it again.

Tue, 04/17/2007 - 23:38
NicholasChua

Apache is running all this while.

Wed, 04/18/2007 - 10:14
TonyShadwick

The "apache is not running" bit is an apache module config thing. I had a similar issue on FreeBSD. Make sure that whatever is set for the location of the PID file really is the pid file, and that it matches the running process. If not, either change the module config to point to the pid file's location, or change apache's config to write the pid file where webmin is looking for it. :)

Topic locked