mzeis / Vagrant Magento Hhvm
Labels
Projects that are alternatives of or similar to Vagrant Magento Hhvm
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.
Version
1.1.0
What do you get?
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
Usage
-
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.
Default credentials
By default, these credentials are used:
SSH
IP: 127.0.0.1
Port: 2222
User: vagrant
Password: vagrant
MySQL
Database name: magento
User: magentouser
Password: magentopwd
Magento Admin User
User: admin
Password: password123
What if I...
want to change credentials?
- 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.
want to use NFS for the shared folder?
- Edit
Vagrantfile
.
want to change the IP?
- Edit
Vagrantfile
.
Contribution
Any contribution is highly appreciated. The best way to contribute code is to open a pull request on GitHub.
Changelog
v1.1.0
- 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
v1.0.0
- Initial release
Developer
Matthias Zeis
License
MIT License (see LICENSE file)
Copyright
(c) 2013 Matthias Zeis