I don’t know if shameless plugs are allowed here but I just released a new version of my minimal web development virtual machine. I originally created this for my university students but it may be useful for anyone who wants a quick and easy PHP/MySQL development environment.
Details here: https://r.je/vje-minimal-virtual-server.html Please note: it requires vagrant 2.1.
If you just want to quickly get up and running with PHP development, it’s a lot quicker and easier than than most alternatives (scotch/box, laravel/homestead/puphpet/etc).
Advantages over alternatives:
-
The download size is a lot smaller. Creating a homestead or scotch/box vm takes a long time if your internet connection isn’t great. They are 1.5 and 1.2 gigabytes respectively to download. vje/min is 97.6mb.
-
It’s easy to use just run
vagrant init vje/min
vagrant up
Then visit https://v.je
in your browser. (You will need Vagrant and Virtualbox installed).
-
It uses HTTPS with a valid SSL certificate from let’s encrypt without any configuration. A feature that’s very difficult to set up with alternatives. This will help you prevent issues that arise from moving your website developed on aa HTTP server to a production server that uses HTTPS.
-
It’s portable. You can run
vagrant halt
on one machine, copy the directory to a USB drive, network storage, or send it to a colleague. They can runvagrant up
and the entire site is visible. With alternatives you have to manually export then import your MySQL database each time. -
You don’t need to touch the
HOSTS
file and you can host multiple websites on subdomains e.g https://mysite.v.je without any configuration, just create the foldermysite
.
This isn’t for everyone. It’s useful for anyone who wants a quick LAMP* stack for developing PHP. If you want to install additional software, use older PHP versions or have dev/production parity then Puphpet or similar is a far better choice.
* ok it’s not LAMP as it uses NGINX but you know what I mean