Vps – How to add a domain name to a VPS

domain-namedomain-name-systemvpswiki

I have a VPS with allgamer.net (I use it to play minecraft). I also have a domain name with networksolutions.com

What I want to do is attach that domain name to the VPS. I want to run a wiki on my domain name. If this is possible I can avoid buying another hosting plan just for the wiki.

How do I go about doing this? I have very little knowledge in server administration so any advice you guys have is greatly appreciated!

I'm pretty sure I have to change the DNS in my domain name to the DNS for my VPS, but on allgamer.net's interface there is no discernable place to find out what I need to change it to. Is there a way to find out the DNS via SSH on my VPS?

As well, when I first got my VPS with allgamer.net I filled out a form for it with all my information, but they also wanted a domain name along with it. I gave them the domain name I currently own, but for some reason, it's like it's not connected to the VPS, like if I go to
mydomain.com there's nothing, as well, if I use mydomain.com for my minecraft server, it also doesn't work. It's as if it's serving no purpose by being "attached" to my VPS. Any insights into this?

Thanks for any help you guys can give me.

Best Answer

This is going to be a two step process, so stay with me. :) First as Sam said: Log in to your DNS manager at network solutions (assuming they are providing your DNS) Create or edit A records for domain.com, Wiki.domain.com etc to point the IP address of your VPS Now we're going to setup our web server; There are millions but I recommend Apache. If you have Ubuntu then run(apt get install httpd) or Centos(yum install httpd). Now we have a web server and you can put files up, but do we want our wiki to be the main site? If not then we need to make a Vhost like so Main site

     <VirtualHost *>
      ServerName otherdomain.com
   ServerAlias www.otherdomain.com  
  DocumentRoot /www/main
</VirtualHost>

and for the wlki

<VirtualHost *>
ServerName blog.otherdomain.com
DocumentRoot /www/blogdomain
</VirtualHost>

Now using Sftp with most FTP programs you can upload files and go.

I highly suggest you look through Apache documentation to learn what everything does here

Assuming you need PHP and MySQL those are apt get install PHP and mysql (Ubuntu) or Centos(yum install php and mysql) I use a program called navicat to admin MYSQL. There is a free version you can get there.

If you feel you need a control panel still; a good free one can be found at webmin

Related Topic