An open API service indexing awesome lists of open source software.

https://github.com/vikbert/vagrant-php7-symfony2

Complete development environment for PHP7 projects, including Symfony2, Apache2.4, Nginx, MySQL 5.6, Redis.
https://github.com/vikbert/vagrant-php7-symfony2

Last synced: 8 months ago
JSON representation

Complete development environment for PHP7 projects, including Symfony2, Apache2.4, Nginx, MySQL 5.6, Redis.

Awesome Lists containing this project

README

          

## Summary
`vagrant php7 symfony` is a Debian 8 virtual box, which is preconfigured for testing PHP5, PHP7 Symfony apps and developing extensions across many versions of PHP. It contains many essential development packages, which are common used
in Symfony project.

## Installation

Make sure that you are at least at Vagrant version 1.7.x and virtualbox 5.x

If you are on Windows use the [Manual Install](#manual-install) instructions or use git-bash.

Otherwise for UNIX and UNIX-like users just clone and go. Like this:

```
$ git clone https://github.com/rlerdorf/vagrant-php7-symfony2.git
...
$ cd vagrant-php7-symfony2
...
$ vagrant up
...
$ vagrant ssh
```

Add this to your hosts file on the hostmachine:

```
192.168.7.7 php7default
```

To view the demo application, go to `http://php7default` in the browser.g

![phpinfo page](assets/php7default.png?raw=true "phpinfo page")

## Create the first Symfony standard App

added Symfony app name `php7symfony` as server alias to `/etc/hosts` on the host machine

```
192.168.7.7 php7symfony php7symfony.local
```

create Symfony App named `php7symfony` in vagrant machine

```
$ vagrant ssh
$ cd /vagrant/scripts
$ sudo ./create-sites-symfony.sh php7symfony
```

Check the URL `http://php7symfony` in the browser

![Symfony 3 standard project](assets/php7symfony.png?raw=true "symfony 3 standard project")