SuBox is a (BETA) pre-configured Vagrant Box with a full array of features to get you up and running with Vagrant in no time.
Get Started
It’s easy :
- Download and Install Vagrant
- Download and Install VirtualBox
Then, in a terminal, just clone the repo and run vagrant up :
$ git clone https://github.com/brahimmachkouri/subox my-project
$ cd my-project
$ vagrant up
Then visit http://192.168.33.11
License
MIT License
Features
- Debian 9
- Apache 2.4 (mod_proxy_fcgi activated)
- SSH
- PHP 7.0 (php7.0-fpm), PHP errors On, MSSQL client ready, PsySH
- MariaDB 10.1, Sqlite3
- Git, Go lang in the box
- laravel, symfony command line tools included
- PHPMyAdmin, PHPUnit, composer, wp-cli, drush
- Email catching with MailHoge : your mails are captured and displayed in a web interface
- Ansible in the box, so you can use Ansible Galaxy to customize your box
- Virtualbox additions installed
- supervision : monit
- admin panels : webmin
Accounts
Username | Password |
---|---|
vagrant | vagrant |
root | root |
MariaDB
PHPMyAdmin URL | http://192.168.33.11/phpmyadmin |
---|---|
Hostname | localhost |
Username | root |
Password | root |
Database | mabase |
Development Tools (Beta)
- Yarn, Node.js, nvm, gulp, grunt, bower, webpack, yo…
Even though these are packaged into the Vagrant box, we always recommend running node and any packages from your local machine and not within the box. This is strictly a performance thing. They only exist as helpers if you don’t/can’t set those up.
Development
- Just put your files (PHP, HTML, JS…) in the public directory (in the box : /var/www/public, or in the public directory that you can see next to the Vagrantfile)
- You can enter the box using ssh :
vagrant ssh
Or :
ssh vagrant@192.168.33.11
Frameworks Ready
You have to connect to the box via ssh to use the following tools.
The frameworks will be installed in /var/www/
- Laravel :
install_laravel
- Symfony :
install_symfony
- Code Igniter :
install_codeigniter
CMS Ready
You have to connect to the box via ssh to use the following tools.
The CMS will be installed in /var/www/
- Wordpress via wp-cli :
cd /var/www/public wp core download --locale=fr_FR
- October CMS :
install_october
- Prestashop :
install_prestashop
But I strongly advise to disable the shared folder if you want to work with Prestashop (as Virtualbox is known to have slow performance when shared folders are used) by commenting the following line in Vagrantfile (just add a # in front of the line) :
config.vm.synced_folder ".", "/var/www", :mount_options => ["dmode=777", "fmode=666"]
And work via sftp (with Filezilla for example).
Supervision
- Monit : http://192.168.33.11:2812
Username | Password |
---|---|
admin | monit |
Admin Panels
- Webmin : https://192.168.33.11:10000
MailHog
Just connect to http://192.168.33.11:8025
Inspired by Scotch Box. ;)