Virtualmin Pro on Mac OS X Server?

73 posts / 0 new
Last post
Tue, 07/24/2007 - 19:00 (Reply to #51)
Joe
Joe's picture

<div class='quote'>Anything wrong with this?</div>

Nope. Sounds like all of your services will agree, so you're fine. I just didn't catch that you had a special volume for Virtualmin.

--

Check out the forum guidelines!

Wed, 07/25/2007 - 22:10 (Reply to #52)
tony.p

Cool! Yes that's why I was afraid something [suexec/VM/etc.] might not like it. ;)

Ok well I have some more questions now regarding the handling of the PHP wrapper and the initial handling of the php.ini files thru VMPro.

Because I am using MacPorts packages for PHP I had to change the wrapper script for PHP5 to look like this:

#!/bin/sh
PHPRC=$PWD/../etc/php5
export PHPRC
PHP_FCGI_CHILDREN=4
export PHP_FCGI_CHILDREN
exec /opt/local/bin/php-cgi

The problem is now that VMPro seems to simply ignore that I have PHP5 installed. &quot;System Information&quot; shows always PHP Version 4 and after creating a new virtual server it uses the PHP4 wrapper script instead of the PHP5 one!? Weird!
Is there any way I can let VM know WHAT PHP version i have installed? The only thing I found that I could change was the PHP-Configuration in Webmin!?

Thanks,
Tony

Thu, 07/26/2007 - 17:31 (Reply to #53)
tony.p

Ok here is a quick update...
This morning I updated Webmin to 1.351 and VMPro to 3.44. Now it seems to be able to setup the right wrapper for the installed version of PHP to the virtual servers home directory. Great! Now let me check what happens if I install PHP4 as well. Anything in particular I would have to look out for?

Will let you know how it goes...

Tony

Thu, 07/26/2007 - 17:39 (Reply to #54)
tony.p

Oh here is something that is bugging me and I could not find out how to solve this. When I try to install ANY of the VMPro third party scripts it downloads the script and then I get this error message:

Now installing PHP-Calendar version 0.10.7 ..
HTTP/1.0 500 Perl execution failed Server: MiniServ/0.01 Date: Thu, 26 Jul 2007 15:35:34 GMT Content-type: text/html Connection: close
Error - Perl execution failed

setrgid() not implemented at /usr/local/webmin-1.351/proc/proc-lib.pl line 161.

Fri, 07/27/2007 - 08:44 (Reply to #55)
Joe
Joe's picture

Ah, this is a limitation of Webmin on Mac OS X, I think...and it might mean Install Scripts won't work just yet.

I'll ask Jamie to chime in with a definitive answer on whether this is fixable short-term.

--

Check out the forum guidelines!

Fri, 07/27/2007 - 08:50
Joe
Joe's picture

I've seen this before on MacOS with Webmin - it means that the Perl function to change a process's Unix group is not implemented, which is bad because switching from root to the user and group for a domain is a critical for certain Virtualmin functions.

However, I believe that it is fixed in later versions of Perl .. if possible, you might want to try upgrading Perl on your OS X box. It may be necessary to re-compile it from the source.

--

Check out the forum guidelines!

Sun, 07/29/2007 - 19:25 (Reply to #57)
tony.p

Thanks Joe, Jamie...

it does look like I need to upgrade the Perl version I am using (right now using 5.008006). Well I could update to 5.8.8 do you think that should work then!? Could you point me to the section in Webmin where I can specify what Perl version it should use?

Thanks,
Tony

Sun, 07/29/2007 - 19:42 (Reply to #58)
tony.p

Hey this is funny...
In the system overview of Webmin/Virtualmin I get a Perl version 5.008006 but in Webmin &gt; Others &gt; Perl Modules it shows &quot;Perl version 5.8.6&quot;?!? Maybe that has something to do with this?

Sun, 07/29/2007 - 22:13 (Reply to #59)
Joe
Joe's picture

Perl version numbers are funny. 5.008006 IS 5.8.6. It's for version sanity in the event of a 5.8.666 release, for example (it'll always sort correctly without having to jump through hoops).

--

Check out the forum guidelines!

Mon, 07/30/2007 - 02:28
Joe
Joe's picture

Yeah, the Perl version shown in Webmin is the internal version number, available from the $] variable .. this is a number that can be reliably compared with other versions, whereas comparing 5.8.6 with 5.18.6 is not so clear :-)

That said, you should definately upgrade to 5.8.8 if possible - it may fix this bug.

--

Check out the forum guidelines!

Mon, 07/30/2007 - 07:12 (Reply to #61)
tony.p

I see.. and is there any way I can tell Webmin WHERE my Perl distro is located, or is it always using the one that comes preinstalled with the system?

Thanks,
Tony

Mon, 07/30/2007 - 22:42
Joe
Joe's picture

Yep, there were two places you need to fix. Also, in the file proc/proc-lib.pl lines 161 and 167 need to be changed to :

($(, $)) = ($_[2], &quot;$_[2] $_[2]&quot;);

($(, $)) = ($u[3], &quot;$u[3] &quot;.join(&quot; &quot;, $u[3], &amp;other_groups($u[0])));

This should fix the original problem of script installs not working.

Since you appear to be already running Perl 5.8.8 , upgrading isn't likely to help.

To be sure you are really running 5.8.8, make sure that the Perl path at the top of Webmin CGI scripts is consistent (/usr/bin/perl), and that /usr/bin/perl -v reports 5.8.8, and that Webmin has been restarted since Perl was upgraded.

--

Check out the forum guidelines!

Tue, 07/31/2007 - 06:52 (Reply to #63)
tony.p

Ok thanks Jamie,

will give it a spin. But why does Webmin report Perl 5.8.6 and not 5.8.8 but yet the path seems to be consistent thruout the scripts?

Tue, 07/31/2007 - 07:04 (Reply to #64)
tony.p

Quick feedback...

install seems to work fine now.

Thanks,
Tony

Sat, 02/23/2008 - 03:18
tony.p

Hey Joe, Jamie

I thought I continue with this thread instead of opening a complete new one. I have some issues after updating VM Pro and Webmin/Usermin now to:

Virtualmin Pro: 3.51 (including the VM Pro framed theme)
Webmin: 1.400
Usermin: 1.330

I have trouble with:

1. FileManager (just like in all versions before as well :(
This is the error I get when I try to access it:
<div class='quote'>Failed to get language list: javax.net.ssl.SSLHandshakeException:java.security.cert.CertificateException:Java couldn't trust Server</div>

2. Disk Quotas (on System Information page)
I only get to see the diskspace used by MySQL DBs, nothing else?! But looking directly at the &quot;Disk Quotas&quot; /&quot;Filesystem Quotas&quot; module in webmin, everything is reported correctly there!? :(

3. BSD Firewall (not working AT ALL!)
Firewall (ipfw) worked fine back in webmin 1.3x but after upgrading to 1.39 and then to 1.400 it broke and all i get now is:
<div class='quote'>Error - Perl execution failed

Undefined subroutine &amp;net::get_rc_conf called at ./ipfw-lib.pl line 21.
Compilation failed in require at /usr/local/webmin-1.400/ipfw/index.cgi line 4.</div>

4. Bandwidth Monitoring (not working AT ALL!)
This really is a bummer because I need the Bandwidth Monitoring right now more then ever. The webmin module throws this error:
<div class='quote'>require ipfw/install_check.pl failed :

Died at (eval 81) line 4.</div>
In VM Pro -&gt; &quot;System Settings&quot; -&gt; &quot;Bandwidth Monitoring&quot; i don't get execution errors BUT when I click &quot;Show Usage Graph&quot; all I get is:
<div class='quote'>No bandwidth usage statistics have been collected yet.</div>
I have &quot;Bandwidth monitoring active&quot; for all domains I am hosting currently but don't get any stats on any of them. :(

Thanks and sorry for this long post ;)
Tony

ps: I did start a seperate thread on the Webmin forum about this Bandwidth Monitoring / Firewall problem as well if you want to check it out...
<a href='http://www.virtualmin.com/forums/webmin/bsd-firewall-%26amp%3b-bandwidth... target='_blank'>http://www.virtualmin.com/forums/webmin/bsd-firewall-%26amp%3b-bandwidth...

Sat, 02/23/2008 - 10:59 (Reply to #66)
Joe
Joe's picture

Hi Tony,

Those all sound like bugs .. could you file a bug for them at http://www.virtualmin.com/bug-tracker/ ? I will pick it up and post replies there. It's easier to track the state of a problem this way ..

--

Check out the forum guidelines!

Sat, 02/23/2008 - 11:54 (Reply to #67)
tony.p

Jamie...

will do.. not sure what OS I should file it under!? Since BSD and OSX are not listed there!? Oh well.. will file it now under ALL then if you don't mind..

Thanks,
Tony P.

Sun, 02/24/2008 - 05:54 (Reply to #68)
tony.p

Joe/Jamie...

I just submitted all bugs on the tracker I reported here. However today I had a brief look at the tracker again and 2 of 4 bugs are completely deleted?!

I submitted the bugs in order I listed them on here but the once about FileManager and Firewall are missing!? Please don't tell me I have to resubmit them again? :(

Tony

Sun, 02/24/2008 - 11:16 (Reply to #69)
Joe
Joe's picture

Hi Tony,

I saw your four bugs, and closed two of them with solutions or comments. I also commented on the other two, asking for more info.
When you look for them in the tracker, make sure you search for closed bugs too.

--

Check out the forum guidelines!

Mon, 02/25/2008 - 00:59 (Reply to #70)
tony.p

Jamie..

thanks for checking it out and sorry but I was certain that I even checked the closed ones as well. I sorted the list using the advanced options.. oh well..
I saw your comment btw. on the filemanager issue. Will check it out now!

Tony

Thu, 02/28/2008 - 09:18
tony.p

Hi guys...

I get this warning about webmin/virtualmin does not know how to check memory usage on OSX so I was just thinking.. how about doing it this way?

top -FR -o cpu -n 10 -l 2 | tail -10

which outputs something like:
[code:1] PID COMMAND %CPU TIME #TH #PRTS #MREGS RPRVT RSHRD RSIZE VSIZE
463 ntpd 0.0% 0:03.95 1 11 0 0B- 0B- 428K 27.1M
66 notifyd 0.0% 0:04.43 2 118 0 0B- 0B- 496K 27.2M
117 dovecot-au 0.0% 0:01.70 1 15 0 0B- 0B- 632K 26.8M
1 launchd 0.0% 0:01.82 3 248 0 0B- 0B- 620K 27.7M
251 httpd 0.0% 0:05.92 1 10 0 0B- 0B- 8.52M 134M[/code:1]

Do you think you could use this to build in memory usage for OSX as well in a future version!?

Tony

Thu, 02/28/2008 - 09:28 (Reply to #72)
Joe
Joe's picture

The 'top' command isn't too useful, as it only runs interactively and cannot be called from another program ..
What I really need is something like the Linux 'free' command.

--

Check out the forum guidelines!

Pages

Topic locked