Install wordpress with ubundu 20.04 With mysql and php;
Step 1: apache2 server install
sudo -i
password
sudo apt update
sudo apt install apache2
service apache2 status
service apache2 start
service apache2 stop
service apache2 restart
Step 2: PhP and MYsql install
Php install in ubundu;
sudo add-apt repository ppa:ondrej/php
sudo apt update
sudo apt install php7.4
sudo apt install php7.4 php7.4-json php7.4-xml php7.4-mbstring ...
Php configuration file in ubuntu;
sudo apt install openssl php-common php-curl php-json php-mbstring php-mysql php-xml php-zip
Step 3; Wget and Unzip file install;
Sudo apt install wget -y
Sudo apt install unzip -y
Unzip latest..zip
rm - R latest..zip
mv wordpress / folder name
Step 4; Mysql Database create
Mysql -u root -p
Data base create
create user“username”@‘localhost’ identified by ’1234’
grant all on databasename.* to ’username’@‘localhost’
flush privileges
EXIT
Step 5;
cd /var/www/html/wp
sudo nando wp - configsample.php
sudo nando wp - config.php
vim wp - config.php
Comments