DEV Community

loading...

Wordpress on AWS EC2 ubuntu

asdflkjh profile image kinaamnay ・1 min read

sudo apt update -y
sudo apt upgrade -y

sudo apt-get install apache2
sudo systemctl start apche2
sudo systemctl status apche2
sudo systemctl enable apache2
sudo apt-get install mariadb-server mariadb-client -y

sudo systemctl start mariadb
sudo systemctl status mariadb

sudo mysql_secure_installation

sudo systemctl restart mariadb

sudo apt-get install php php-mysql php-gd php-cli php-common -y

sudo apt-get install wget unzip -y

sudo wget https://wordpress.org/latest.zip

sudo unzip latest.zip

sudo cp -r wordpress/* /var/www/html/

cd /var/www/html

sudo chown www-data:www-data -R /var/www/html/

sudo rm -rf index.html

sudo mysql -u root -p

create database wordpress;

create user "wpadmin"@"%" identified by "wpadminpass";

grant all privileges on wordpress.* to "wpadmin"@"%";

exit

insert those details on public web address on wordpress intallation and done.

Discussion (0)

pic
Editor guide