Laravel first experience

Source: Internet
Author: User
Laravel first experience

Official documentation: http://www.golaravel.com/docs/4.1/introduction/

System environment Mac OSX 10.9.2

Upgrade php

  1. Brew update
  2. Brew upgrade
  3. Brew tap homebrew/dupes
  4. Brew tap maid/homebrew-php
  5. Brew install php55

Install composer

  1. Https://getcomposer.org/doc/00-intro.md#globally-on-osx-via-homebrew-

Install php55-mcrypt

(Access the route address after startup. if Mcrypt PHP extension required is prompted)

  1. 1. Mac brew install php55-mcrypt
  2. 2. I didn't see that prompt for XAMPP. everything is normal. Php-I | grep mcrypt displayed as enabled

Configure php. ini

  1. Extension = php_openssl.dll

Create a new project

  1. Composer create-project laravel/laravel demo

Configure/etc/hosts)

  1. 127.0.0.1 localhost
  2. 127.0.0.1 laravel. dev

Configuration/Applications/XAMPP/xamppfiles/etc/extra/httpd-vhosts.conf

  1. ServerAdmin qbylucky@gmail.com
  2. DocumentRoot "/Applications/XAMPP/xamppfiles/htdocs/demo/public"
  3. ServerName laravel. dev
  4. ServerAlias laravel. dev
  5. ErrorLog "logs/qbylucky@gmail.com-error_log"
  6. CustomLog "logs/qbylucky@gmail.com-access_log" common

Start the project

Enable XAMPP apache server
Http://laravel.dev/

Knowledge Point

  1. Php Location:
  2. 1. Mac/usr/bin/php
  3. 2. XAMPP/Applications/XAMPP/xamppfiles/bin/php
  4. Php. ini location:
  5. 1. Mac/etc/php. ini
  6. 2. XAMPP/Applications/XAMPP/xamppfiles/etc/php. ini

Laravel

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.