Build a Free WordPress Blog in the Cloud

In this intermediate level WordPress tutorial, I will cover how you can host an absolutely free WordPress blog that you can customize as you see fit. The only alternative solution for a free WordPress blog has to do with signing up with WordPress.com and hosting your blog with them, but they do not offer you the freedom that hosting your site on the Amazon free usage tier does. For one thing, you have complete freedom of design and branding using the cloud server solution described in this tutorial.

Setting on Your Amazon Account for Free:

The first thing you have to do is sign up and start a cloud server on Amazon’s free usage tier. Here is how:

  1. Go to aws.amazon.com, signup & login to your AWS Management Console
  2. Open EC2 tab and click “Launch Instance”.
  3. Select Linux 64bit with the star by it first step of wizard then click Continue 2 times until you see the screen to enter a key/value pair.
  4. Leave the first key field set to “name”. Set the value to a name to id your server. Click Continue.
  5. If it’s your first time making an instance, choose “create new key pair” and follow the procedure to do so. Otherwise, choose one you created before and continue.
  6. If you haven’t created a security key, choose default here and continue to launch pg and click “Launch”.
  7. Click on text link that reads “View your instances on the Instances page”.
  8. Open Putty and enter the public DNS you were given during instance creation i.e.: ec2-23-50-63-219.compute-1.amazonaws.com into the host field. If you do not have Putty, the command line interface necessary for this step, you can download it at: http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
  9. In the left column of your Putty interface, expand “ssh” and click on “auth” then browse to where you saved your .ppk file. If you have a pem, use Puttygen to reformat it. Click “open” when done.
  10. Enter the user name “ec2-user” and you will get a command prompt if it worked.
  11. Type the following command line commands at the prompt:

    sudo yum install php-mysql php php-xml php-mcrypt php-mbstring php-cli mysql httpd

    sudo yum install mysql-server

    sudo /etc/init.d/mysqld start

    mysqladmin -u root password UrPassWord

    mysql -u root –p

    CREATE DATABASE MYSQL;

    use MYSQL

    CREATE USER ‘MYSQL_admin’@’localhost’ IDENTIFIED BY ‘myadminpass’;

    GRANT ALL PRIVILEGES ON MYSQL TO ‘MYSQL_admin’@’localhost’;

    CREATE USER ‘MYSQL_user’@’localhost’ IDENTIFIED BY ‘myuserpass’;

    GRANT SELECT, INSERT, UPDATE, DELETE ON [DataBase NAME].* TO ‘[DataBase NAME]_user’@’localhost’;

    Exit;

    Sudo chown e2c-user /var/www/html

    sudo vim /var/www/html/index.php

At this point if you typed all the above commands correctly you should be in the middle of editing a file with the vim editor. Type “I” to put it into insert mode and type something for the contents of a test php page,

Then hit the Esc key to get out of insert mode and type “:wq” to save your file.

Type:
Sudo service httpd start

Go to your public DNS and see if you see your test page. If you don’t try these possible fixes:

Your test page may not have proper file permissions, so type:
Sudo chown ec2-user /var/www/html/index.php

If it is still not to working, restart the httpd server by typing:
service httpd restart
or
servicehttpd stop
then
servicehttpd start
if it said ok, you are okay, so try again and it should work.

PHPMYADMIN INSTALL:
Now type the following commands to install phpmyadmin if you want it:

cd /var/www/html

wget http://www.sourceforge.net/projects/phpmyadmin/files/phpMyAdmin/3.4.1/phpMyAdmin-3.4.1-all-languages.tar.bz2

tar -jxf phpMyAdmin-3.4.1-all-languages.tar.bz2 -C /var/www/html

mv phpMyAdmin-3.4.1-all-languages phpmyadmin

cd /var/www/html/phpmyadmin

mkdir config

cp /var/www/html/phpmyadmin/config.sample.inc.php /var/www/html/phpmyadmin/config/config.inc.php

Sudo vim /var/www/html/phpmyadmin/config/config.inc.php

Find the line that reads “$cfg[‘blowfish_secret’] = ”;” and add a value of a secret passcode. It can be anything.

Find the line that reads “$cfg[‘Servers’][$i][‘AllowNoPassword’] = false;” and change false to true.

Now hit the esc key and type :wq to save and quit. Finally go to your public DNS followed by /phpmyadmin and if it worked you will be in your new phpmyadmin area.

