sudo a2enmod rewrite
sudo a2ensite wordpress
sudo systemctl restart apache2