Sylius installation via Vagrant

Warning

This article assumes you’re familiar with Composer, a dependency manager for PHP. It also assumes you have Composer installed globally. Basic knowledgle about Vagrant is also required, and of course installed Vagrant.

What’s Vagrant?

Vagrant is a tool for building complete development environments, that in case of Sylius will help you to quickly have full application running on your machine.

Tip

Learn more about Vagrant. Vagrant installation info.

How to install Sylius using Vagrant?

  1. Create a new Sylius-Standard project using composer in no interaction mode (-n flag):
$ composer create-project -s beta -n sylius/sylius-standard acme

Note

The no interaction mode results in having null database password, what lets Vagrant put its own password(vagrant) into that parameter. It is not mandatory. You can change the database password in the parameters.yml to vagrant also later on.

  1. Inside your new project directory clone the Sylius/Vagrant repository into the /vagrant/ directory:
$ git clone git@github.com:Sylius/Vagrant.git vagrant
  1. Move to the /vagrant/ directory and build Vagrant:
$ cd vagrant
$ vagrant up
  1. Add an entry for sylius.dev to the etc/hosts file:
# etc/hosts
10.0.0.200      sylius.dev www.sylius.dev

From now on you will be able to access running Sylius application at http://sylius.dev/app_dev.php.