Installing a WordPress Blog in the Cloud:

  1. Now go to your phpmyadmin and create a new database named wps.
  2. Open Filezilla, click on “edit” select “settings” then select “sftp” in the left column and click on “add keyfile…” in the right column. Select your .ppk file and make a private key out of it. If you already have a private key stored in the box above the button, you may be able to use that instead.
  3. Go to the site manager, click “new site” and enter the public DNS into the host field. Select “SFTP” as the protocol. Logon type needs to be “Normal” and finally enter the username and click connect.
  4. Once connected via FTP using FileZilla or another FTP program, go down two directories to get to the root. Then navigate back up to the HTML dir by going to /var/www/html.
  5. Download and extract WordPress from: http://wordpress.org/download/
  6. Make changes to files from your desktop – Open the new folder named “wordpress” created on your desktop. Locate the file named “wp-config-sample.php” and rename it to “wp-config.php”. Open the config.php file in notepad and fill in your own database details where they are required. You will clearly see where they go as the file is well notated for this purpose.
  7. Upload the WordPress files via FTP – Now create a directory on your server for your blog. If you want your blog to be in the root directory, like example.com, then upload all the files in your WordPress installation to the root folder, but do not include the folder itself, just the files. If you want a separate directory for your blog, make a new directory for your blog, like example.com/blog. Use your favorite FTP client such as FileZilla to upload the files.
  8. Run the WordPress installation script – This is done by accessing the wp-admin/install.php file from a web browser. You would go to example.com/wp-admin/install.php or example.com/blog/wp-admin/install.php depending on how you uploaded it in the previous step.

Summary

That is all there is to creating you very own free usage tier account with Amazon cloud server and installing WordPress on it. You can use this account completely free if you don’t go over on disk space usage. After that year, you will start accumulating charges. Also, if you go over your allotted disk space in the free usage tier, you will start accumulating charges. Be careful and monitor your Amazon account to be safe. Have fun with your new free WordPress site in the cloud! You will find it goes faster and smoother than on any other server.

How to Install WordPress in a Few Minutes

This post was updated on October 3, 2014

In this post we’re going to show you how to install WordPress on your host in just a few minutes. Part of what makes installing WordPress so quick and easy is its popularity. WordPress is far and away the most popular content management system in the world and because of this most hosts have created what’s called a “one-click” WordPress installation feature. I’ll show you this method first and then what is known as the manual method of installing WordPress via FTP (file transfer protocol) second.

Using Your Host’s “One-Click” WordPress Installation Feature

Each hosting service is going to have a slightly different looking interface, but the process remains the same.

1. Find the One-Click Install Section

This is sometimes a sub-section such as “goodies” that houses other offerings such as analytics, adwords, etc. Other times it is its own section.

2. Choose WordPress

When you click on the WordPress options you will be asked which domain to install WordPress on. Select the appropriate domain (which much be fully hosted to appear, not simply registered). Unless you choose to create a custom database one will be created for you.

3. Click Install

After clicking it takes between five and ten minutes for the install to complete and an email will be sent to you with a few simple instructions that you can follow along with in order to access the admin section of your new WordPress website!

Installing WordPress via FTP

It has become increasingly rare for a hosting service not to have a simplified WordPress installation process. However, you may have your own server or simply desire to manage the installation manually for a number of different reasons. In any of these cases, the FTP WordPress installation instructions below will have you up and running in as few as five minutes.

1. Download & Unzip the WordPress Package

First, download the WordPress package from WordPress.org. To accomplish this simply click on the link that reads “Download WordPress 4.0” (or the latest version of WordPress).

Next…

For Windows: click save file then left click on the file name in the “Downloads” pop up window and choose the “open containing folder” option to open the folder with your download. Now left click on the zip archive entitled “wordpress-4.0” or the most recent version title and choose “Extract”. In the extract pop up, click the “Browse” button and select “Desktop” to extract the archive to your desktop.

For Mac: navigate to your downloads folder and find the new zipped WordPress file. Then, double-click the zipped file and it will unzip into a folder. You can then drag the WordPress folder to your desktop for easy access.

2. Create a Database & MySQL User on Server

From within your hosting account, navigate to PHPMyadmin and create a table for WordPress. The table name is up to you, but we suggest simply naming it “wordpress” if you only plan to have one installation. Otherwise something like “wordpress_1” would be good for multiple installations.

3. Rename wp-config-sample.php to wp-config.php & Edit

Back on your desktop, open the new folder named “wordpress”. Locate the file named “wp-config-sample.php” and rename it to “wp-config.php”. Open the config.php file in notepad or textedit (for Windows and Mac respectively) and fill in your own database details where they are required. You will clearly see where they go as the file is well notated for this purpose.

4. Upload WordPress Files to Server

Now create a directory on your server for your blog. If you want your blog to be in the root directory, like example.com, then upload all the files in your WordPress installation to the root folder, but do not include the folder itself, just the files. If you want a separate directory for your blog, make a new directory for your blog, like example.com/blog. Use your favorite FTP client such as FileZilla or Transmit to upload the files.

5. Run the WordPress Installation Script

This is done by accessing the wp-admin/install.php file from a web browser. You would go to example.com/wp-admin/install.php or example.com/blog/wp-admin/install.php depending on how you uploaded it in the previous step.

What’s Next?

After completing either of the two WordPress installation methods above you now have a brand new WordPress website, on your very own domain, to do with what you will. Those of you newer to WordPress and perhaps unfamiliar with how to configure the initial settings might want to continue on to our overview of the WordPress admin. Others of you may want to learn how to install and configure themes or plugins. While still others may wish to continue learning about the basic infrastructure of WordPress itself.

If you’re already familiar with all of that information and would instead like to experiment with WordPress customizations, themes, plugins and more then you may enjoy our tutorial on how to create a copy of your WordPress website on your local machine; which provides a risk free environment for experimentation.

Whatever your next step, we’ve got you covered. Happy pressing!