Vagrant LAMP stack provision script, based on LTS ubuntu/trusty64. Supports multiply virtual hosts & host directory configuration. Projects are stored into the apps/ folder.
01. Apache2
02. PHP 7.1 with xDebug
03. Node.js 6.11 LTS
04. MySQL 5.5 Server & Client
05. SQLite3
06. Composer
07. Mailhog for Web and API based SMTP testing
08. WP CLI
09. Git
10. Ruby
- Install VirtualBox
- Install Vagrant
- Clone BlackBox repository
git clone https://github.com/alexanderkatkov/blackbox.git path_to_project_folder
- Set box Domain & IP in config.yml
- Set additional virtual hosts in config.yml if needed
- Run
vagrant up
in console
Open File config.yml in editor. Add additional vhosts in hosts section as listed below.
# List of virtual hosts
hosts:
-
url: host1.app
path: '/'
-
url: host2.app
path: subpath1/subpath2
-
url: host3.app
path: public
No PhpMyAdmin is installed inside guest machine, but you can manage you databases from outside using MySQL Workbench, Navicat or similar.
Default MySQL username & password - root MySQL @root password can be changed in config.yml
- Connection Method: Standard TCP/IP over SSH
- SSH Hostname: 127.0.0.1:2222
- Username: vagrant
- SSH key file: {Path to project}\.vagrant\machines\default\virtualbox\private_key
- MySQL Hostname: 127.0.0.1
- MySQL Server Port: 3306
- Username: root
- Password: root
- IDE Key: XDEBUG
- Port: 9000
{
"name": "XDEBUG",
"type": "php",
"request": "launch",
"port": 9000,
"localSourceRoot": "${workspaceRoot}/apps/",
"serverSourceRoot": "/var/www/"
}
To see emails catched by MailHog go to URL: {box-ip}:8025