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.

Profile
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: 556 times

1

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

2

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

3

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

4

Update Composer and Laravel versions

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

5

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

6

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  

7

All done!

Rating
What do you think about this tutorial ?
Comments