in Virtualmin>Module Config>Server Settings I have:
Network interface for virtual addresses Detect automatically
Default virtual server IP address From network interface
Default IP address for DNS records Same as virtual server IP
The behavior is:
http://www.domain.com is listing the content of: /var/www/html/ (NOT /var/www/html/domain/ ) - but should list /home/domain/public_html/
PS: I installed webmin and virtualmin, but I am not sure my ISP was using it when making 2 domains live a few hours ago.
Maybe there is also something wrong with my general installation, when I do: virtualmin>system settings>
Virtualmin is configured to setup DNS zones, but this system is not setup to use itself as a DNS server. Either add 127.0.0.1 to the list of DNS servers, or turn off the BIND feature on the module config page.
… your system is not ready for use by Virtualmin.
Ok, when I add 127.0.0.1 in the DNS list I get the next error in the mail setup…
http://www.domain.com is listing the content of: /var/www/html/ (NOT /var/www/html/domain/ ) - but should list /home/domain/public_html/
VirtualHost and NameVirtualHost have to match up. If you have multiple NameVirtualHost directives it can also cause breakage…especially if one is for *:80 or simply *
Ok, when I add 127.0.0.1 in the DNS list I get the next error in the mail setup....
Sendmail is only accepting SMTP connections on the following ports : 127.0.0.1 port smtp. Email from other systems on the Internet will not be accepted. This can be changed in the Sendmail Mail Server module.
… your system is not ready for use by Virtualmin.
Where do I check NameVirtualHost and NameVirtualHost?
Any reason you didn’t use the automated install.sh script? Installing a full-featured hosting system manually can be very time consuming…and if you don’t know a lot about system administration, it can also be very intimidating.
Where do I check NameVirtualHost and NameVirtualHost?
In the Apache configuration file. You can also check them in the Apache module in Webmin, but searching with the Apache configuration files is usually faster for this particular task.
Sounds like you ran the install.sh before Joe got back to you – the answer would have been “If you run it now, it’ll cause all sorts of issues on a live system”
However, if starting over is an option, I’d highly recommend it.
The install.sh works great on a freshly installed system, so if you start over on your VPS, you’ll be in really good shape!
-Eric
created the directories with Filezilla
restart apache
Domain1 works fine, Domain2 points to Domain1 - that’s Problem 1
Now a look at Virtualmin:
Virtualmin>Create Virtual Server - I try domain1.com with “Shared, on IP” (the VPS IP is shared for all domains). Now I get error: Failed to create virtual server : New virtual server has no IP address! Perhaps Virtualmin could not work out the system’s default IP.
OK< when I do virtualmin>System Information>re-check config… I get nearly all OK, except: No Ethernet interface could be automatically found on your system. Use the module configuration page to set the interface manually.
Ahh, yeah, that error occurs on some VPS systems out there.
If you run an “ifconfig” – which interface there contains your Internet-facing IP address (as opposed to 127.0.0.1 and such)? It’s normally something like “eth0” or so, but is probably a little less usual on your VPS there.
Then, go into System Settings -> Module Config -> Server Settings, and set that interface name in the field labeled "Network interface for virtual addresses".
-Eric
It looks like the interface associated with your Internet-facing IP is "venet0:0".
If it’s still unable to determine what network interface to use, I’d go ahead and put venet0:0 into the Module Config section I mentioned above, and see if that corrects the problem.
-Eric
I feel like I am really not in the position to give any advice at all, but with my near zero knowledge about servers, Linux etc. I had phpBB installed and setup in no time.
Ok, the tricky part are probably all the existing messages…