How do you add a domain name to a VPS?

1,966

Solution 1

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

Solution 2

The process would be something along these lines:

  • Log in to your DNS manager at network solutions (assuming they are providing your DNS)
  • Create or edit A records for domain.com, www.domain.com etc to point the IP address of your VPS
  • Setup a web server on your VPS to handle this traffic
  • Profit!
Share:
1,966

Related videos on Youtube

nmz787
Author by

nmz787

Updated on September 17, 2022

Comments

  • nmz787
    nmz787 over 1 year

    I have a FlexGridSizer that I add a bunch of TextCtrl to, some of which are for users to enter a path, so I have a Button in the adjacent column to the right of those TextCtrl boxes. The label text is ... and I only call AddGrowableCol on the columns with TextCtrl in them... here is how I'm adding the Button in my for loop (I don't use addmany):

    widgetItem = wx.Button(parent, -1, "...")
    widgetItem.row=rowNum
    widgetItem.col=colNum
    widgetItem.target = lastTextBox
    self.Bind(wx.EVT_BUTTON, self.getFile, widgetItem)
    currentSizer.AddF(widgetItem, wx.SizerFlags(0).Border(wx.ALL, 5))
    
    • Sirex
      Sirex over 13 years
      Likely you'll want to set both domains to use something like xname.org for dns, then set both dns zones to be your vps ip. Then setup apache name based virtual hosts on apache. The hard part is explaining how to do that in an easy to follow way. Maybe someone else will be able to thrash this out into a step by step guide, but if not hopefully it'll give you a head start.
  • Andrew Schulman
    Andrew Schulman over 9 years
    Link-only answers are discouraged on ServerFault, because if the target of the link goes away, your answer becomes useless. Instead, please describe the method here. You can also provide the link.
  • ILYAS_Kerbal
    ILYAS_Kerbal over 9 years
    ok, I understood ; I will describe the method next time