Last active
August 29, 2015 13:57
-
-
Save tuanle/9875960 to your computer and use it in GitHub Desktop.
Setup lamp stack on ubuntu
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
#============================================== | |
# Update & upgrade system | |
#============================================== | |
sudo apt-get update | |
sudo apt-get upgrade | |
#============================================== | |
# Install apache2 | |
#============================================== | |
sudo apt-get install apache2 | |
#============================================== | |
# Install mysql | |
#============================================== | |
sudo apt-get install mysql-server mysql-client libapache2-mod-auth-mysql php5-mysql | |
# Setup security | |
sudo /usr/bin/mysql_secure_installation | |
#============================================== | |
# Install PHP | |
#============================================== | |
sudo apt-get install php5 libapache2-mod-php5 php5-curl php-pear php5-mcrypt | |
# More php modules | |
sudo apt-get install php5-gd php5-imagick php5-imap php5-memcache php5-sqlite php5-ming | |
sudo apt-get install php5-ps php5-pspell php5-recode php5-snmp php5-tidy php5-xmlrpc php5-xsl | |
# Search and install php modules | |
apt-cache search php5- | |
sudo apt-get install name_of_the_module | |
#============================================== | |
# Restart | |
#============================================== | |
sudo service apache2 restart | |
#============================================== | |
# References | |
#============================================== | |
# Install | |
# firefox https://www.digitalocean.com/community/articles/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu | |
# Setup mod_rewrite | |
# firefox http://askubuntu.com/questions/48362/how-to-enable-mod-rewrite-in-apache | |
# Setup multiple php version | |
# firefox https://gist.github.com/gmodarelli/5887778 | |
# Fix mycrypt, phpmyadmin | |
# firefox http://pastebin.com/3PpwMvVV |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment