*Solved* Post installation wizard issue

25 posts / 0 new
Last post
#1 Sat, 07/30/2011 - 08:23
NetDoc

*Solved* Post installation wizard issue

I have installed Webmin 1.550 on Ubuntu 10.4 LTS and then installed Virtualmin on top of that. I have not done much to set up Webmin (including DNS), and have proceeded to the Post Installation Wizard for Virtualmin. I get through the first few frames and encounter this when it checks for resolvability:

 Primary nameserver cannot be resolved from the rest of the Internet : epsilon.scubaboard.com has address 67.191.13.75 Host epsilon.scubaboard.com not found: 3(NXDOMAIN)

Pinging epsilon.scubaboard.com brings back 209.208.24.242 is is one of several IPs I have bound to the server through /etc/network/interfaces.

As background, this is my 11th server in my dedicated rack at Atlantic.net. It is the first server I have ever configured and its my first time using Webmin/Virtualmin. I have grown to loathe Plesk and cPanel just doesn't give me the warm fuzzies. I have two DNS servers, sblb1.scubaboard.com and sblb2.scubaboard.com that do nothing but provide dns for scubaboard.com. ScubaBoard is the largest forum for Scuba Divers and is my main source of income. Epsilon is to be used as a LAMP server and will ultimately replace sb400.scubaboard.com, a LAMP server using Plesk.

Sat, 07/30/2011 - 09:12
andreychek

Howdy,

Well, my recommendation just to move forward would be to check the box there that tells it not to attempt resolving the nameservers you enter.

Then as you move forward with the setup of your server and the domains it's hosting -- if you're still having problems, we can try and tackle that then.

It's possible that your server is having trouble resolving other names as well -- that'll show up whenever you go to run System Settings -> Re-Check Config. It may ask you to verify that "127.0.0.1" is added to your /etc/resolv.conf file.

-Eric

Sat, 07/30/2011 - 17:35
NetDoc

You were right. I had to add 127.0.0.1 for it to work.

After I fixed that I rechecked and it came up with an additional error: A problem was found with your Postfix virtual maps : No map sources were found in the Postfix configuration

What is a virtual map and how do I acquire a source?

Sat, 07/30/2011 - 17:44
andreychek

Howdy,

Well, the problems you're having aren't normal... it sounds like something odd is going on.

Adding "127.0.0.1" into the resolv.conf file is something that occurs when running the install.sh script. Similarly, setting up the Postfix config is also done during the installation.

We've occasionally run into VPS providers who reset some of their customers config files after a reboot... you may want to watch out for that sort of problem.

Here's a quick fix to your problem though -- if you edit /etc/postfix/main.cf, add this line to the end:

virtual_alias_maps = hash:/etc/postfix/virtual

Then restart Postfix with "/etc/init.d/postfix restart".

After that, see if that error goes away.

However, you may want to try rebooting, and see which of those problems recur. We may then need to dig into why that's happening.

-Eric

Sat, 07/30/2011 - 18:49
NetDoc

Eric, I appreciate your patience in this. That error has been resolved. However, I just got this when I checked again:

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 ..
Your system has 15.70 GB of memory, which is at or above the Virtualmin recommended limit of 256 MB.
BIND DNS server is installed, and the system is configured to use it.
 
Your Postfix configuration is missing the system's mail hostname epsilon from the mydestination line, which will cause mail to bounce.
 
.. your system is not ready for use by Virtualmin. 

FWIW, this is not a virtual server... it's an actual physical one that I just installed last week in my dedicated rack at Atlantic.net.

Sat, 07/30/2011 - 18:54
NetDoc

I don't remember running an install script. I installed webmin first using wget and dpkg -i and a couple of days later did the same for virtualmin. Should I go and run the script now? Should I install usermin first?

Sat, 07/30/2011 - 18:58
andreychek

Howdy,

I did want to check, did you by chance use the install.sh script to perform your installation?

As for the above error -- what output do you receive if you run the command "hostname" on your server?

Whatever name that outputs -- that name needs to be listed on the "mydestination" line of your /etc/postfix/main.cf file. You can just add it to the end of the list of names in there now.

Once you add that, restart Postfix, then try running the Re-Check Config again.

If it shows any other issues, feel free to post them here and we'll get them figured out :-)

-Eric

Sat, 07/30/2011 - 19:46
andreychek

I don't remember running an install script. I installed webmin first using wget and dpkg -i and a couple of days later did the same for virtualmin. Should I go and run the script now?

Aha, that explains the issues you are seeing.

The install.sh script performs all sorts of customizations for you... a lot of which you can see here in the manual installation documentation:

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

If this server is new -- if it's not hosting any live sites, email addresses, or the like -- I'd highly recommend using the install.sh script to perform your installation, that'll make things a lot simpler :-)

The installer will install all the required apps (including Usermin), as well as configure everything to work out of the box for you.

You can download the installer using the Download link above.

-Eric

Sat, 07/30/2011 - 19:56
NetDoc

Cool, its not hosting a thing yet.

I will do as you suggest.

Sat, 07/30/2011 - 20:01
NetDoc

/bin/sh: Can't open install.sh

Sat, 07/30/2011 - 20:22
andreychek

Well, can you describe what steps you've taken so far?

The error you're giving sounds as if the install.sh script may not be in the current directory, or if it is, that it could be corrupt.

-Eric

Sun, 07/31/2011 - 06:45
NetDoc

I installed Ubuntu 10.4 LTS and made it a LAMP, DNS and EMail server. I bound several IPs to /etc/network/interfaces (209.208.24.242-254) I have updated the system files several times. I added a perl library. wget webmin dpkg -i webmin Set up a few things (mostly trying to learn) like users etc. wget virtualmin dpkg -i virtualmin and you know the rest.

Not a whole lot other than that.

I will be up to Orlando next week installing a KVM over IP switch, so if I have to reload and do things a bit differently, I can and will. I have always had others do my servers and some are great and others are less than optimal. Ultimately, I want this to replace a Plesk server, reload that server and make it another web server for ScubaBoard. But as it is, there is nothing on this server at the moment, so I can play and learn on it and reload it if need be.

Sun, 07/31/2011 - 10:25
andreychek

Howdy,

Well, I suppose I was wondering what steps you took to download the install.sh script. I'm looking to verify that it is indeed in your current directory when you go to run it.

-Eric

Mon, 08/01/2011 - 14:36
NetDoc

Mea culpa... I guess I am not good at reading directions. I never downloaded the install.sh script. I have done so and /etc/sn install.sh is currently running. Again, you have been most helpful.

Mon, 08/01/2011 - 14:41
andreychek

That sounds great!

Feel free to give a shout if you run into any trouble while configuring things, but I think you'll find it a lot simpler to get things up and running when using the install.sh script.

Have a good one!

-Eric

Mon, 08/01/2011 - 15:50
NetDoc

Almost there...

Checking 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 ..
Your system has 15.70 GB of memory, which is at or above the Virtualmin recommended limit of 256 MB.
BIND DNS server is installed, and the system is configured to use it.
 
Mail server Postfix is installed and configured.
 
Apache is installed.
 
Webalizer is installed.
 
Apache is configured to host SSL websites.
 
MySQL is installed and running.
 
ProFTPd is installed.
 
Logrotate is installed.
 
SpamAssassin and Procmail are installed and configured for use.
 
ClamAV is installed and running.
 
Plugin DAV Login is installed OK.
 
Plugin AWstats reporting is installed OK.
 
Plugin Mailman is installed OK.
 
Plugin Protected web directories is installed OK.
 
Using network interface eth0 for virtual IPs.
 
IPv6 addresses are available, using interface eth0.
 
Default IP address for virtual servers is 209.208.24.242.
 
Default IP address is set to 209.208.24.242, which matches the detected external address.
 
Both user and group quotas are enabled for home and email directories.
 
All commands needed to create and restore backups are installed.
 
The selected package management and update systems are installed OK.
 
.. your system is ready for use by Virtualmin.
Updating all Webmin users with new settings..
.. done
 
Updating Virtualmin library pre-load settings ..
.. done
 
Updating status collection job ..
.. done
 
Re-loading Webmin ..
.. failed! Incorrect Webmin PID 13823 at /usr/share/webmin/web-lib-funcs.pl line 1360.

Check out that last line.. failed! Incorrect Webmin PID 13823 at /usr/share/webmin/web-lib-funcs.pl line 1360.

Tue, 08/02/2011 - 10:29
andreychek

You may just need to reset the Webmin processes that are running.

If you run:

ps auxw | grep miniserv | grep webmin

Try killing whatever processes you see, then restart Webmin with:

/etc/init.d/webmin start

After that, does the re-check config work?

-Eric

Wed, 08/03/2011 - 06:41
NetDoc

Hey Eric,

I had to take a break to go diving, but everything seems to be running correctly.

However, when I go to create a virtual server, I get this:

Failed to create virtual server : Mailman cannot be enabled unless the administration list mailman has been created.This can be done in the Mailman plugin module.

How to create an administration list mailman without a domain seems problematical. I haven't been successful.

Wed, 08/03/2011 - 10:06
andreychek

Well, you could always disable the mailman feature when creating a Virtual Server -- that would prevent the message you're seeing.

I'm not seeing a way to create a list without a domain either... I may need to ask Jamie about that. It doesn't come up often, as systems seem to default to having a mailman list (at least, my test system here did).

One thing you could try is to create the list from the command line, using:

/usr/lib/mailman/bin/newlist

Using that, create a list named "mailman", and see if that does the trick :-)

-Eric

Thu, 08/04/2011 - 05:43
NetDoc

We are making progress! Thanks again, ever so much. That worked perfectly. The list had to be named "mailman@epsilon.scubaboard.com" but that was explained as I executed the script.

I have created http://www.ScoutFishing.com and it is kind of working. I am not getting any kind of indication that its going to the right directory though. I did change a few directories in Webmin before I installed Virtualmin (I asked about this in another thread). The files are sitting in /home/scoutfishing/public_html, where I have installed the files for Drupal 7.7. Unfortunately, when I try to run the install script for drupal http://www/scoutfishing.com/install.php, I get a 404 error. If I go to just http://www.scoutfishing.com I get

Index of /
 
    Name    Last modified   Size    Description
Apache/2.2.14 (Ubuntu) Server at www.scoutfishing.com Port 80

The Drupal files are definitely in /home/scoutfishing/public_html. Here is the output of ls -a in that directory.

root@epsilon:/home/scoutfishing/public_html# ls -a
.                  cron.php           INSTALL.sqlite.txt  scripts
..                 etc                INSTALL.txt         sites
authorize.php      fcgi-bin           LICENSE.txt         stats
awstats            .gitignore         logs                themes
.awstats-htpasswd  homes              MAINTAINERS.txt     update.php
awstats-icon       .htaccess          misc                UPGRADE.txt
awstatsicons       icon               modules             .usermin
.bash_logout       includes           .profile            web.config
.bashrc            index.php          profiles            xmlrpc.php
cgi-bin            INSTALL.mysql.txt  public_html
CHANGELOG.txt      INSTALL.pgsql.txt  README.txt
COPYRIGHT.txt      install.php        robots.txt

I am going into Webmin to see if I can find the directories I had previously modified. Still, your help would be invaluable.

Thu, 08/04/2011 - 06:02
NetDoc

Here is an interesting file:

Default Server   Any Any Automatic   Automatic   Open..
    Virtual Server  Any 80  Automatic   /var/www/vhosts/    Open..
    Virtual Server  209.208.24.242  80  scoutfishing.com    /home/scoutfishing/public_html  Open..
Select all. | Invert selection.

When I created the domain through virtualmin, I had specified the IP as being 209.208.24.243. I have since gone in and manually edited this in this file. I have also edited the other virtual server to have it's files go to /home/.

Before either Webmin or Virualmin were installed, I had bound a range of IPs to this server through /etc/network/interfaces.

root@epsilon:/home/scoutfishing/public_html# cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
 
# The loopback network interface
auto lo
iface lo inet loopback
 
# The primary network interface
auto eth0 eth0:1 eth0:2 eth0:3 eth0:4 eth0:5 eth0:6 eth0:7 eth1 eth1:1 eth1:2 eth1:3 eth1:4 eth1:5
iface eth0 inet static
        address 209.208.24.242
        netmask 255.255.255.240
        network 209.208.24.240
        broadcast 209.208.24.255
        gateway 209.208.24.241
iface eth0:1 inet static
        address 192.168.2.120
        netmask 255.255.255.0
        network 192.168.2.1
        broadcast 192.168.2.255
iface eth0:2 inet static
        address 209.208.24.244
        netmask 255.255.255.240
        network 209.208.24.240
        broadcast 209.208.24.255
iface eth0:3 inet static
        address 209.208.24.246
        netmask 255.255.255.240
        network 209.208.24.240
        broadcast 209.208.24.255
iface eth0:4 inet static
        address 209.208.24.248
        netmask 255.255.255.240
        network 209.208.24.240
        broadcast 209.208.24.255
iface eth0:5 inet static
        address 209.208.24.250
        netmask 255.255.255.240
        network 209.208.24.240
        broadcast 209.208.24.255
iface eth0:6 inet static
        address 209.208.24.252
        netmask 255.255.255.240
        network 209.208.24.240
        broadcast 209.208.24.255
iface eth0:7 inet static
        address 209.208.24.254
        netmask 255.255.255.240
        network 209.208.24.240
        broadcast 209.208.24.255
iface eth1 inet static
        address 209.208.24.243
        netmask 255.255.255.240
        network 209.208.24.240
        broadcast 209.208.24.255
iface eth1:1 inet static
        address 209.208.24.245
        netmask 255.255.255.240
        network 209.208.24.240
        broadcast 209.208.24.255
iface eth1:2 inet static
        address 209.208.24.247
        netmask 255.255.255.240
        network 209.208.24.240
        broadcast 209.208.24.255
iface eth1:3 inet static
        address 209.208.24.249
        netmask 255.255.255.240
        network 209.208.24.240
        broadcast 209.208.24.255
iface eth1:4 inet static
        address 209.208.24.251
        netmask 255.255.255.240
        network 209.208.24.240
        broadcast 209.208.24.255
iface eth1:5 inet static
        address 209.208.24.253
        netmask 255.255.255.240
        network 209.208.24.240
        broadcast 209.208.24.255

I want to use 242 and 244 as "shared" Ips for domains that won't have a secured portion to them. I want to use all the other IPs for specific domains. I believe I found this option in Virtualmin when I created this. Unfortunately, when I went to check it in DNS, it shows THIS:

Name TTL Address
    scoutfishing.com.   Default 209.208.24.242
    www.scoutfishing.com.   Default 209.208.24.242
    ftp.scoutfishing.com.   Default 209.208.24.242
    m.scoutfishing.com. Default 209.208.24.242
 
Name    TTL Address
    localhost.scoutfishing.com. Default 127.0.0.1
    webmail.scoutfishing.com.   Default 209.208.24.242
    admin.scoutfishing.com. Default 209.208.24.242
    mail.scoutfishing.com.  Default 209.208.24.242
Thu, 08/04/2011 - 06:34
NetDoc

OK, I edited the all the zones I could find, rebooted the server and ITS WORKING! :)

Here are a few additional questions that I have:

How do I assign Domains to a specific IP that I have previously bound. Do I need to register them?

How do I restart bind through Webmin or Virtualmin? I could not find this. In fact, is there a way to restart any of the services through Webmin/Virtualmin? If so, how?

Thu, 08/04/2011 - 08:51
andreychek

Howdy,

You can setup IP addresses as being shared in Addresses and Networking -> Shared IP Address.

Also, if you have a given domain you want to using a specific non-shared IP address, you can set that by selecting the domain in question from the drop-down on the top-left, then going into Server Configuration -> Change IP Address.

How do I restart bind through Webmin or Virtualmin? I could not find this. In fact, is there a way to restart any of the services through Webmin/Virtualmin? If so, how?

Click the System Information link on the bottom-left, and look for the section labeled "Status". In there, you'll see a list of many of the services Virtualmin controls. You can start, stop, and restart them from there.

-Eric

Thu, 08/04/2011 - 18:56
NetDoc

Again, thanks for your tremendous help! The website is working perfectly. I have bought a book on Webmin by Jamie Cameron, the creator. Does he have a companion book for Virtualmin?

Thu, 08/04/2011 - 19:09
andreychek

Sorry, there's no Virtualmin book... though that's an interesting idea :-)

-Eric

Topic locked