First time installation

22 posts / 0 new
Last post
#1 Tue, 12/11/2012 - 04:48
wormsunited

First time installation

Hello guys i hope you can help me on this:

For the first time i decided to try out the webmin/virtualmin control panel for management of my web hosting and domain names, instead of the usual cPanel or Plesk. So i decided to get a new vps from a web hosting company with one adicional ip.

After a wille i got one email with my login data and all items i need to manage my webmin, so i decided to make the installation of virtualmin inside of my webmin. I upgraded the modules, installed BIND, Apache and MySQL, using YUM (auto installation in webmin control panel).

Also i made the installation for virtualmin and i have not changed anything of the settings of my hosting provider, right after i made the installation for virtualmin, i clicked in (re-check and refresh configuration) and i got a error message like this:

A problem was found with your Postfix virtual maps : No map sources were found in the Postfix configuration

Now... I came to this forum to search for solutions about this issue but i am not a expert in programming so like a newbie i am but i want to learn and i need to fix this problem, i dont know what i can do to proceed. I only know how to use webmin control panel, how can i fix this problem? Please help.

Tue, 12/11/2012 - 05:07
wormsunited

Hey guys, sorry about this, but i made a search in the forum for a solution for this issue and i did not found a solution for the Postfix configuration. I made a litle research about the virtual maps, went to the section and i found out that i have no maps defined:

(No map is currently defined. Define a map first, then you can edit it).

Now how can i define a map?

This is my Virtualmin Version 3.96.gpl and my webmin version is 1.610 and i have the CentOS Linux 6.3.

All this configurations were given by my web hosting provider, i just updated the webmin and installed the virtualmin. My hosting provider also gave me a control panel were i can install new OS like CentOS Linux 6.3 in other versions, maybe this is a version problem?

Tue, 12/11/2012 - 07:14
Locutus

I'm assuming you did not use the installer script to install Virtualmin?

Especially as a newcomer to Virtualmin, it is highly suggested to use that. Start with a fresh and clean Linux, only install SSH as additional package, no Webmin, no Apache, no Postfix, no other hosting software. The script will do all the installation and configuration for you.

Also make sure to use a Class-A supported OS.

You can find instructions and the script here: https://www.virtualmin.com/documentation/installation/automated

Tue, 12/11/2012 - 16:17 (Reply to #3)
wormsunited

In fact i can reinstall the OS and choose the one i want (linux), but i never used SSH before. I will make a new install of my OS, but by default my hosting provider makes the auto-install of webmin. So i am not sure how to fix this...

I used other panels before, but never webmin or virtualmin, now i decided to get a vps with 2 ips from a hosting provider, i think i got a really good deal for it, but my question is that i need to host multiple domain names and i decided to try virtualmin.

But using the webmin control panel i get problems in postfix, i never can make it work, but i think the configurations of my vps, it comes by default with webmin in every installation of a new OS are not ok or i dont know how to figure it out... I am on this for days now.

Right now i make a new installation, but the problem is that is never clean. Webmain comes, i might have to delete him then...

Tue, 12/11/2012 - 18:10
Locutus

Getting Webmin pre-installed is no problem actually, as long as you don't install Apache and Co. but let the installer script do that. You really should familiarize yourself with using SSH, you will very likely need it when you plan to do webhosting. :)

Wed, 12/12/2012 - 07:05
wormsunited

Heyas, thanks a lot for the tips. I running now a new installation of the OS i have installed the Cent OS 6.3 (64 bit) in my vps with webmin 1.600 (as default) by my hosting provider, it also places my main ip inside, i dont configure nothing till now, its all automatic.

My vps configuration is:

Processor information: Intel(R) Core(TM) i7-2600K CPU @ 3.40GHz, 1 cores Kernel and CPU: Linux 2.6.32-279.el6.x86_64 on x86_64 Virtual memory: 2 GB total, 0 bytes used Local disk space: 96.46 GB total, 6.43 GB used Package updates: 60 package updates are available Operating system: CentOS Linux 6.3 Webmin version: 1.600

Till here i have the default configurations as my hosting provider gave me. Now what should i do? Install Virtualmin?

Wed, 12/12/2012 - 08:27
andreychek

Yeah, it sounds like you have as fresh an install as one can get with a VPS :-) That's good!

The next step would be to run the Virtualmin installer, which will install Webmin/Virtualmin, along with all of it's dependencies.

You can find the Virtualmin installer in the "Download" link above.

-Eric

Wed, 12/12/2012 - 08:30
Locutus

Yep, I'd say install the available package updates first, then download and run the Virtualmin installer script. CentOS 6 is Grade-A supported, so the installer should do it all forya. :)

Wed, 12/12/2012 - 12:48
wormsunited

Hello there guys, thanks a lot for your help first of all. Well, till now i have installed all the updates and also i made the update of webmin to the version 1.610 (lattest), now this updates were made inside of the control panel of webmin using my browser, i hope this is ok.

I have downloaded Putty and i have made connection with my vps and also i am learning a few cmds, but i dont know how to use it yet...

Now my question is... Do i make the installation of virtualmin with webmin in my browser? Or do i use another method?

Wed, 12/12/2012 - 13:18
andreychek

Howdy,

I would suggest closing your browser, and then following the instructions here:

http://www.virtualmin.com/download.html

The commands described there are commands you'd be running from within Putty, after logging into your server as root.

-Eric

Wed, 12/12/2012 - 13:55
wormsunited

Heyas thank you so much,

I logged in as root in my vps using putty and i have gave the instruction cmd to hostname -f in order to find out what is my hostname since i dont know what it was... Now i got a question about this...

The actual hostname is: vmi9003.other-thing.com, but i need to use one of my domain names here and edit this?

Lets say that i want to host the domain test12345.com as the main one....

