sudo apt-get update && sudo apt-get upgrade
sudo apt install apache2
sudo add-apt-repository -y ppa:ondrej/php
sudo apt update -y
sudo apt-get install php7.2 php7.2-curl php7.2-pgsql php7.2-common php7.2-cli php7.2-fpm php7.2-gd php7.2-json php7.2-mbstring php7.2-mcrypt php7.2-soap php7.2-xml libapache2-mod-php7.2
sudo a2enmod php7.2
sudo a2enmod rewrite
sudo chmod 755 /var/www/html
sudo chown $USER:www-data /var/www/html
sudo chmod 755 -R /var/www/html/nome-do-projeto
sudo chown $USER:www-data -R /var/www/html/nome-do-projeto
sudo nano /etc/apache2/sites-available/e-estado.conf
Adicionar o seguinte conteúdo no arquivo:
<Directory /var/www/html/novo-e-estado>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
sudo a2ensite e-estado
sudo service apache2 restart