Friday, November 10, 2017

How to install Laravel 5.5 on Lubuntu 17.10

How to install Laravel 5.5 on Lubuntu 17.10

Laravel is the most popular web framework for php language, currently the latest stable version of laravel is version 5.5, if you are still using older version of laravel, it's time to upgrade or at least take a look at some of the new features in laravel 5.5, but before that we need to install it first on our lubuntu machine.

How to install Laravel 5.5 on Lubuntu 17.10
  • you need to have php on your machine, take a look at my tutorial on how to install php mysql on lubuntu 17.10
  • you need to have composer on your machine, take a look at my previous tutorial on how to install composer on lubuntu 17.10
  • install some php package needed by laravel (assuming you have php 7.1)
  • sudo apt-get install php7.1-mbstring php7.1-xml
  • create new laravel 5.5 project called mywebsite using composer
  • composer create-project laravel/laravel=5.5 mywebsite --prefer-dist
  • wait until composer finish and then move to mywebsite directory
  • cd mywebsite
  • run laravel built in web server
  • php artisan serve
  • open url http://localhost:8000/
  • done!
installing laravel 5.5 on lubuntu 17.10

Important to note that, laravel built in web server is for development purpose only, on production you should put it on real web server such as apache web server or nginx (engine-x).

I have a dedicated blog where i wrote anything about laravel php framework, the blog url is: laravelhowto.blogspot.com, right now it only has few posts but it will get updated soon with new articles and tutorials.

2 comments: