[Solved] - System not ready for virtualmin

17 posts / 0 new
Last post
#1 Mon, 06/29/2009 - 09:32
theashman

[Solved] - System not ready for virtualmin

Hi i have just installed Virtualmin and there was a system check button at the top of the admin section. after running this i get the following message.

"The status of your system is being checked to ensure that all enabled features are available, that the mail server is properly configured, and that quotas are active .. BIND DNS server is installed, and the system is configured to use it. Mail server Postfix is installed and configured.

The Suexec command on your system is configured to only run scripts under /var/www, but the Virtualmin base directory is /home. CGI and PHP scripts run as domain owners will not be executed.

.. your system is not ready for use by Virtualmin."

I'm running ubuntu 9.04 and used the install.sh script to install Virtualmin.

I decided to do a little test and created a virtual server (by that i assume it means a virtual host for a website) and added ftp and email.

before i uploaded any files i went to domain.tld. it showed me the default apache index.html in /var/www/ that says "It works!". i then logged in via ftp and uploaded a phpinfo file (info.php). On going to domain.tld again it still showed the default index.html page created by apache. so i went to domain.tld/info.php and it said that the file could not be found.

i also performed a virtual server check on the domain and go this: "Beginning validation of selected virtual servers. Any problems found will be shown in red ..

domain.tld BIND DNS domain : The following errors were found in the DNS records : dns_rdata_fromtext: /etc/bind/domain.tld.hosts:9: near '::1': bad dotted quad dns_rdata_fromtext: /etc/bind/domain.tld.hosts:10: near '::1': bad dotted quad dns_rdata_fromtext: /etc/bind/domain.tld.hosts:11: near '::1': bad dotted quad dns_rdata_fromtext: /etc/bind/domain.tld.hosts:12: near '::1': bad dotted quad dns_rdata_fromtext: /etc/bind/domain.tld.hosts:14: near '::1': bad dotted quad dns_rdata_fromtext: /etc/bind/domain.tld.hosts:15: near '::1': bad dotted quad dns_rdata_fromtext: /etc/bind/domain.tld.hosts:16: near '::1': bad dotted quad zone domain.tld/IN: loading from master file /etc/bind/domain.tld.hosts failed: bad dotted quad" Email and FTP work perfectly :) it's just this at the moment.

how can i fix the problems that i am having?

Thanks in advanced

TheAshMan PS. does Virtualmin have an irc channel?

Mon, 06/29/2009 - 09:58
andreychek

Hrm, the install.sh script doesn't actually support Ubuntu 9.04 :-)

The screen that displays after running the installer mentions it only supports Ubuntu 8.04 (an LTS release).

You can certainly run Virtualmin on nearly any distro, it just means you'd have to do some amount of configuration manually.

What I'd recommend doing is reviewing the information for the various services on the manually installing Virtualmin manual:

http://www.virtualmin.com/documentation/installation/manual

You'll need to make the suexec related changes they discuss

Of course, if reinstalling is an option, using Ubuntu 8.04 might save you some time and hassle.

However, it can certainly work on what you have there, you'll just have to do some tweaking ;-)

-Eric

Mon, 06/29/2009 - 10:11
theashman

hi Eric, thanks for the reply! i think you might have a good point about reinstalling. at least 8.04 is supported and most people would be able to help if errors occurred.

I shall reinstall if that is the main point in agreement.

Thanks.

TheAshMan

Mon, 06/29/2009 - 10:24
theashman

i just reinstalled with 8.04 and installed Virtualmin.

I still get this error when rechecking the configuration: "The status of your system is being checked to ensure that all enabled features are available, that the mail server is properly configured, and that quotas are active .. BIND DNS server is installed, and the system is configured to use it. Mail server Postfix is installed and configured.

The Suexec command on your system is configured to only run scripts under /var/www, but the Virtualmin base directory is /home. CGI and PHP scripts run as domain owners will not be executed.

.. your system is not ready for use by Virtualmin."

how do i fix it?

Thanks

TheAshMan

Mon, 06/29/2009 - 10:30
andreychek

Well, two things.

First, that was the fastest reinstall ever :-) I was still formulating a response to your second post.

Second, the error you're seeing there is odd -- I'm not sure why you'd be getting that.

But at least at this point, if you're using a distro supported by the installer, it's a ton easier to troubleshoot :-)

So a couple of questions:

  1. How did you install Virtualmin... you used the install.sh this time as well I assume?

  2. What does this command output: cat /etc/issue

  3. What does this command output: dpkg -l 'apache2*'

Thanks!

-Eric

Mon, 06/29/2009 - 10:44
theashman

hi Eric, thanks again for the quick reply!

I am running on a VPS and my VPS host is amazing when it comes to OS reloads.

1) Yes i did install via the install.sh script as well this time.

2) here you go:

"cat: /etc/issue/: not a directory"

3) also here you go:
root@vps12:/# clear
root@vps12:/# dpkg -l 'apache2*'
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-f/Unpacked/Failed-cfg/Half-inst/t-aWait/T-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-======================================-======================================-============================================================================================
pn apache2 (no description available)
un apache2-common (no description available)
ii apache2-doc 2.2.8-1ubuntu0.9 documentation for apache2
un apache2-mpm (no description available)
un apache2-mpm-event (no description available)
un apache2-mpm-itk (no description available)
ii apache2-mpm-prefork 2.2.8-1ubuntu0.9 Traditional model for Apache HTTPD
un apache2-mpm-worker (no description available)
ii apache2-utils 2.2.8-1ubuntu0.9 utility programs for webservers
ii apache2.2-common 2.2.8-1ubuntu0.9 Next generation, scalable, extendable web server

also a quick question: when it comes to hosting websites, do i use my hostname as the dns server? or do i have to add the a names and such myself?

thanks in advanced

TheAshMan

Mon, 06/29/2009 - 10:54
andreychek

Howdy,

Regarding #2 above, it looks like you have a slash on the end there. Try like this, without a trailing slash:

cat /etc/issue

However, in general, what you're seeing should never happen! It looks like, for whatever reason, the installer didn't add on the Virtualmin Apache packages.

But in using Ubuntu 8.04, we can help easier ;-)

Is there any chance you could post your /root/virtualmin-install.log file?

We can use that to figure out where things went awry.

From there, we should either be able to point you in the right direction, or just fix it ourselves, since that should work ;-)

Thanks,

-Eric

Mon, 06/29/2009 - 11:11
theashman

Hi Eric,

sorry about no.2:

here you are:

root@vps12:/# cat /etc/issue
Ubuntu 8.04.2 \n \l

and log: (pretty long) http://pastebin.com/m713c6440 - pastebinned because of the length

hope they help!

Mon, 06/29/2009 - 11:57
andreychek

Hmm. Interesting :-)

I'm going to shoot Joe a quick email to get his thoughts -- but how would you feel if he or I logged in to take a look at what's going on?

There might be something with the repository setup there that's causing the installer to not behave right. Or there could just be a bug in the installer. Or some combination of the above, I'm not sure yet :-)

If you don't mind one of us logging in, what we would need is root login info. You can email that to eric@virtualmin.com -- if you can, include a link to this forum post in the message body.

Thanks!

-Eric

Mon, 06/29/2009 - 13:50
theashman

Hi Eric, I have sent you an email with the login details.

Thanks for helping!

Ashley

Wed, 07/01/2009 - 09:51
andreychek

I meant to update this earlier -- for anyone else running into this, the issue was that the Virtualmin installer hadn't replaced the existing Ubuntu Apache packages with the Virtualmin packages.

The fix was to run an "apt-get upgrade", and it was all set!

This will be corrected in a future install script release.

The "Bad dotted quad" issue was because Virtualmin wasn't correctly detecting the external interface being used under OpenVZ. It used venet0, rather than venet0:0.

That will be corrected in Virtualmin 3.70 (but could also be manually corrected by setting the interface in Module Config -> Network Settings).

-Eric

Mon, 10/26/2009 - 02:46
chiareu

hello Eric, first of all I must say I'm totally newbie :) and here is the situation:

When I first install haved the same issue with suexec. Read the post an do it. Now when Re-Check Config, I receive ".. your system is ready for use by Virtualmin." but :) always will be a but

On System Information, my Apache Webserver is DOWN. When I try to start it: Failed to start service :

  • Starting web server apache2 (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down Unable to open logs ...fail!

So I take a look in Webmin/System/Running Processes and here I have: 31717 www-data 09:08 /usr/sbin/apache2 -k start

From here I'm stuck. can you help me with some ideas? Tks

obs: I run a totally manual setup Ubuntu 8.04 LTS Server. Kernel Linux 2.6.24-24-server on x86_64. Virtualmin version 3.74.gpl GPL.

Also tried with standard Ubuntu auto LAMP install and I encountered the same problems. I think I installed the OS at last 6 times with different setup config/procedures and of course the same issues.

The f..king CentOS running out of the box :) (on other machine) but I prefer Ubuntu.

Mon, 10/26/2009 - 06:33 (Reply to #12)
andreychek

Howdy,

Try killing apache and restarting it...

Log in as root over SSH, and run:

killall apache2

Then restart it with:

/etc/init.d/apache2 start

Tue, 10/27/2009 - 01:04 (Reply to #13)
chiareu
  1. Kill and start from SSH
  • Starting web server apache2 [OK]

in Virtualmin apache is reported as not working

  1. Kill on SSH and start from virtualmin:

Failed to start service : * Starting web server apache2 ...done.

the same report in Virtualmin, apache not working

what I observed is my apache2 is running under "www-data" owner

Tue, 10/27/2009 - 09:15 (Reply to #14)
andreychek

The "www-data" user is normal for Ubuntu/Debian.

Is it just Virtualmin's reporting that's incorrect? Is the web server actually running -- are you able to access your sites? Or is Apache not running?

-Eric

Tue, 10/27/2009 - 09:59
chiareu

In running processes, apache is up and running. but in virtualmin/webmin system status, not running :)

The website... can't access it - "time out", if I kill the apache process, then can not find :) obvious.

So I maded some extreme measure. reinstall ubuntu in a different maner and worked out of the box.

  1. Install Ubuntu server just with SSH server enabled, No LAMP, No Mysql, nothing - blank. SSH because I prefer to work from my laptop.
  2. Activate root user
  3. Install Virtualmin with install.sh
  4. Update & Upgrade and voila everything is working perfectly!
Mon, 05/23/2011 - 10:20
netizen

. oups wrong post sorry! :)

Topic locked