Skip to content

Instantly share code, notes, and snippets.

@diegobarros0701
Last active November 5, 2019 05:02
Show Gist options
  • Save diegobarros0701/732a25b96cb3c296cd0aaa1b8cd26971 to your computer and use it in GitHub Desktop.
Save diegobarros0701/732a25b96cb3c296cd0aaa1b8cd26971 to your computer and use it in GitHub Desktop.
Apache + PHP (WordPress)

Configurações Apache + PHP (WordPress) para Ubuntu

Adicionar repositório para o PHP

sudo add-apt-repository -y ppa:ondrej/php

Atualizar pacotes

sudo apt-get update && sudo apt-get upgrade

Instalar Apache

sudo apt install apache2

Instalar PHP 7.1

sudo apt install php7.1 php7.1-common php7.1-cli libapache2-mod-php7.1 php7.1-mysql php7.1-curl php7.1-gd php7.1-json php7.1-xml php7.1-mbstring php7.1-xmlrpc php7.1-zip php7.1-soap php7.1-intl

Habilitar módulo do PHP 7.1

sudo a2enmod php7.1

Habilitar módulo rewrite

sudo a2enmod rewrite

Reiniciar Apache

sudo systemctl restart apache2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment