Sign up for free and start using Tildee with great new features About  About Sign up ! Login Get more of Tildee  Advanced
What would you like to see ?  What's New The Best tutorials

Codeanywhere PHP7 Upgrade, Laverl 5.3 Upgrade etc.

New user
Last modification by maktari
October 20, 2016, 9:10 pm → version: 5
Language: English
Average rating:
Codeanywhere PHP7 Upgrade, Laverl 5.3 Upgrade etc. 5 by 15 users
Viewed: 1097 times


Update Ubuntu and Install Node.js Package Manager

  1. Open SSH terminal and keep it open throughout the process
  2. Type:  sudo apt-get update 
  3. Type:  sudo apt-get install npm  
You have to say Y or y to prompts in SSH


Remove PHP 5.x and Install Personal Package Archive (PPA)

  1. Type: sudo apt-get purge php5-common -y
  2. Type: sudo apt-get install software-properties-common
  3. Type: sudo apt-get install python3-software-properties
  4. Type: sudo apt-get update
  5. Type: apt-get autoremove


Install PHP 7.x & Dependecies 

  1. Type: sudo apt-get install -y language-pack-en-base
  2. Type: sudo LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php
  3. Type: sudo apt-get update
  4. Type: sudo apt-get install php7.0
  5. Type: sudo apt-get install php7.0-mysql
  6. Type: sudo apt-get install php7.0-mbstring
  7. Type: sudo apt-get install php7.0-zip
  8. Type: sudo apt-get install php-xml
  9. Check the version of php
  10. Type: php -v


Update Composer and Laravel versions

  1. Type: curl -sS | sudo php -- --install-dir=/usr/local/bin --filename=composer
  2. Type: composer global require "laravel/installer"
  3. Type: composer update


Now Reinstall the Latest Version of Laravel:

  1. Delete the current directories and files i.e. larval application by right clicking on it and delete
  2. DON'T delete .htaccess
  3. Open SSH terminal
  4. Type: laravel new


Update Laravel Storage Folder Permission 

After we have deleted and reinstalled, we now need to update the storage folder privileges by:

  1. Open SSH  terminal
  2. Type: chmod -R gu+w storage
  3. Type: php artisan cache:clear
  4. Type: chmod -R guo+w storage
  5. Type: sudo service apache2 restart  


All done!

What do you think about this tutorial ?