Created
April 28, 2014 08:10
-
-
Save neerajsohal/11365048 to your computer and use it in GitHub Desktop.
Setup LAMP + composer + bower in Amazon EC2 Ubuntu 14.04 LTS
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 repo | |
sudo apt-get update | |
# upgrade and install latest updates | |
sudo apt-get upgrade | |
# generate UTF-8 lang | |
sudo locale-gen UTF-8 | |
# install lamp | |
sudo tasksel | |
# complete setup wizard | |
#install git | |
sudo apt-get install git | |
# add node.js ppa for Ubuntu 14.04 | |
sudo apt-add-repository ppa:chris-lea/node.js | |
#install node and npm | |
sudo apt-get update && sudo apt-get install nodejs | |
#install bower | |
sudo npm install -g bower | |
# install composer for php | |
curl -sS https://getcomposer.org/installer | php | |
#install composer globally | |
sudo mv composer.phar /usr/local/bin/composer | |
#your machine is ready to serve your commands! |
you are welcome.
Life saver!!! Every time!!!
Addition for phpMyAdmin 💃
cd /var/www/html
wget https://files.phpmyadmin.net/phpMyAdmin/4.5.0.2/phpMyAdmin-4.5.0.2-all-languages.tar.bz2
tar -jxf phpMyAdmin-4.5.0.2-all-languages.tar.bz2 -C /var/www/html
mv phpMyAdmin-4.5.0.2-all-languages phpmyadmin
rm -rf phpMyAdmin-4.5.0.2-all-languages.tar.bz2
Solution for -> json extension err in php myadmin :
sudo apt-get install php5-json
sudo service apache2 restart
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Great. Thanks for sharing it.