Let's install...
- apt install unzip
- apt install php
- apt install php-mysqli
- systemctl restart apache2
Wordpress Latest
Install Wordpress
- cd /var/www/html
- wget https://wordpress.org/latest.zip
- unzip latest.zip
- chgrp -R www-data wordpress
- chmod -R 771 wordpress
- http://x.x.x.x/wordpress
- https://docs.craftycontrol.com/pages/getting-started/installation/linux/
MySQL Installation
- MySQL Repo
- wget https://repo.mysql.com//mysql-apt-config_0.8.36-1_all.deb
- apt install ./mysql-apt-config_0.8.36-1_all.deb
- apt update
- apt install mysql-server -y
- systemctl enable mysql.service
- systemctl start mysql.service
- netstat -tunap
Run the following inside MySQL:
create database mydatabase;
create user 'mydbuser'@'localhost' identified by 'mypassword';
grant all privileges on mydatabase.* to 'mydbuser'@'localhost';
flush privileges;
show databases;