Last active
August 29, 2024 18:42
-
-
Save GlauberF/15db4d88163ed72d1e0420307d4e35fa to your computer and use it in GitHub Desktop.
Comandos para instalacao do LAMP no Deepin, com PHP 7.1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## ATUALIZAR OS | |
sudo apt-get update && sudo apt-get -y upgrade && sudo apt-get -y dist-upgrade | |
## INSTALAR O MYSQL-SERVER | |
sudo apt-get install mysql-server | |
## INSTALAR O APACHE2 | |
sudo apt-get install apache2 | |
## CHECAR VERSAO DO PHP NO REPOSITORIO | |
sudo apt-cache search php7 | |
## INSTALAR O PHP 7.1 | |
sudo apt-get install php7.1-cli libapache2-mod-php7.1 php7.1-mysql php7.1-curl php-memcached php7.1-dev php7.1-mcrypt php7.1-sqlite3 php7.1-mbstring | |
## ATIVAR O MOD_REWRITE | |
sudo a2enmod rewrite | |
## ATIVAR O USO DO .HTACCESS | |
sudo gedit /etc/apache2/apache2.conf (pelo terminal) | |
Ou navegue até a pasta /etc/apache2/ e edite o arquivo com seu editor preferido. | |
Localize as linhas: | |
Directory /var/www/ | |
Options Indexes FollowSymLinks | |
AllowOverride None -- troque para All | |
Require all granted | |
Directory | |
# REINICIA APACHE | |
sudo /etc/init.d/apache2 restart | |
## PHPMYADMIN | |
sudo apt-get install phpmyadmin php-mbstring php-gettext |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
O pacote 'mysql-server' não tem candidato para instalação