Home » Categories » Multiple Categories

How To Launch Your Site on a New Ubuntu 12.04 Server with LAMP, SFTP, and DNS

This article will take you from a fresh, new server to an online, working site. The following article will combine the relevant articles into a cohesive step by step to guide to set up your personal site on an Ubuntu server.

Basic Server Setup


After you have created your first server, you can start to secure it and create new users. Although this step is not required, nor are all the changes made in the tutorial necessary, it will begin to secure your server: Initial Server Setup.

Install LAMP


Subsequently, we need to start setting up the server programs. A strong foundation for the server is the traditional LAMP stack: Linux (automatically installed on the server), Apache, MySQL, and PHP, a web server, database server and programming language, respectively.

Prior to setting up our personal site, we need to be sure that LAMP Stack is installed on the server.

Set Up Your Domain


In order to ensure that your site will be up and visible, you should set up your DNS to point your domain towards your new server. The basic setup is almost all automatic, requiring you to only enter your domain and the IP address of the server that you are looking to host your site on. You can find more information on Setting Up a Hostname by following the link.

Connect with SFTP


Now your site should be up and connected, and, once the records have propagated, you should be able to see the standard Apache, "It Works!" page by visiting your domain in the browser. If you would like to visit your site before the records have been updated, you can access it by typing your server's IP address in the browser.

Now it is time to bring out the big guns: ie. Customizing your setup so that you can upload your own pages to your site. In order to do this, you need to install and configure an SFTP client.

Filezilla is a great program to use.

You can download Filezilla from their site.

Once it’s downloaded and installed, start it running. To begin transferring files, open up the Filezilla and within the file manager, open up the site manager options:

SFTP1
  1. Click on the new site button. You can double click the name of the entry to change the name

  2. Put your domain name (or IP address if your domain has not propagated yet) in the host field

  3. Fill in your username and password with the username "root” and the password you set earlier

  4. Click connect

Clicking connect will now allow you to transfer files from your computer to your server and build your site: be sure to drag them from your local directory on your left into your web directory (very likely /var/www) in frame on the right:

SFTP2
Attachments Attachments
There are no attachments for this article.
Related Articles RSS Feed
How To Install Z Shell (zsh) on a Cloud Server
Viewed 2380 times since Fri, Dec 27, 2013
How To Use WP-CLI to Manage your WordPress Site from the Command Line
Viewed 9830 times since Sat, Jan 4, 2014
Installing and Using the Vim Text Editor on a Cloud Server
Viewed 2321 times since Fri, Dec 27, 2013
How To Install (LEMP) nginx, MySQL, PHP stack on Arch Linux
Viewed 13409 times since Sun, Dec 29, 2013
How to Setup Additional Entropy for Cloud Servers Using Haveged
Viewed 2356 times since Sat, Jan 4, 2014
How To Create Nagios Plugins With Perl On CentOS 6
Viewed 2292 times since Sat, Jan 4, 2014
How to Add a Swap File on an Arch Linux Cloud Server
Viewed 2265 times since Fri, Dec 27, 2013
How To Set Up mod_security with Apache on Debian/Ubuntu
Viewed 3868 times since Thu, Dec 26, 2013
How To Create Nagios Plugins With Bash On Ubuntu 12.10
Viewed 1911 times since Sat, Jan 4, 2014