To maximize the impact and escalate the focus with minimalist approach and investment, there is no alternative to the combination of Amazon AWS EC2 and WordPress. You don’t require a million dollar marketing budget for gaining an impressive impression on the web, a simple WordPress website on EC2 Amazon AWS can host any site and cloud application at the most affordable price-range. Amazon AWS has the resources to take your business into a new level, while WordPress is the gunner being the simplest traffic, content and ad maintenance platform for any kind of business.
When it is very common for small-scale or large-scale businesses to seek for different requirements as well as marketing objectives with ease and simplicity, there cannot be any alternative to a WordPress website. It will not only bring forth the ease of management, but also it helps to manage all web-marketing requirements at ease.
If you are planning to invest limited time, money as well as staffs for your online marketing, WordPress Website in combination with EC2 Amazon AWS could play a pivotal role. Nonetheless, without keeping you at the bay for long and beating about the bushes, here, we are going to get back straightly to the point we will be discussing here.
Start with creating an AWS account
Let us begin with creating an AWS account at first. Just enter into the official website and sign up, yet you will require a credit card as well as phone number for the registration process to be completed. The phone number will be required for the verification and personal identification. By the way, Amazon delivers an offer to explore their services without being charged. In accession, it is also possible to be able to host a real-time app without paying a single dime.
The instance type you should use
Although there is a good chunk of instances available, it is better to start your experiment with a micro instance, for the price is highly attractive. However, if you have plan for a large blog or website, micro instance is going to work and your blog may become unresponsive. Yet, micro instances are well capable of handling few thousand-page views and hosting simple applications. Let us take an Eagle’s eye view how you will be creating your new instance. For creating the new instance, at the very beginning, access into the AWS management console and click EC2 tab.
- In the classic instance wizard, you need to choose an AMI and for instance, you can choose a basic 32 bit Amazon Linux AMI.
- Now choose the instance type you are willing to use. It is recommended for the newbies and small business
- owners to go for small (m1.small).
- Now you require to create a new key pair and to enter a name for the key pair. Then, just download the key pair. The name could have been “Patrick” for instance and the key pair would be “Patrick.pem”.
- Then, it is required to choose the quick start security group.
- All is done for now and you are ready for the launch of the instance.
SSH into the instance
Once you are done with instance and it is up and running, you can perform SSH into that. At the beginning, identify the address of the instance. For doing that, you need to select the instance from the AWS management console. Then, find out the public DNS located at the bottom part of the screen. You can easily use that public DNS address for putting SSH into the instance.
ssh email@example.com -i ~/patrick.pem
Now, you may receive a massage about .pem file permission getting too opened. If it happens, chmod your .pem file. Here is the way:
chmod 600 ~/patrick.pem
However, a lot of shell commands below will require the root access. You could just switch the user once and you would receive a hassle free experience.
Installing the Apache web server
To perform the installation of Apache web server, all you need to do is to type the following.
yum install httpd
Now, you are ready to start the Apache web server.
service httpd start
For testing the web server, just open a browser and access into your site using the actual public DNS name. You will receive a standard Amazon place holding page in the screen.
Installing the PHP
At this step, you need to install the PHP and for performing the installation, type the following:
yum install php php-mysql
Then, you need to restart the Apache web server. Now, you can create a simple page for testing the PHP installation. Type the following code:
vi test php
Here are the next tasks you will have to perform.
- To initiate the insert mode, type “i”
- Then, type “<?php phpinfo () ?>”
- After that, type “:wq” for writing the file and quitting the vi
Now, you can open a browser and enter into test.php to see how the installation goes. You have to use the original public DNS name and it may like this: http://ec2-50-17-14-16.compute-1.amazonaws.com/test.php
Installing the MySQL
At this particular step, you will be installing the MySQL. For installing the MySQL, type the following:
Yum install mysql-server
Then, start the MySQL by typing the following:
Service mysqld start
After that, you can create the database of your blog by typing the following:
Mysqladmin -uroot create blog
Make your database secured by typing the following code:
While answering the wizard questions, follow the below mentioned pattern.
Installing the WordPress
At last, we can now install the WordPress into your server after performing the installation of Apache web server, PHP and MySQL. For installing the WordPress, type the following:
tar -xzvf latest.tar.gzcd
This code will ultimately unfold the WordPress in the WordPress directory. It is better to have WordPress in a separate directory and here, we are renaming it as “blog”.
mv wordpress blog
For creating the WordPress wp-config.php file, type the following code.
mv wp-config-sample.php wp-config.php
- For starting the insert mode, type “i”.
- You can modify the database connection parameters by the following way
- Then, type “:wq” for writing the file and quiting the vi.
Now, open a browser to access the blog and enter your original public DNS that may look like http://ec2-50-17-14-16.compute-1.amazonaws.com/blog.
Mapping the IP address as well as Domain Name
For using the blog in production, you just need to associate an IP to the instance and map the domain name to the IP. Here are the steps.
- Associating the IP address to the instance: From the AWS management console, at first, you need to click the elastic IPs from the left navigation bar.
Now, click the allocate new address and you have to confirm by clicking the button, “Yes,Allocate”.
Then, right click on the newly allocated IP and choose associate from the pop up menu. Now, choose the instance you have just created and click “Yes, Associate”.
- Mapping the domain name to the IP address: To map the domain name to the IP address, you need to use the tools, which could be provided by your domain registrar.
When you are done with configuration and mapping with perfect precision, access the general setting from the WordPress Management Console and you must have to make sure that the WordPress address as well as site address are properly specified.
Following the above-mentioned ways, you could easily get down straight to the business whether it is a large-scale or small-scale one. In accession to adding a value to the brand itself, you could generate brand awareness, web traffic, web leads and web sales at the easiest, most affordable and convenient manners available.