Setup WordPress Blog Site in 1 hour | EC2 Instance | PHPMyAdmin | Domain Pointing | SSL

wordpress web development 1

Most People need to buy hosting and domain to Launch WordPress Blog which basically cost them $200. People often wish to give try to blog and after wasting 1 month they literally don’t want to continue. This blog helps in creating a WordPress Blog Site and within 1 year you can check if you have the patience of creating a blog and earning money from it. In this blog, I will show you how can launching an EC2 instance and set up a WordPress blog site in 1 hour at a cost of $1.5. Even InfoHubBlog is built with the same configuration I shared below.1st you can create an AWS free tier. I have included a video for reference. This will solve the problem of hosting providers. You don’t need to pay the charge of the Hosting Provider.

The above video will let you create AWS free tier. After creating you can install httpd

Command:

  • Run the following command
yum install httpd
  • Use the systemd systemctl tool to start the Apache service:
systemctl start httpd
  • Enable the service to start automatically on boot:
systemctl enable httpd.service
  • Install MySQL
sudo rpm -ivh mysql57-community-release-el7-9.noarch.rpm
  • Install MySQL Server
sudo yum install mysql-server
  • Start MySQL
sudo systemctl start mysqld

Download WordPress using below command to get latest wordpress

wget http://wordpress.org/latest.tar.gz

Download PHPMyAdmin and put in /usr/share/phpMyAdmin and Create Pointing with below Configuration

Alias /phpMyAdmin /usr/share/phpMyAdmin
Alias /phpmyadmin /usr/share/phpMyAdmin
<Directory /usr/share/phpMyAdmin/>
AddDefaultCharset UTF-8
<IfModule mod_authz_core.c>
<RequireAny>
Require all granted
</RequireAny>
</IfModule>
<IfModule !mod_authz_core.c>
Order Deny,Allow
Allow from All
Allow from 127.0.0.1
Allow from ::1
</IfModule>
</Directory>
<Directory /usr/share/phpMyAdmin/setup/>
<IfModule mod_authz_core.c>
<RequireAny>
Require ip 127.0.0.1
Require ip ::1
</RequireAny>
</IfModule>
<IfModule !mod_authz_core.c>
Order Deny,Allow
Allow from All
Allow from 127.0.0.1
Allow from ::1
</IfModule>
</Directory>
<Directory /usr/share/phpMyAdmin/libraries/>
Order Deny,Allow
Allow from All
</Directory>
<Directory /usr/share/phpMyAdmin/setup/lib/>
Order Deny,Allow
Allow from All
</Directory>
<Directory /usr/share/phpMyAdmin/setup/frames/>
Order Deny,Allow
Allow from All
</Directory>

 

WordPress Blog Site

Purchased required domain from hosting . They usually provide great deals and domains at Lower Prices. You can wait for Black Friday and they usually provide a domain at around $1.

After you install everything above you can put this in the config file of “/etc/httpd/conf.d/domain.conf”

<VirtualHost *:80>
ServerName server.com
ServerAlias www.server.com
Alias /blog /path/blog
<Directory /path/blog>
Options FollowSymLinks
Order deny,allow
Require all granted
Allow from all
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /blog/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L]
</IfModule>
</Directory>
DocumentRoot /path/blog
ProxyPreserveHost On
Header set Access-Control-Allow-Origin "*"
</VirtualHost>

 

This will point the domain to your WordPress folder and you are done with the setup of creating WordPress on your AWS EC2 Free Tier

 

  • Don’t Forget to give Permission to WordPress Folder i.e. chmod 777 /blog/

wordpress blog

WordPress blogs are really very attractive. It has thousands of plugins related to SEO, Forms and many more. Many Blogging Sites are built on WordPress because it has its admin panel and plugins available. You can choose a theme according to your choice. Thousands of themes are free and easy to install with just one click. You can even purchase themes if you don’t like and free themes. You can give custom style, set up widgets, add ads. It is just a one-time installation and then it is ready to use. If you start building some project from scratch it will take time and need developer intervention. If you use WordPress then even a content writer can handle that. With just one click you can add posts and you can spend more time in SEO rather than worrying about UI. Let me list down good plugins i.e Rank Math, Site Kit, Link Whisper and many more.

 

For Reference :

Setup MySQL Server: https://www.digitalocean.com/community/tutorials/how-to-install-mysql-on-centos-7

Setup WordPress Site: https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-on-centos-7

Be the first to comment on "Setup WordPress Blog Site in 1 hour | EC2 Instance | PHPMyAdmin | Domain Pointing | SSL"

Leave a comment

Your email address will not be published.


*