From my notes for how to set up a cheap, low memory Virtual Private Server that can run multiple instances of the WordPress blogging platform.
Why? Shared hosting is okay, but you are limited in your control over the resources on your account. Sharing a server is also sharing resources, and if someone is using their hosting account for videos, large flash or MP3 streaming, you could see a significant drop in performance. Another significant downside is not having the ability to configure the server based on the applications that you want to run.
A Virtual Private Server, or VPS gives you complete control (known as Root access) over your server. The virtual server sits on a physical server, but acts independently of the physical server, and the other VPS instances also residing on the physical box.
The following instructions show you how to set up your own WordPress blog on a low memory VPS for free. You have root access and you wont have to worry about other shared users hogging all the resources of the server. The following instructions will automatically configure the server for WordPress, and you will be able to set up multiple instances of WordPress on the server. The number of instances can vary depending on how much traffic your websites receive.
Tip: If you want a 100% free domain name go to http://dot.tk to get it!
The # sign is what your terminal displays for the command prompt to signify the terminal is waiting for you to type a command.
The … means you have to wait for the command to execute. You’ll know when the process is done when you see the # display again on the next line.
Download the SSH client Putty or similar http://bit.ly/ui5DpU
1. Purchase a VPS Server
2. Deploy a Debian/Ubuntu VPS
3. SSH as Root using SSH Client and type:
# apt-get update
# apt-get upgrade -y
4. Enter the following commands at the prompts:
# wget http://wbhst.us/setupdebian
# bash setup-deb.sh system
# bash setup-deb.sh exim4
# bash setup-deb.sh nginx
# bash setup-deb.sh mysql
# bash setup-deb.sh php
5. Your system is now ready for the first instance of WordPress to be installed.
Type the following command, replacing the example.com with your domain name.
# bash setup-debian.sh wordpress example.com
6. Change the ownership of the files – this is done so WordPress can install plugins and themes
#chmod -R www-data:www-data /var/www/example.com
Now you can open a browser and type in your domain name. Your new instance of WordPress will be waiting for you to set the site configuration values (Site name, admin name, password, etc…)
The database is already set up.
7. To add more WordPress sites, just re-run the command (replace nextexample.com with your next domain name:
# bash setup-debian.sh wordpress NextExample.com
That’s it! All Done.