Laravel Installation and configuration tutorial, laravel Configuration Tutorial _php Tutorial

Source: Internet
Author: User
Tags mcrypt

Laravel Installation and configuration tutorial, laravel configuration Tutorial


System Environment Requirements

Apache,nginx or other Web server;
Laravel uses some of the strong and powerful features of PHP, so it needs to be executed on PHP5.3 or higher;
Laravel using FileInfo library (http://php.net/manual/en/ book.fileinfo.php) to detect the MIME type of the file, this library is included by default in PHP5.3, but in Windows users need to open the module in php.ini, if not understand can look here: http://php.net/ manual/en/fileinfo.installation.php;
Laravel uses the MCrypt library (http://php.net/manual/en/book.mcrypt.php) to encrypt and generate hash, before using this framework, you need to ensure that the extension is installed, you can phpinfo (); Check the Web server for proper installation, if it is not viewable: http://php.net/manual/en/book.mcrypt.php;

Installing Laravel

Download laravel:http://laravel.com/download;
Unzip the package file and upload it to the Web server;
Set the value of key in config/application.php, you can set a random content of 32 strings;
Verify that the storage/views is writable;
Access your app in a browser;

You've completed a Laravel installation here, and there's more to learn.

Additional content

Install some additional extensions below so you can take full advantage of Laravel

SQLite, MySQL, PostgreSQL, or SQL Server PDO drivers.
Memcached or APC.

Problem?

If you have an installation problem, try the following:

Make sure the public directory is the root directory of your site (see Server configuration below)

If you are using Mod_rewrite, set the index entry in application/config/application.php to null.

Verify that your storage folder is writable.

Server Configuration

Here we guarantee a most basic Apache configuration, our Laravel root directory in:/users/jonsnow/sites/mysite

The configuration information is as follows:

Copy the Code code as follows:

Documentroot/users/jonsnow/sites/mysite/public
ServerName Mysite.dev

Note: We install to/users/jonsnow/sites/mysite, our documentroot to/users/jonsnow/sites/mysite/public.

Laravel Getting started with a Windows environment, but doesn't require you to also use Windows, you can do it under your favorite system.

The installation of the PHP runtime environment is beyond the scope of this tutorial, and here are just the basic requirements.

Web server:

PHP 5.3 and later
PDO module
MCrypt Module
MySQL Database
The environment used in this tutorial:

PHP 5.4.5
MYSQL 5.0.45
To install the Laravel frame:

Download Laravel framework: Laravel Official Download | GitHub download
Unzip the framework to the server directory
The simple two-step laravel framework is installed and is accessed in the browser in order to test if the installation is successful:

http://localhost/public/

The public directory is the folder that comes with the framework, and if you see the initial interface of Laravel, it means that the installation was successful.


Laravel How to install offline

It is usually downloaded and installed using the dependent management method, if you need to install it offline, install it on a machine first and then copy the file out as an offline package.

Upload the laravel to the server

Apache server words. htaccess file to control file access and jump, Laravel public is also written in the. htaccess file to control the routing.

http://www.bkjia.com/PHPjc/902777.html www.bkjia.com true http://www.bkjia.com/PHPjc/902777.html techarticle laravel Installation and configuration tutorial, laravel Configuration Tutorial system environment requirements Apache,nginx or other Web server; Laravel uses some of the powerful features of PHP, so it needs to be in P ...

  • Related Article

    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.