Install Nginx HTTP and reverse proxy server
sudo apt install nginx
Check: Now by accessing the server IP, the "Welcome to nginx!" should show up!
(For more info on configuration file, visit this ,this,this)
Install Database
sudo apt install mariadb-server mariadb-client
Check: now by entering sudo mariadb or sudo mysql, we should be able to enter MariaDB monitor.
Install PHP 7
sudo apt-get install php7.0 php7.0-fpm php7.0-mysql
Install a Clean Version of Wordpress
cd /var/www
sudo wget https://wordpress.org/latest.tar.gz
sudo tar xvfz latest.tar.gz
sudo rm latest.tar.gz
sudo mv wordpress my_new_wordpress_site
the last command could be also
sudo cp -a wordpress wordpress_demo
Change the ownership, so that media upload feature could work
sudo chown -R www-data:www-data /var/www/wordpress_demo