Skip to content

Instantly share code, notes, and snippets.

@louanfontenele
Created October 13, 2016 17:49
Show Gist options
  • Save louanfontenele/a96f202057af19f10dde5c543e33fa4d to your computer and use it in GitHub Desktop.
Save louanfontenele/a96f202057af19f10dde5c543e33fa4d to your computer and use it in GitHub Desktop.
===============
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