Tutorial: Managing a Godaddy virtual dedicated server (VDS or VPS or virtual private server)

Note: I no longer use Godaddy's VDS. Please see this post to read about why I switched and which host I use now.

I had purchased Godaddy's virtual dedicated server (VDS) web hosting service because a systems administrator friend of mine had told me the benefits of having 'root' access and it made sense. I also wanted to host a moderate number of sites, so I wanted to upgrade from the shared hosting that I was using at the time. However, I wasn't prepared for all the server management that would be required for some of the things that I wanted to do. Since Godaddy's VDSes are sold as largely unsupported, there was a steep learning curve for me. As such, I'm putting down some useful things I've learned along the way, which may be helpful for people who aren't experienced webmasters.

I'm constantly learning new things about web hosting, so as I come across them, I will continue to add useful tips to this page.

Add-ons

I got a couple of add-ons with my VDS and I'm happy that I have them. The first one is Plesk. This is a graphical control panel for the server that makes it easy to administer sites. The alternative is using SSH commands for everything, which just doesn't appeal to me. The second add-on I got is an ftp backup server. This is a separate server with a separate IP address. You can use the backup functionality in plesk to schedule regular backups to your site. I'm pretty paranoid about backing up data especially after hearing about a very large site crashing and losing all its data, so this add-on was a no-brainer especially at the $2 or $3 a month that it costs for 10GB.

Using FTP

I always use the server IP address when logging in. You can probably use a domain name when accessing certain domains, but I figure that if you can use one hostname whenever you're using an FTP client, it's much easier that way.

Logging on using SSH

I've never used SSH before I got my Godaddy VDS, but logging on is fairly simple. You need to download a program called PuTTY. To log on using SSH, simply open PuTTY, enter in your VDS ip address, select SSH as the protocol, open the connection and enter in your username and password when prompted. The username and password should be the administrator username and password for your VDS that you decided on when you set up the VDS. Note that when using SSH, you can potentially do a lot of damage to your server, so it's a good idea to not use any commands unless you know what it does. If you need to be logged in as 'root' to do something, you should use the command 'su' to temporarily make you the root user.

FTP backup

Plesk has a backup functionality which will back up your site(s) on demand or on a scheduled interval. You can back up a site and place that backup file that plesk generates either on the local server or on a remote ftp server. I chose to have all my sites backed up on a regular interval to my remote ftp server, although I occasionally have plesk generate a backup, which I then download to my local machine so that the site is backed up twice.

The backing up part is pretty intuitive and all in plesk. You go to the domains > domain.com > backup. You enter in the ftp backup information into FTP Account Properties. If you want the files stored in a directory other than the base directory, you have to create the folder using SSH. You would use Backup Now for an on-demand backup and Scheduled Backup to have your site backed up on a periodic basis.

What wasn't so intuitive to me was how to view the backed up files (for verification) and transferring them to my local machine so that I could test that they work. To do this, log in to your server using SSH. You don't need to login as 'root.' Then type in:


ftp [ip address]

where [ip address] is the IP address that Godaddy gave you for the ftp backup server. At one point, Godaddy told me to use the 'sftp' command, but that didn't work for me. You will then be prompted for your username and password, which you can find in your VDS manager.

Once you're logged into the ftp backup server, you'll be at the base directory, which is where backup files will get saved if you don't specify a folder. Use the command 'ls' to view all the files in the base directory. If you want have the backup files placed in certain folders, you can create folders at this time by using the command:


mkdir [folder name]

I use my site names for the folder names so that domain123.com gets backed up in the folder 'domain123.'

Now that I was able to view the files, the next step for me was to test them to make sure that they worked. In order to do this, I wanted to transfer a backup file from the ftp backup server onto my local machine. To do this entails a two-step process. First, I would send a back up file to the VDS with the following command:


get [filename]

where [filename] looks something like domain123.com_2006.10.30_14.45
Next, I would transfer the file from the VDS to my local machine using an ftp client such as filezilla. When logging into the VDS using an ftp client, you should use the administrator's username and password that you set when you first purchased the VDS. You should also make sure that the servertype is set to 'SFTP' to ensure security. Once you're logged in, you should be at the base directory for that username, so something like /home/user123. In that folder, you should also see the files that you sent there using the 'get' command. You can now drag and transfer those files to your local machine.

In order to simulate what would happen if I lost site data, I deleted one of my sites from plesk (before doing this, I backed up the files manually). This was also a site that wasn't very important to me, so I didn't care if it was down. Then I added the domain into plesk as if I were adding a new site. Then I went to the backup functionality in plesk, and clicked on Add New File. I uploaded the back up file, and once uploaded, I clicked on it and hit Restore. This restored my site back to how it was originally and gave me reassurance that the backup file would work in a time of need.

Note: I'm sure that there's a way to send a backed up file directly from the backup server to a folder on the VDS so that the backup functionality in plesk recognizes it so you don't have to upload the file from your local machine, but I don't know which folder that would be, and it's not a top priority for me right now.

Downloading configuration files to your local machine

There are times when you may want to download a file to your local machine, but you can't since it belongs to 'root'. I don't quite understand this part, but I believe that since I log in as user123, a file has to belong to user123 for me to download it to my local machine. Otherwise, I get a permission denied message. In order to change the owner, you need to be logged in as 'root'. Then use the 'chown' command like such:


chown [filename] [user you want ownership to be transferred to]

An example of a file that I might want to download and edit is the php.ini file, which sets the configuration of php on your server. I believe that there's a way to edit files directly on the server, but I still need to learn how to do this.

Secure FTP

I've been using standard FTP for a while now, but recently I learned about the merit of using secure FTP or SFTP. When transferring files using standard FTP, the data (including login information) gets transmitted in plain text, so someone can conceivably intercept it and read it. If you use SFTP, the data gets encrypted so even if it's intercepted when you're sending it to your server, it won't be readable. Getting started with this is pretty easy. When you're logged into Plesk, navigate to the domain administration for the domain you'd like to do this for (this should really be done for every domain you use). Then go to 'Setup.' Under Preferences, you will see a dropdown menu for Shell access. For this, I just selected /bin/sh. Click OK and you're done on the server end. Next, for whatever FTP client you use, for servertype, select SFTP. Your FTP client should now be able to connect to the server as SFTP and transmit data securely. There is also a way to setup SFTP without giving away Shell access. Read about it at TheOneAndTheOnly.com.


Comments

Submitted by Text to Screen (not verified) on April 14, 2008 - 14:59.

Hello, I ran the backup script which has stopped half way several times, and it's seemed to have filled up my server space. I want to delete the half backed up files because it doesn't show in the Backup maanger. But My server is completely full.

Please let me know

Submitted by Classified (not verified) on February 9, 2008 - 13:45.

How do you get into the Root Directory of Godaddy VDS? I use CuteFTP 6.0 PRO and for the life of me can not get into the root. Any help would be great.

Submitted by HR (not verified) on January 26, 2008 - 13:47.

I just signed up for a VDS account trial(3 free months) with another hosting company.

Just like everyone else here, this is all greek to me. I have been using cPanel shared accounts for years and I am used to the ease of the cPanel interface.

I have come across some comments on forums about adding cPanel to a VPS account.

Anyone know if this could be done with VDS?

Can scripts like cPanel be uploaded to one of these accounts?

HR

Submitted by Kelly Shoppach (not verified) on January 15, 2008 - 07:19.

MaxDedicated.com servers from $69, while supplies last! Servers feature 2.0 GhZ Intel CPU, 512 MB RAM, 2 TB of Transfer and More! Other plans available; we offer dedicated servers to fit every budget and need. All servers feature full root/administrator access.
http://www.maxdedicated.com

Submitted by Kelly Shoppach (not verified) on January 4, 2008 - 08:25.

MaxDedicated.com servers from $69, while supplies last! Servers feature 2.0 GhZ Intel CPU, 512 MB RAM, 2 TB of Transfer and More! Other plans available; we offer dedicated servers to fit every budget and need. All servers feature full root/administrator access.
http://www.maxdedicated.com

Submitted by Anonymous (not verified) on November 3, 2007 - 16:29.

Godaddy is the worst hosting platform period. The saying “you get what you pay for never” rang more true. One of my clients has 2 dedicated servers with Godaddy.com Last week, one of the servers went down and never came back. So what does godaddy do? trash the server, delete everything and say, here you go client, here is your brand spanking new server. Happy? OHHH NO!!! You just deleted my entire database with my website. Where did go? Godaddy: uhhhhh, I don’t know, but you have a new server now.

Fast forward 2 weeks, server #2 goes down. SAME EXACT THING. Are you kidding me Godaddy? Unreal. I will never send another penny to this company even if they were the last hosting company on earth. Good Bye Godday, your hosting sucks, you suck, your snail speed customer service sucks. I am better off hosting my servers out of my garage. Godaddy is the worst, most unreliable shared hosting, dedicated hosting, VPS hosting, anything hosting in the world. Congratulations!

Submitted by Pokerz (not verified) on March 2, 2008 - 18:34.

Go Daddy the worst...Agreed...did you find a comparable get what you pay for VDS for close to the same price? If so, please let us all know.

Submitted by Rod (not verified) on September 27, 2007 - 15:19.

When you're logged in to your FTP, does this mean you're logged in as:

address: 12.34.567.890
username: 12.34.567.890
password: thepassword

Is this right? I tried to log in as this and it gives me this error in SmartFTP: 530 Login incorrect.

I'm using port 21. I can only login to my Godaddy VDS by putting the domain name username I used as the username. I'm also using simple control panel.

Submitted by Rod (not verified) on September 27, 2007 - 15:17.

When you're logged in to your FTP, does this mean you're logged in as:

address: 12.34.567.890
username: 12.34.567.890
password: thepassword

Is this right? I tried to log in as this and it gives me this error in SmartFTP: 530 Login incorrect.

I'm using port 21. I can only login to my Godaddy VDS by putting the domain name username I used as the username. I'm also using simple control panel.

Submitted by John (not verified) on August 13, 2007 - 20:49.

I just purchased a VDS and I am not familiar with the basics. Is there a specific book out there I could read to understand this.
Thank you very much.

Submitted by shig on September 22, 2007 - 16:09.

There's no specific book on VDSes that I'm aware of. However, in many ways, a VDS should be administrated the same way a dedicated server is. That is, you will need to be able to log into it, manage packages and security. A good way to start might be to find a book on linux.

Submitted by MaximumPig (not verified) on August 2, 2007 - 18:52.

this works for domain subdirs but what if I want to back up my entire linux installation? Also it's not clear to me that using FTP in the manner described above preserves the domain directory's tree structure in the backup target directory.

Submitted by Mike Maxson (not verified) on June 4, 2007 - 02:23.

Thanks for this. I was having a hell of a time trying to figure out the ftp bit. Kept using the username for my cpanel by mistake. All is well now.

Cheers!

Submitted by Car Parts Guy (not verified) on May 17, 2007 - 04:09.

I have the VDS from GD and it was one hell of a time setting simple things up. Seems like stuff that should be there are not. It took my some time to figure out how to get into the root but once that was done it's become smooth moving.

P.S. gd will not give you any help in an way on the VDS so it's great to see sites like your with little tips like this.

Thanks

Eric aka RacerX
http://www.racerXchange.com

p.s. any one now how to change the defalut web page for VDS?

Submitted by shig on March 5, 2007 - 22:39.

That would be nice if they did. It would certainly cut back on the number of tech support calls they'd have to field.

Submitted by Ben Strackany (not verified) on March 5, 2007 - 22:28.

Good tips, I linked to this post from the GoDaddy VDS Wiki I started at godaddyvds.wikispaces.com. I wish GoDaddy would host their own help-wiki. :)

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

Captcha
This question is for testing whether you are a human visitor and to prevent automated spam submissions.

Odani Interactive is an Internet services company located in New York City. Our core competencies are online marketing (in particular direct response advertising) and web development.