With a desire to share some of the projects I work on and little tidbits of knowledge I learn along the way that might benefit others I have created this site. This post will describe the resources and link to the tutorials used to get it up and running.
Follow these great tutorials provided by Digital Ocean to build the WordPress stack from Ubuntu up:
- Initial Server Setup with Ubuntu 14.04
- How To Install Linux, Apache, MySQL, PHP (LAMP) stack on Ubuntu 14.04
- How To Install WordPress on Ubuntu 14.04
If you just want WordPress up and running and don’t care about building the stack you can follow:
Familiarity with the command line – These tutorials seemed pretty fool proof even if you were to blindly copy commands but some familiarity with the command line (navigating file systems, using terminal-based text editors) would help you not get lost.
I chose DigitalOcean to host my cloud server. They provide very quick setup of instances and I really like their many helpful tutorials. Some other options include: Amazon Web Services, Microsoft’s Azure, and Google’s Cloud.
The pricing seems pretty consistent across the suppliers for the same specs. Some have options that may more closely fit what sort of needs you may have for your server. For example, AWS offers their T-type instances as burstable performance instances. These are great if you expect lulls and burst activity for say a web server.
Once you’ve chosen a provider, choosing your instance specs comes next. The server hosting this page is has 512 MB memory, 20 GB HD and runs Ubuntu 14.04 x64. That is their smallest instance size as I don’t plan on demanding much out of this instance. The 512 MB level costs $5/month or $0.007/hour.
It is possible to use their one-click apps instances and there you go you’ve got WordPress, MondgoDB, or Redis. I wanted to get more familiar with building the necessary stack so did not use the one-click apps option.
Getting started with your new server
The Initial Server Setup with Ubuntu 14.04 tutorial walks through the initial connection and securing the server for access only by you or those you allow to access the server.
The Additional Recommended Steps for New Ubuntu 14.04 Servers tutorial was helpful but not necessary. It walked through:
- setting up a firewall,
- selecting the time zone (“will help prevent some inconsistent behavior that can arise from out-of-sync clocks”),
- and creating the swap file (virtual memory file for extension of RAM).
LAMP stands for Linux operating system, Apache web server, MySql database, and PHP. This is a common “stack” of software infrastructure for the web. Each component can be subbed out with alternatives say if you have a preferences e.g. python instead of PHP or a different data storage subbed for MySql. How To Install Linux, Apache, MySQL, PHP (LAMP) stack on Ubuntu 14.04 walks through the basic set up of the AMP portion of the stack.
Lastly, the How To Install WordPress on Ubuntu 14.04 walks through the WordPress install and setup.
You now have a WordPress site.
Setting up a domain name
Lastly, we will connect a Domain name. From the steps above you will have an ip location for your content and people are able to navigate to say 999.999.999.99 if you’re using IPv4 or 2001:0db8:0000:0042:0000:8a2e:0370:7334 using IPv6 but a domain name is what people tend to use to navigate to sites.
Digital Ocean also had some great content explaining how ip’s and domain names fit together: An Introduction to DNS Terminology, Components, and Concepts. The quick take away is an ip look up takes place for a domain name. This lookup can occur on your computer or through a network of name servers. We need to notify the name servers of our ip’s domain (which we still may need to buy).
Sites like GoDaddy or NameCheap allow you to purchase your domain name. The domain can be alone can be very cheap especially if you go with non-generic top-level domains e. g. sethcapaul.futbol instead of sethcpual.com. Hosting (which we’re doing through our our server is usually the more expensive part.
Once you have an awesome www.your-domain.ninja domain you can walk through How To Set Up a Host Name with DigitalOcean if you used Digital Ocean. If you’ve decided, on another option the concept will is the same.
You should now have a great blog hopefully at your-domain.tatoo.
If you have some suggestions or improvements on the above content, also please leave a comment below. If you experience any problems with this content, the Digital Ocean forum is a great resource.