I have created ns1 and ns2 for the domain name i want to host in the vps in my registar with the ips provided by my hosting provider, since i want to point other domains to this one later.

Meanwille, i made the download of install.sh. But i wait for a help, i dont know if my question about the domain name (hostname) is important or not.

Wed, 12/12/2012 - 14:03
wormsunited

Sorry, just one small detail, it might be important... In my vps, as far as i know, its only one ip configurated, so i dont know how to add the second ip to the vps, or do i just use the ns1 and 2... maybe?

Wed, 12/12/2012 - 15:33
Locutus

Yeah, here come the expected follow-up questions. ;)

The hostname you set in "/etc/hostname". The domain in "/etc/hosts" where you need a line like

155.66.77.88 host host.domain.tld

(Example IP of course)

Important: hostname must show your hostname alone, and hostname -f and hostname -a must show the FQDN (fully qualified domain name, i.e. host+domain).

/etc/mailname must also contain your FQDN.

Additional IPs you can easily configure in Webmin's Network modules. You can do that after installing Virtualmin.

Wed, 12/12/2012 - 19:21 (Reply to #13)
wormsunited

Heyas, thank you very much for your help, i did made the steps you said, as i logged in Putty and as root i typed the cmd "/etc/hostname", and i got this message:

[root@vmi9003 ~]# /etc/hostname -bash: /etc/hostname: Permission denied

Also in hosts i got the same problem, but i made a research and i found a few cmds over the web, and i found that if i hit cmd: hostname he gives me vmi9003, also if i do a cmd: hostname -f i get: vmi9003.otherdomain.com, and i dont know how to edit this parameters, i am very new in putty but i am doing my best, any tip?

Wed, 12/12/2012 - 15:33
andreychek

You can set the hostname by running "hostname host.domain.tld".

We recommend using an FQDN -- which means using the format "host.domain.tld", and not just "domain.tld".

Then, edit "/etc/sysconfig/network", and change the "HOSTNAME" field in there.

You can easily add a second IP later, after Virtualmin is setup.

-Eric

Wed, 12/12/2012 - 19:20 (Reply to #15)
wormsunited

Hello and thanks for your help, i did also try your way but i got the same output (look in other reply) -bash: /etc/sysconfig/network: Permission denied

Any more ideias?

Wed, 12/12/2012 - 19:34
wormsunited

Heyas thank you so much for the help, i found some good tips that i think can solve this step i found them and i think its good to help other newbies like me in the future...

Here are some quick usages of the command line hostname:

type cmd: hostname It will give you your current hostname vps.example.com

type cmd: hostname --fqd it will output the fully qualified domain name (or FQDN) of the system.

type cmd: hostname my.newdomain.com that is it!

vps/server changed!

Wed, 12/12/2012 - 19:52
wormsunited

Hello, just a question about domains, for example i have another domain that i want to use, also with the ns1 and ns2 already configurated, here is the link: http://who.is/nameserver/ns1.maxifut.com/

Any chance to use this one? I have set the IP that is the same of the server is this right? Or should i register a new one like vps.mydomain.com and add the IP, i am talking in A record in my registar i use domainsite.com

Wed, 12/12/2012 - 22:16
andreychek

Howdy,

You don't want to run those config files, you want to edit them :-)

You would open them up with your preferred text editor, and make any necessary changes in them.

-Eric

Thu, 12/13/2012 - 04:48
Locutus

I recommend installing the "Midnight Commander", which is a Norton Commander clone file manager, including a simple but useful text file editor. The package is usually called "mc".

Fri, 12/14/2012 - 09:04
wormsunited

Hello guys sorry my delay but i decided to register new domain name also for this installation and i made the configurations on my hostname set now as a.ns.mydomain.com. To be able to proceed with the installation of virtualmin using putty. I want to add that i also made the configurations for the nameservers, as i read a lot about fully qualified domain name (or FQDN).

All the domains will point now to: a.ns.mydomain.com and b.ns.mydomain.com with my hosting provider IPs.

Right now, i made the download of virtualmin, i have choosen the gpl version, i want to try this one first and then maybe upgrade or later make a new installation of the Pro version.

Fri, 12/14/2012 - 11:23
wormsunited

Howdy,

I have made the installation of virtualmin, in fact in youtube i found a really nice tuturial that helps a lot, step by step and there in that video, i made a few steps only to make my virtualmin working not all, this tuturial comes in 7 steps and i watched just till video 5, it really worked for me.

Here are the links for you guys, i hope it helps you as it helped me:

1 - http://www.youtube.com/watch?v=4dENitBkYe8 2 - http://www.youtube.com/watch?v=ubzsU2hEfuw 3 - http://www.youtube.com/watch?v=CS_GhcRjZtM 4 - http://www.youtube.com/watch?v=FMa_yd9Hmvo 5 - http://www.youtube.com/watch?v=qMaEcG6LwFE

This ones you can use if you need to install a wp script for example or a joomla, among others.

6 - http://www.youtube.com/watch?v=j8pZPTA9Wuc 7 - http://www.youtube.com/watch?v=wk1HqTg6NKQ

My nameserver is now working in the vps and it seems that my domains are now pointing at him, i have created inside 4 accounts, logged in and out from multiple users, all seems fine, made a few tests in the users accounts, such as try the browsers, place testing homepages, now i am going to try some ftp settings and also email accounts.

I really enjoy Putty now, thanks to you guys, Locutus and andreycheck, since day one of this post you guys were great and helped me a lot, i learn now how to make the installation, and i am a complete newbie and till now all my tests seems ok, it is in fact a better and cheaper solution for any user, and i really like the enviroment, simple and fast.

With this, i learned a new coding experience (thanks) and i made my vps running! (thanks again)!

I cant wait now too explore more things on it.

Topic locked