# 1. Install dependencies:
sudo apt update
sudo apt install apache2
ghostscript
libapache2-mod-php
mysql-server
php
php-bcmath
php-curl
php-imagick
php-intl
php-json
php-mbstring
php-mysql
php-xml
php-zip
# 2. Install Wordpress:
sudo mkdir -p /srv/www
sudo chown www-data: /srv/www
curl https://wordpress.org/latest.tar.gz | sudo -u www-data tar zx -C /srv/www