Created
October 13, 2016 17:49
-
-
Save louanfontenele/a96f202057af19f10dde5c543e33fa4d to your computer and use it in GitHub Desktop.
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
=============== | |
INSTALANDO LAMP | |
=============== | |
======== | |
1º passo | |
======== | |
sudo su | |
sudo apt-get update && sudo apt-get dist-upgrade -y | |
sudo reboot | |
======== | |
2ª passo | |
======== | |
sudo apt-get install lamp-server^ -y | |
sudo nano /var/www/html/testing.php | |
Digite: | |
<?php phpinfo(); ?> | |
CTRL+O depois CTRL+X | |
======== | |
3º passo | |
======== | |
sudo apt-get install phpmyadmin -y | |
======== | |
4º passo | |
======== | |
sudo apt-get install -y php-mbstring php7.0-mbstring php-gettext libapache2-mod-php7.0 | |
sudo systemctl restart apache2 | |
sudo phpenmod mcrypt (se der erro não tem problema, é normal) | |
sudo phpenmod mbstring | |
sudo systemctl restart apache2 | |
======== | |
5º passo | |
======== | |
chmod -R 777 /var/www/ | |
chmod -R 777 /var/www/html | |
cd /var/www/ | |
ln -s /usr/share/phpmyadmin/ | |
cd /var/www/html | |
ln -s /usr/share/phpmyadmin/ | |
================== | |
HABILITANDO ERRORS | |
================== | |
nano ou vim /etc/php5/apache2/php.ini | |
display_errors = on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment