WORDPRESS+MYSQL = WEBSITE πŸ‘¨β€πŸ’»

Sourabh Mishra
3 min readJan 21, 2021

πŸ”… Creating an AWS EC2 instance..

πŸ”… Configuring the EC2 instance with Apache Webserver httpd..

πŸ”… Downloading php application name β€œWordPress”..

πŸ”… As WordPress stores data at the backend in MySQL Database server.. Therefore, setting up a MySQL server using AWS RDS service using Free Tier..

πŸ”… Providing the endpoint/connection string to the WordPress application to make it work..

…………………..……CREATING MYSQL DATABASE………………….…….

Now, creating MYSQL database using RDS service in AWS.

Go to RDS option in database..

Select MySQL 5.7.30

Select free tier option for free RDS service..

Give credentials for your database..

If you want public access for the database, then opt for Yes. As such for good security select option No.

Now at last click on CREATE DATABSE..

…………………………………………………………………………………………………………………………………………………………………………….………………………………………………………………………………………….

Now, launch an EC2 instance to connect MYSQL to WordPress..

In command prompt install httpd, php and WordPress software. Run the following commands.

# Yum install httpd mysql -y

# wget http://wordpress.org/latest.tar.tz

# tar -tvzf latest.tar.tz -C /var/www/html

# amazon-linux-extras enable php7.4

# systemctl start httpd

Now you are good to go for the launching of your website..

Go to your browser and type the url or public ip of the EC2 instance

Put up the details of your database and credentials..

After that you will see the page of run installation.

Finally , You will get landed on the WordPress website hosting page.\

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

No responses yet

Write a response