Vagrant for Magento on HHVM
This is a Vagrant configuration for getting a basic version of Magento with HHVM up and running. It is based on a template by PuPHPet.
What do you get?
A VirtualBox image
- for VirtualBox 4.2
- based on Debian Wheezy 7.1
- PHP 5.5 (Opcache enabled with default configuration)
- HHVM (Daniel Sloof's patched version)
- Magento CE 1.8 installed by n98-magerun
Clone this repository
Change to the directory and execute
SSH into your VM (execute
vagrant sshor if this doesn't work connect to 127.0.0.1:2222 as printed on screen)
/var/vagrant/shell/install-hhvm.sh. This will take a while as > 350 MB are downloaded and HHVM is compiled which can take anywhere from 30 minutes to several hours.
Add a host entry to your hosts file:
If everything worked then you will get a running Apache instance and can open
http://magento-hhvm.local/in your browser.
To use HHVM instead of Apache shut down Apache and launch HHVM:
sudo /etc/init.d/apache2 stop sudo /home/vagrant/dev/hhvm/hphp/hhvm/hhvm -m server -c /var/vagrant/files/magento-config.hdf -vServer.IniFile=/var/vagrant/files/hhvm.ini
If you reload
http://magento-hhvm.local/HHVM should be at duty and boosting your store as soon as the JIT compiler kicks in.
By default, these credentials are used:
Database name: magento
Magento Admin User
What if I...
want to change credentials?
shell/install-hhvm.shfor changing MySQL credentials.
- Modify the
n98-magerun.pharto change Magento credentials as specified in the n98-magerun Wiki.
want to use NFS for the shared folder?
want to change the IP?
Any contribution is highly appreciated. The best way to contribute code is to open a pull request on GitHub.
- HHVM based on master branch by Daniel Sloof (#1)
- Switched to PHP 5.5 with Opcache enabled (default configuration (#2)
- Adjusted manifest for Puppet 3.4 (see puphpet/issues#347)
- Install modman
- Allow symlinks for templates
- Initial release
MIT License (see LICENSE file)
(c) 2013 Matthias Zeis