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.
1.1.0
A VirtualBox image
- for VirtualBox 4.2
- based on Debian Wheezy 7.1
including
- Apache
- PHP 5.5 (Opcache enabled with default configuration)
- MySQL
- HHVM (Daniel Sloof's patched version)
- n98-magerun
- modman
- Magento CE 1.8 installed by n98-magerun
-
Clone this repository
-
Change to the directory and execute
vagrant up
-
SSH into your VM (execute
vagrant ssh
or if this doesn't work connect to 127.0.0.1:2222 as printed on screen) -
Execute
/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:
192.168.56.101 magento-hhvm.local
-
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:
IP: 127.0.0.1
Port: 2222
User: vagrant
Password: vagrant
Database name: magento
User: magentouser
Password: magentopwd
User: admin
Password: password123
- Edit
puppet/hieradata/common.yaml
andshell/install-hhvm.sh
for changing MySQL credentials. - Modify the
n98-magerun.phar
to change Magento credentials as specified in the n98-magerun Wiki.
- Edit
Vagrantfile
.
- Edit
Vagrantfile
.
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
Matthias Zeis
MIT License (see LICENSE file)
(c) 2013 Matthias Zeis