MageBox is a dead simple Vagrant LEMP Box for Magento 2 Development with tools like Composer, Nodejs & Git. This box is inspired from Scotch Box.
- Ubuntu 14.04 LTS Trusty Tahir
- Nginx v1.4.6
- MySQL v5.6.30
- PHP v7.0
- Composer v1.0
- Node v5.10.1
- NPM v3.8.3
- Git v1.9.1
- PhpMyAdmin
- Download and Install Vagrant
- Download and Install VirtualBox
- Clone the MageBox GitHub Repository
git clone https://github.com/IamSwap/MageBox project-name
- Change current directory to project
cd project-name
- Run
vagrant up
- You can place your project files into
public
directory or proceed for magento installation - Access Your Project at http://192.168.33.10/
- Run
vagrant ssh
- Change current directory to
cd /home/vagrant/public
- Clone Magento Repository
git clone https://github.com/magento/magento2 --depth=1 .
- Run
composer install
& Follow installation instructions.
Here are some useful basic vagrant commands.
vagrant up
vagrant suspend
vagrant destroy
vagrant ssh
To set hostname, just add a record like the following example to your computer's host file.
192.168.33.10 mage.dev
- Hostname: localhost or 127.0.0.1
- Username: root
- Password: root
- Database: magento
Access PhpMyAdmin at http://192.168.33.10/phpmyadmin/
- Username: root
- Password: root
User simple command for ssh into box vagrant ssh
or use these credentials
- Hostname: 127.0.0.1:2222
- Username: vagrant
- Password: vagrant