Skip to content

Dvkant/Host-a-Wordpress-Website-on-AWS-EC2-with-own-domain-name

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Host-a-Wordpress-Website-on-AWS-EC2-with-own-domain-name

Install apache and mysql

sudo apt install apache2 -y && sudo apt install mysql-server -y 

First, install the application dependencies you need for WordPress. In your terminal, run the following command.

sudo apt install php libapache2-mod-php php-mysql -y

OR

use the install.sh which install all the above cmd

Download wordpress and extract

wget https://wordpress.org/latest.tar.gz
tar -xzf latest.tar.gz

now go to wordpress dir and change some config

$ cd wordpress
$ cp wp-config-sample.php wp-config.php
$ nano wp-config.php

Finally, create a database user for your WordPress application and give the user permission to access the wordpress database.

Run the following commands in your terminal:

CREATE DATABASE wordpress;
CREATE USER 'wordpress' IDENTIFIED BY 'wordpress-pass';
GRANT ALL PRIVILEGES ON wordpress.* TO wordpress;
FLUSH PRIVILEGES;
Exit

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages