Skip to content

Instantly share code, notes, and snippets.

I've had the opertunity to try a variety of different server configurations but never really got around to trying HHVM with Magento until recently. I thought I would share a detailed walkthrough of configuring a single instance Magento server running Nginx + Fast CGI + HHVM / PHP-FPM + Redis + Percona. For the purpose of this blog post I'm assuming you are using Fedora, CentOS, or in my case RHEL 6.5.

Please note: I'm 100% open to suggestions. If you see something I did that needs to be done a different way, please let me know. I haven't included my Perconca my.conf file yet. I will shortly. Also I plan on trying this same test with HHVM 3.3 and PHP 7.

Install the EPEL, Webtatic, and REMI repos

rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm
@magemonkey
magemonkey / nofollow.php
Last active December 18, 2015 11:59
Simple and quick way to make links for a domain nofollow in your posts & pages content if, like for me, all of the nofollow plugins failed at the task or broke your site.
<?php
/**
* Allows you to create nofollow links easily in WP content for specific urls and
*
* File: nofollow.php
* User: marvinroman
* Created: 6/14/13
*
* Change the items in [] as well as the subdomain array
* If you don't know the subdomains run the file once with the array empty and it will show you all the found subdomains without making any changes
@magemonkey
magemonkey / mysqldump-scp-mysql
Last active March 23, 2020 19:18
Copying a Magento Database from one server to another using mysqldump / scp / mysql
#1)
#SSH to the server you want to copy the database from
#[ssh template] - replace [IP] with actual server IP
ssh root@[IP]
#2)
#Find the database credentials from the database that you are copying in app/etc/local.xml
#[nano template]
nano [path to web root]/app/etc/local.xml
#In this file look for <connection> node and find the nodes <username> <password> <dbname>