Php framework laravel5 MACOSX installation and configuration tutorial

Source: Internet
Author: User
Tags curl mcrypt php framework

I. Install the composer package management tool, which is not described in detail:

Download using the curl Command:

Curl-sS https://getcomposer.org/installer | php


Or?] Have security? Curl can also be downloaded using the php command:

Php-r "readfile ('https: // getcomposer.org/installer');" | php


Or manually download composer. phar


2. Install composer and run the following command:

Composer create-project laravel/laravel learnlaravel5 5.0.22laravel5-install

 

 

3. If the following error occurs during installation:

Your requirements cocould not be resolved to an installable set of packages. problem 1-Installation request for laravel/framework v5.0.16-> satisfiable by laravel/framework [v5.0.16]. -laravel/framework v5.0.16 requires ext-mcrypt *-> the requested PHP extension mcrypt is missing from your system.

 

Solution: install the MAMP integrated development environment locally:

 

Which php: check the php execution path. usr/bin/php indicates the php version that comes with the system.

 

Cd ~ Vim/. bash_profile

 

Add a row:

 

Export PATH =/Applications/MAMP/bin/php/php5.6.7/bin: $ PATHsource. bash_profile

Which php: In this case, php is executing mamp php.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.