Useful when working with older software requiring dependencies not available for your machine. Box used https://app.vagrantup.com/diegovarussa/boxes/php5.5
The intended use is for unit testing some packages, it has the following configuration:
- Ubuntu 14.04 LTS
- PHP 5.5.9
- Apache 2
at the time of writing. Almost every package uses composer which isn't bundled in at the moment, but I plan to. For now go with this one liner inside the VM:
curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer
This project is meant to be submoduled in to your project and get you going. This is the ideal setup:
git submodule add https://github.com/forceedge01/vagrant-php55 && cd vagrant-php55 && vagrant up
You will need to install virtualbox to get this running. If running on ubuntu, install it via the package manager 'apt-get' as opposed to the GUI version, it will give you less trouble.
This vagrant box will sync the directories outside of its own folder, this is done so you can conveniently clone this repository inside your project root folder and perform a vagrant up and viola, you've got your environment ready.
To get in the box, perform the usual vagrant ssh. Your project is synced in the /vagrant folder. If not refer to the Vagrantfile.
Feel free to submodule this package into your project.
You may run into the trouble of signing some kernel modules. Error you may get is:
Could not load 'vboxdrv' or something similar.
Which will lead you to:
$ sudo modprobe vboxdrv modprobe: ERROR: could not insert 'vboxdrv': Required key not available
To get the key do the following:
Since kernel version 4.4.0-20, it was enforced that unsigned kernel modules will not be allowed to run with Secure Boot enabled. Because you want to keep Secure Boot, then the next logical step is to sign those modules.
So let's try it.
openssl req -new -x509 -newkey rsa:2048 -keyout MOK.priv -outform DER -out MOK.der -nodes -days 36500 -subj "/CN=Descriptive name/"
Sign the module (vboxdrv for this example)
sudo /usr/src/linux-headers-$(uname -r)/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(modinfo -n vboxdrv)
Perform the above for all modules located in the folder where vboxdrv is located, you can find out where vboxdrv is by executing:
modinfo -n vboxdrv
Register the keys to Secure Boot
sudo mokutil --import MOK.der
Supply a password for later use after reboot
Reboot and follow instructions to Enroll MOK (Machine Owner Key). Here's a sample with pictures. The system will reboot one more time. After the reboot, you may also need to sudo modprobe vboxdrv to load the module.