Last active
August 29, 2015 14:15
-
-
Save tknzk/8f923807356426d59a4c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# apt-get install vim | |
# apt-get install zsh | |
# apt-get install git | |
# apt-get install curl | |
# apt-get install nginx | |
# apt-get install mysql | |
# apt-get install mariadb-server | |
# wget -uO - http://dl.hhvm.com/conf/hhvm.gpg.key | sudo apt-key add - | |
# echo deb http://dl.hhvm.com/ubuntu saucy main | sudo tee /etc/apt/sources.list.d/hhvm.list | |
deb http://dl.hhvm.com/ubuntu saucy main | |
# apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0x5a16e7281be7a449 | |
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.c7CYDhv2tA --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0x5a16e7281be7a449 | |
gpg: requesting key 1BE7A449 from hkp server keyserver.ubuntu.com | |
gpg: key 1BE7A449: "Paul Tarjan <pt@fb.com>" not changed | |
gpg: Total number processed: 1 | |
gpg: unchanged: 1 | |
# apt-get install python-software-properties | |
# aptitude install software-properties-common | |
# add-apt-repository 'deb http://dl.hhvm.com/ubuntu trusty main' | |
# apt-get install hhvm | |
******************************************************************** | |
* HHVM is installed. | |
* | |
* Running PHP web scripts with HHVM is done by having your webserver talk to HHVM | |
* over FastCGI. Install nginx or Apache, and then: | |
* $ sudo /usr/share/hhvm/install_fastcgi.sh | |
* $ sudo /etc/init.d/hhvm restart | |
* (if using nginx) $ sudo /etc/init.d/nginx restart | |
* (if using apache) $ sudo /etc/init.d/apache restart | |
* | |
* Detailed FastCGI directions are online at: | |
* https://github.com/facebook/hhvm/wiki/FastCGI | |
* | |
* If you're using HHVM to run web scripts, you probably want it to start at boot: | |
* $ sudo update-rc.d hhvm defaults | |
* | |
* Running command-line scripts with HHVM requires no special setup: | |
* $ hhvm whatever.php | |
* | |
* You can use HHVM for /usr/bin/php even if you have php-cli installed: | |
* $ sudo /usr/bin/update-alternatives --install /usr/bin/php php /usr/bin/hhvm 60 | |
******************************************************************** |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment