Installing Ubuntu Laravel Environment

Prerequisite

  • If you want to get latest version of php, you need to update first.
  • Otherwise the lamp server will install older php version to your environment
1
2
3
sudo apt-add-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install php7.0

Usefull Command

  • sometime you need to check the installed packages in Ubuntu, you can use dpkg to list the packages status
1
dpkg --get-selections | grep php

Reference

Laravel PHP 7
ubuntu 14.04版本無法安裝my sql 5.6

unable to locate php7

laravel Ubuntu