{"id":751,"date":"2015-01-23T15:24:01","date_gmt":"2015-01-23T06:24:01","guid":{"rendered":"https:\/\/blog.ymyzk.com\/?p=751"},"modified":"2015-01-23T15:24:01","modified_gmt":"2015-01-23T06:24:01","slug":"debian-7-wheezy-hhvm","status":"publish","type":"post","link":"https:\/\/blog.ymyzk.com\/2015\/01\/debian-7-wheezy-hhvm\/","title":{"rendered":"Debian 7 wheezy \u306b HHVM 3.5 \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b"},"content":{"rendered":"
Debian 7 wheezy \u306b HHVM 3.5 (HipHop Virtual Machine) \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\u3092\u307e\u3068\u3081\u307e\u3059. \u4eca\u56de\u306f\u30d0\u30a4\u30ca\u30ea\u3092 apt \u3092\u4f7f\u3063\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059. \u516c\u5f0f\u306e\u5404\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\u3078\u306e\u30d0\u30a4\u30ca\u30ea\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u306f\u3053\u3061\u3089<\/a> \u306b\u63b2\u8f09\u3055\u308c\u3066\u3044\u307e\u3059.<\/p>\n <\/p>\n \u4eca\u56de\u306e\u4f5c\u696d\u74b0\u5883\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059.<\/p>\n \u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068 HHVM \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3059. apt \u306e\u30ad\u30fc\u306e\u8ffd\u52a0\u3068\u30bd\u30fc\u30b9\u306e\u8ffd\u52a0, HHVM \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u884c\u3044\u307e\u3059.<\/p>\n \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6bb5\u968e\u3067 HHVM \u306e\u81ea\u52d5\u8d77\u52d5\u306f\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u306a\u3044\u306e\u3067\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u8a2d\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059.<\/p>\n HHVM \u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306f Nginx \u304b\u3089 FastCGI \u3092\u7528\u3044\u3066 HHVM \u3092\u5229\u7528\u3059\u308b\u5834\u5408\u306e\u8a2d\u5b9a\u306f, PHP-FPM \u3092\u7528\u3044\u308b\u5834\u5408\u3068\u540c\u69d8\u3067\u3059. \u4ee5\u4e0b\u306b\u30b7\u30f3\u30d7\u30eb\u306a\u8a2d\u5b9a\u4f8b\u3092\u793a\u3057\u307e\u3059.<\/p>\n HHVM \u3092\u7528\u3044\u3066 WordPress \u3092\u904b\u7528\u3057\u305f\u3068\u3053\u308d, PHP-FPM \u3067\u904b\u7528\u3057\u305f\u5834\u5408\u3088\u308a\u5168\u4f53\u7684\u306b\u51e6\u7406\u304c\u65e9\u304f\u306a\u3063\u305f\u5370\u8c61\u3092\u53d7\u3051\u307e\u3057\u305f. \u305f\u3060\u3057, HHVM \u306e\u65b9\u304c\u30e1\u30e2\u30ea\u3092\u304b\u306a\u308a\u6d88\u8cbb\u3059\u308b\u3088\u3046\u306a\u306e\u3067, \u74b0\u5883\u306b\u3088\u3063\u3066\u306f\u6ce8\u610f\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093.<\/p>\n\u74b0\u5883<\/h2>\n
\n
\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n
sudo apt-key adv --recv-keys --keyserver hkp:\/\/keyserver.ubuntu.com:80 0x5a16e7281be7a449\r\necho deb http:\/\/dl.hhvm.com\/debian wheezy main | sudo tee \/etc\/apt\/sources.list.d\/hhvm.list\r\nsudo apt-get update\r\nsudo apt-get install hhvm\r\n<\/pre>\n
\u8a2d\u5b9a<\/h2>\n
sudo service hhvm start\r\nsudo update-rc.d hhvm defaults\r\n<\/pre>\n
\/etc\/hhvm<\/code> \u4ee5\u4e0b\u306b\u7f6e\u304b\u308c\u3066\u3044\u307e\u3059.<\/p>\n
Nginx \u304b\u3089 FastCGI \u3092\u7528\u3044\u3066\u5229\u7528\u3059\u308b<\/h2>\n
\/etc\/nginx\/hhvm.conf<\/code> \u306b Nginx \u7528\u306e\u8a2d\u5b9a\u304c\u6e96\u5099\u3055\u308c\u3066\u3044\u308b\u306e\u3067, \u3053\u308c\u3092 Nginx \u306e\u30b5\u30a4\u30c8\u8a2d\u5b9a\u304b\u3089 include \u3059\u308b\u304b, \u540c\u69d8\u306e\u8a2d\u5b9a\u3092\u30b5\u30a4\u30c8\u8a2d\u5b9a\u306b\u8a18\u8ff0\u3057\u307e\u3059.<\/p>\n
server {\r\n listen 80; ## listen for ipv4; this line is default and implied\r\n #listen [::]:80 default_server ipv6only=on; ## listen for ipv6\r\n\r\n server_name example.com;\r\n root \/var\/www\/wordpress;\r\n\r\n location \/ {\r\n index index.php;\r\n try_files $uri $uri\/ \/index.php?$args;\r\n }\r\n\r\n include \/etc\/nginx\/hhvm.conf;\r\n}\r\n<\/pre>\n
\u8a55\u4fa1<\/h2>\n
\u53c2\u8003<\/h2>\n