{"id":256,"date":"2010-01-21T23:14:00","date_gmt":"2010-01-21T23:14:00","guid":{"rendered":"http:\/\/blog.trungson.com\/?p=256"},"modified":"2010-01-21T23:14:00","modified_gmt":"2010-01-21T23:14:00","slug":"install-apc-automatically-via-script","status":"publish","type":"post","link":"http:\/\/blog.trungson.com\/?p=256","title":{"rendered":"Install APC automatically via script"},"content":{"rendered":"<p>If you try to install APC via scripting, you might experience the interactive prompt asking about &#8220;apxs&#8221;. How to by pass that? Use expect (&#8220;yum install expect&#8221;). This script will solve your problem:<\/p>\n<pre>\n#!\/usr\/bin\/expect\nspawn pecl install apc\nexpect \"Use apxs to set compile flag\"\nsend \"yes\\r\"\nexpect \"install ok\"\nexpect eof\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>If you try to install APC via scripting, you might experience the interactive prompt asking about &#8220;apxs&#8221;. How to by pass that? Use expect (&#8220;yum install expect&#8221;). This script will solve your problem: #!\/usr\/bin\/expect spawn pecl install apc expect &#8220;Use apxs to set compile flag&#8221; send &#8220;yes\\r&#8221; expect &#8220;install ok&#8221; expect eof<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"_links":{"self":[{"href":"http:\/\/blog.trungson.com\/index.php?rest_route=\/wp\/v2\/posts\/256"}],"collection":[{"href":"http:\/\/blog.trungson.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.trungson.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.trungson.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.trungson.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=256"}],"version-history":[{"count":0,"href":"http:\/\/blog.trungson.com\/index.php?rest_route=\/wp\/v2\/posts\/256\/revisions"}],"wp:attachment":[{"href":"http:\/\/blog.trungson.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=256"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.trungson.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=256"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.trungson.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=256"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}