Install Magento 2 via Composer on Apache server

– Install SSH, GIT, NodeJS, Composer and Grunt on server
– SSH to directory
composer create-project –repository-url=https://repo.magento.com/ magento/project-community-edition
– Set rights

- Run install command

That's about it. Now we have Magento 2.0.7 installed via Composer

But I wanted to go up to 2.1rc3 for various reasons. To do this edit composer.json and find this part:

And change it into this:

Then run composer update via SSH to apply the new versions. It's necessary to change the composer version as well to avoid open_basedir errors on the admin page.