Categories

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

18 Comments

When installing Laravel you may be prompted to install the command line tools or to install Xcode – either one is fine although the command line tools on its own is quicker to download.

section 2:
This is really just a sanity check because if you get the mcrypt error while trying to install Laravel inside MAMP it’s highly likely the wrong PHP version is being referenced by the system.

Find which version you are using in MAMP by navigating in the MAMP App to Preferences then PHP tab.

Use “php -v” OR you can use the faster “which php” to find out which version the system is using. If its not the same PHP version you are using in MAMP then you need to run section 3.

section 3:
This is needed because mCrypt does not exist in OSX’s default PHP library but does exist in MAMP’s PHP libraries.

The .bash_profile file will need to be re-edited each time you change which version of PHP you are using in MAMP.

The .bash_profile file should be created in /users/yourloginname (nano will create it if the file does not yet exist).

You will either need to restart your computer or run:
“source ~/.bash_profile” in order for the system to accept the new .bash_profile

Good day! This is my first visit to your blog! We are a collection of volunteers
and starting a new initiative in a community in the same niche.
Your blog provided us beneficial information to work
on. You have done a extraordinary job!

Hey There. I found your blog using msn. This is an extremely
well written article. I’ll make sure to bookmark it and come back to read more
of your useful information. Thanks for the post. I will certainly comeback.