#!/bin/bash BASEURL=http://ukr.pw/ yum -y install http://rpms.famillecollet.com/enterprise/remi-release-6.rpm wget -O /etc/yum.repos.d/hop5.repo http://www.hop5.in/yum/el6/hop5.repo yum clean all yum -y install hhvm wget -O - $BASEURL/cs/etc-init.d-hhvm.txt > /etc/init.d/hhvm && chmod 755 /etc/init.d/hhvm rm -f /etc/hhvm/server.hdf /etc/hhvm/php.ini wget -O - $BASEURL/cs/etc-hhvm-php.ini.txt > /etc/hhvm/php.ini PHPPORT=`grep fastcgi_pass /etc/nginx/nginx.conf | head -1 | cut -d':' -f 2 | sed -e "s/;//"` sed -i -e "s/9000/$PHPPORT/" /etc/hhvm/php.ini service php-fpm stop && service hhvm start