Skip to main content

Laravel 5 Installation

Laravel: Simple/Easy Installation Guide

This tutorial shows step-by-step guide to install Laravel. Here, I will show two ways for installation. One is installing directly by composer create-project command and the other is by cloning or downloading Laravel from GitHub and then running the composer install command.


1) Method 1
– Go to your web server root
– In Ubuntu, it’s /var/www/.
– In Windows, if you install Wampp on C: drive then the server root is C://wamp/www/, for Xampp, it’s C://xampp/htdocs/
– Run the following command in terminal/command-prompt:
– This will create a directory with name-of-your-project and install Laravel files in it
– Then, you can simply browse http://localhost/name-of-your-project/public to access Laravel
2) Method 2
– Go to Laravel Github
– Clone or Download it to your web server root
– Suppose, you kept the cloned/downloaded files in ‘laravel’ directory
– Go to your Laravel directory (in Ubuntu Linux, it will be /var/www/laravel)
– Run the following command
– This will install the required dependencies to run Laravel. It will take some time to install all the dependencies.
– Now, you should be able to access Laravel properly without any error, e.g. http://localhost/laravel/public
Note 1:
If you are on Linux then you should also set write permission to bootstrap/cache and storagedirectories.
Here’s the command to do so:
Note 2:
After this, you should be able to browser your Laravel site. If you get ‘No encrypter found’ error then it means that your site’s encryption key has not been generated yet. To generate the encryption key for your application, you need to follow the steps below:
– Go to your Laravel directory
– Rename .env.example to .env
– Now, open terminal or command-prompt
– Run the following command on terminal:
– You will see the message on terminaly saying application key set successfully.
– This will update .env file present in your laravel root folder. In that file, it will set the value of APP_KEY.
– This will solve this error and now you should be able to browse the site properly.
Hope this helps. Thanks.

Comments

Popular posts from this blog

Php Interview Questions

1. What Is PHP ? 2. How can I disable the output of error messages inside the HTML page? 3. Can I return other file formats (like Word, Excel, etc) using PHP? 4. Is there any way to force PHP to do garbage collection before the end of the request? 5. Why does require($file_name) in a loop just include the first file repeatedly? 6. Can you include and call C libraries in PHP scripts? How? 7. What's the best way to start writing a PHP program? 8. Passing variables with REQUIRE function (part II) 9. I use a /cgi-bin/ad.pl for displaying rotating banners at the top of my html files. How can I insert the output of this cgi in an "included" file ? 10. please tell me how to let a html document read content from a .txt file, spit this out in a table, and how to update the specific file with a form 11. How can I add authentication to my site with PHP? I have authentication working only with one page. 12. Where can I get documentation for the Zend API? 13....

Page structure of HTML 5 different from HTML 4 or previous HTML

A typical web page has headers, footers, navigation, central area and side bars. Now if we want to represent the same in HTML 4 with proper names to the HTML section we would probably use a DIV tag. But in HTML 5 they have made it more clear by creating element names for those sections which makes your HTML more readable. HTML 5 elements which form the page structure. <header> : Represents header data of HTML. <footer> : Footer section of the page. <nav> : Navigation elements in the page. <article> : Self-contained content. <section> : Used inside article to define sections or group content in to sections. <aside> : Represent side bar contents of a page.

Intoduction to DotNetNuke

Intoduction to DotNetNuke                     DNN® ( formerly DotNetNuke® ) is the leading open source web content management platform (CMS) in the Microsoft ecosystem. The product is used to build professional looking and easy-to-use commercial websites, social intranets, community portals, or partner extranets. Containing dynamic content of all types, DNN sites are easy to deploy and update. The DNN Platform has been downloaded more than 8 million times and powers more than 750,000 websites globally. A community of more than 1 million members forms a powerful support network. Thousands of commercial extensions, apps and skins are available at the DNN Store that make extending a DNN site fast and affordable. Free open source extensions are also available from the DNN Extensions Forge . In addition to robust content management, the free, open source DN...