Deploying WordPress into AWS with the help of RDS and EC2-instance.

[root@-172-31-37-93 ~]# yum install httpd mysql -y
[root@-172-31-37-93 ~]# amazon-linux-extras enable php7.4
[root@-172-31-37-93 ~]# yum clean metadata
[root@-172-31-37-93 ~]# yum install php php-common php-pear
[root@-172-31-37-93 ~]# yum install php-{cgi,curl,mbstring,gd,mysqlnd,gettext,json,xml,fpm,intl,zip} -y
[root@-172-31-37-93 ~]# php -v
[root@-172-31-37-93 html]# wget http://wordpress.org/latest.tar.gz
[root@-172-31-37-93 html]# tar -xzf latest.tar.gz
[root@-172-31-37-93 html]# cd wordpress
[root@-172-31-37-93 wordpress]# mv * ../
[root@-172-31-37-93 html]# rm -f latest.tar.gz
[root@-172-31-37-93 html]# rmdir wordpress/
[root@-172-31-37-93 html]# setenforce 0
[root@-172-31-37-93 html]# systemctl start httpd
[root@-172-31-37-93 html]# systemctl enable httpd
[root@-172-31-37-93 ~]# mysql -h Endpoint_dns -u user_name -p
[root@-172-31-37-93 html]# systemctl restart httpd

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Let’s be Abstract !!

Who the f**k is a Perfect Developer!

4 Tips To Write Scalable Apache Spark Code

An Open Letter to the #Wyze Team.png

Use an API with an Offline Database to Sort Website’s Industries

Pick the Top Memory Foam Mattress for yourfamily https://t.co/uGA3EAJSWC

Can Meilisearch replace TicketSwap’s Elasticsearch powered events and artists search?

Tactical help save

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Deepak Sharma

Deepak Sharma

More from Medium

Creating a Static website using S3

Deploying CKAN application on AWS

A Problem with AWS ALB Stickiness

How to host a static website on an S3 bucket?