$ sudo apt-get install php5-dev php-pear
$ sudo pecl install xdebug
$ sudo nano /etc/php5/fpm/php.ini
Step 1: Install Mongo DB
brew install mongodb
When mongodb is installed using homebrew. Please make a note of default paths,
Power off a ubuntu server from a command line
sudo shutdown -h now
Checking your Ubuntu Version
lsb_release -a
Connecting to Linux Instance using SSH
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AccessingInstancesLinux.html
ssh -i /path/my-key-pair.pem <USERNAME>@<PUBLIC DNS OF INSTANCE>
For Ubuntu Instance, username is 'ubuntu'. You can copy from your Instance List of AWS console:
ssh -i /path/my-key-pair.pem ubuntu@
$http({ | |
method : 'POST', | |
url : 'http://localhost:3000/auth', | |
headers : {'Content-Type': 'application/x-www-form-urlencoded'}, //THIS IS VERY IMPORTANT. By default, AngularJs uses 'Content-Type' as 'application/json'. So we have modified it here. | |
transformRequest : function(obj){ //This IS IMPORTANT AS WELL. when we send the data with header 'Content-Type': 'application/x-www-form-urlencoded', then we have to make sure that we send the data in serialized format (var1=val1&var2=val2). So this function transforms our data in serialized format. | |
var str = []; | |
for(var p in obj) | |
str.push(encodeURIComponent(p) + "=" + encodeURIComponent(obj[p])); |
-- Don't forget to replace »password« with a strong password. | |
create user 'username'@'localhost' identified by 'password'; | |
grant all privileges on *.* to 'username'@'yourip' IDENTIFIED BY 'password' with grant option; | |
flush privileges; |
ng-cloak works by temporarily hiding the marked up element and it does this by essentially applying a style that does this:
This will remove the flicker effect on the page while data is loading from AngularJs
[ng\:cloak], [ng-cloak], [data-ng-cloak], [x-ng-cloak], .ng-cloak, .x-ng-cloak {
display: none !important;
}
Step 1:
$ suno nano /etc/nginx/sites-available/<file-name>
Step 2:
$ sudo service nginx reload
$ php artisan --version
php artisan clear-compiled