Created
March 12, 2014 23:42
-
-
Save wwwbruno/9519046 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
# instalar apache | |
sudo apt-get update | |
sudo apt-get install apache2 | |
# instalar mysql | |
sudo apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql | |
# ativar mysql | |
sudo mysql_install_db | |
# configurar mysql | |
sudo /usr/bin/mysql_secure_installation | |
# instalar php | |
sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt | |
# reiniciar apache | |
sudo service apache2 restart | |
# instalar dependências úteis do php | |
sudo apt-get install php5-gd php-xml-parser php5-intl smbclient curl libcurl3 php5-curl | |
# ativar o mod_rewrite e mod_headers | |
sudo a2enmod rewrite | |
sudo a2enmod headers | |
# configurar as regras de rewrite | |
sudo nano /etc/apache2/sites-available/default | |
# trocar todos os 'AllowOverride None' para 'AllowOverride All' | |
# reiniciar apache | |
sudo service apache2 restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment