CategoryMAC

How to install Laravel in MAMP-MAC

Today i was trying to install laravel in MAMP , While going through their step on laravel site mentioned i found that i didn installed mycript extension. I had googled for lot of time and lastly i installed .

I am writing this will help some one to install laravel in Mac using MAMP.

Install composer

Before installing laravel we have to install composer . We can go to https://getcomposer.org/ and we can install from from there or we can follow the following steps step

1. first we have to check curl is enabled . step 2. we can install composer globally as mentioned in their site

curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer

Install Laravel 

1.once we installed composer we have to move to htdocs and to our directory from our terminal

cd /directory/folder

2. We can tell composer to download laravel  and install by following commands

composer global require "laravel/installer=~1.1"
composer create-project laravel/laravel your-project-name --prefer-dist

And here it will come to as for mycrypt extension .

Mcrypt PHP extension required.

To solve this issue we have to check the php version frist

php -v

shabeebk.com-php-version-check

   3.Now let us have our PHP version, in my case 5.6.2, we can open our .bash_profile script

nano .bash_profile

4. Add our MAMP PHP version after the code already present ,Exit the file and Save   it.

export MAMP_PHP=/Applications/MAMP/bin/php/php5.5.10/bin
export PATH="$MAMP_PHP:$PATH"

5. Now we can try to install Laravel  again That is it!.

composer create-project laravel/laravel your-project-name --prefer-dist

 

6. We can see Laravel is downloading and installing

laraval-install-mac_1

laraval-install-2

laraval-install-3

laraval-install-4

  Finally it will show like installed. Application key (*******) installed successfully.

 

Now let us go to browser and check the URL.

Screen Shot 2014-12-25 at 9.56.18 pm

That is it!

 

 

 

6,521 total views, 11 views today

Hidden Features in Mac

Today i saw some interesting hidden features in Mac, Which most of them not using. Here i am giving which i like to use with short keywords.

mac_features

-Take a Full screenshot

You can holding down command + shift + 3 to take the complete screenshot of your mac

if you want to save it copy board, can holding down command + ctrl + shift + 3

– Part of screen
For taking screenshot of a special part of screen you can holding down command + shift + 4 Then cursor will change to + and can drag where you want to take screenshot. It will be saved in folder (Desktop by default).

if you want to save it copy board, can holding down command + ctrl + shift + 4

– Spotlight search
you can holding down Command + Spacebar to show Spotlight search, type and search on your mac an internet.

– Apple symbol

On any Apple computer, you can create an Apple icon by holding down Option + Shift + K, It will create a apple symbol like this  😉

apple_symbol

Apple_symbol from mac

– Built-in Mac emoticons

On mac we can use emoticons by simply holding down ctrl+⌘+space . it will appear a box of emoticions.

mac-emotions

mac-emotions

– Quick preview with spacebar

We can quick preview any file by selecting the file and pressing the spacebar. Press the space agin it will auto close. On menu you can see compatible apple also .

Mac is awesome 😉

1,402 total views, 4 views today

© 2017 shabeeb Blog

Theme by Anders NorénUp ↑