LARAVEL5 Student Performance Management system development notes

Source: Internet
Author: User
The following notes are based on this blog post for Development learning

Cloning a project from GitHub to a local

  git clone https://github.com/RryLee/StuGradeWithLaravel5.git

Second, switch to the local project directory, install composer

macdemacbook-pro-3:~ mac$ cd desktopmacdemacbook-pro-3:stugradewithlaravel5 mac$ curl-ss https://getcomposer.org/ Installer | Phpall settings correct for using composerdownloading 1.0.1...Composer successfully installed to:/users/mac/desktop/ Stugradewithlaravel5/composer.pharuse it:php Composer.phar

The top command can be placed in the bin directory, so that you don't have to enter the last command every time.

Macdemacbook-pro-3:stugradewithlaravel5 mac$ sudo mv composer.phar/usr/bin/composermacdemacbook-pro-3: StuGradeWithLaravel5 mac$


Update composer

Macdemacbook-pro-3:stugradewithlaravel5 mac$ Composer Update


The update appears with this problem,-_-!!!

Macdemacbook-pro-3:stugradewithlaravel5 mac$ Composer Update

Loading Composer repositories with the package information

Updating dependencies (including Require-dev)

Your requirements could not being resolved to an installable set of packages.

Problem 1

-Laravel/framework v5.0.9 requires Ext-mcrypt *, the requested PHP extension MCrypt is missing from your system.

Workaround:

It seems that PHP does not open the mcrypt extension, my is not open mbstring extension ...
See if you have this extension in your php.ini, take the front of it, remove it and restart Apache.

Or

To install PHP expansion pack MCrypt
You can play the brew install Php-mcrypt on the Maxos

Run "sudo cp/etc/php.ini.default/etc/php.ini" so that you can configure various PHP functions via php.ini.

The maximum value of the PHP commit file is adjusted by the following two items, such as the maximum value of the imported data in phpMyAdmin

Upload_max_filesize = 2M

Post_max_size = 8M

, such as using display_errors to control whether or not to display the PHP program error

Display_errors = Off

Run "sudo apachectl restart" and restart Apache so PHP is ready to use.


Solution:

Vim/etc/php.ini

Append a sentence to the end of the file

Extension=mcrypt.so


The last successful execution of the two-segment code:

Macdemacbook-pro-3:apache2 mac$ Brew Install MCrypt

Macdemacbook-pro-3:apache2 mac$ export Path=/usr/local/php5/bin: $PATH


Desktop entry:

macdemacbook-pro-3:~ mac$ CD Desktop/stugrade

Macdemacbook-pro-3:stugrade mac$

  • 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.