Tag Archives: amazon

Installing HHVM on Amazon Linux (AWS)


Alternative to PHP, said to increase speed by up to 40%.  Works similar to java in that it pre-compiles PHP automatically to speed up execution time.  Used by facebook.

cd /etc/yum.repos.d
wget http://www.hop5.in/yum/el6/hop5.repo
echo 'priority=9' >> hop5.repo
echo 'includepkgs=glog,tbb' >> hop5.repo
wget http://yum.sexydev.com/sexydev-amazon.repo
yum install hhvm


Usernames for Amazon Linux (AWS) and Ubuntu AMI

For Amazon Linux, the username is “ec2-user”, for ubuntu it is simply “ubuntu”.

To connect to them you need the key file that was generated when the instance was created, and the public DNS address.  Use a command like:

ssh -i myinstance.pem ec2-user@

Note: Make sure you have opened up ssh (port 22) access to your instance from your IP address.