-
Notifications
You must be signed in to change notification settings - Fork 113
Installation: LAMP
Ivan edited this page Oct 8, 2015
·
31 revisions
This article explains how to prepare development on your machine, nowadays Ubuntu/Mac is the best choice for web-development, so the explanation will be based on Ubuntu.
First of all launch terminal, it is the main and most important tool for us
Update your system:
sudo apt-get update && sudo apt-get upgrade
Install LAMP server using tasksell:
sudo apt-get install tasksel
sudo tasksel install lamp-server
Once this step is done you will have apache server with PHP installed, open browser and type http://localhost/ to check
Enable mod_rewrite and restart apache
sudo a2enmod rewrite
service apache2 restart
Mongodb
sudo apt-get remove mongodb-org
echo "deb http://repo.mongodb.org/apt/debian wheezy/mongodb-org/3.0 main" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list
sudo apt-get update
sudo apt-get install mongodb-org
service mongod status
Install git
sudo apt-get install git
Install needed php extensions
sudo apt-get install php5-curl php5-intl php5-mongo
Install composer globally
php -r "readfile('https://getcomposer.org/installer');" | php
sudo mv composer.phar /usr/local/bin/composer
Install Node.js,NPM,Bower,Grunt
sudo apt-get install nodejs-legacy
sudo apt-get install npm
sudo npm install bower -g
sudo npm install -g grunt-cli