Ubuntu vagrant for dev environment for Laravel with some provision scripts:
MacOS X 10.9.5 (Mavericks)
Vagrant version 1.7.2
Vagrant image "primalskill/ubuntu-trusty64"
Install Git
config.vm.provision "shell", path: "provision/components/git.sh"
Install Nginx server
###Parameters
- App Laravel name
config.vm.provision "shell", path: "provision/components/nginx.sh", args: ["my_laravel_app"]
Install cURL library
config.vm.provision "shell", path: "provision/components/curl.sh"
Install PHP and extensions
config.vm.provision "shell", path: "provision/components/php.sh"
PHP Installation
php5-common, php5-dev, php5-cli, php5-fpm
PHP Extensions
php5-curl, php5-gd, php5-mcrypt, php5-mysql
Install MySql
###Parameters
- root password
config.vm.provision "shell", path: "provision/components/mysql.sh", args: ["root"]
Install PhpMyAdmin
###Parameters
- root password
config.vm.provision "shell", path: "provision/components/phpmyadmin.sh", args: ["root"]
Install ZIP library
config.vm.provision "shell", path: "provision/components/zip.sh"
Install composer
config.vm.provision "shell", path: "provision/components/composer.sh"
Install Laravel
###Parameters
- App Laravel name
- Laravel version (version >= "4.x.x" or "current")
config.vm.provision "shell", path: "provision/components/laravel.sh", args: ["my_laravel_app", "4.2.11]
Script for general purpose at the end of the queue
config.vm.provision "shell", path: "provision/components/postinstall.sh"
Check the "Vagrantfile" file if you need to customize the settings
***You need to add a valid github access token to the "Vagrantfile" (for composer)
URL/Port
(if the installation was successful then you'll see the laravel's homepage)
PhpMyAdmin
http://localhost:8080/phpmyadmin
Sync Folders
/var/www
Nginx root
/var/www/src/laravel_app_name/public
Database credentials
user: root pass: root
Directory structure
├── provision
│ ├── components
│ │ ├── composer.sh
│ │ ├── curl.sh
│ │ ├── git.sh
│ │ ├── init.sh
│ │ ├── laravel.sh
│ │ ├── mysql.sh
│ │ ├── nginx.sh
│ │ ├── php.sh
│ │ ├── phpmyadmin.sh
│ │ ├── postinstall.sh
│ │ └── zip.sh
│ └── config
│ └── nginx_vhost
├── src
├── README.md
└── Vagrantfile
####Based on: https://github.com/amenophis/vagrant-ubuntu