{"id":2983,"date":"2022-06-06T09:44:49","date_gmt":"2022-06-06T00:44:49","guid":{"rendered":"https:\/\/www.choco.org.uk\/chocodb\/?p=2983"},"modified":"2022-06-06T10:59:26","modified_gmt":"2022-06-06T01:59:26","slug":"php5-4%e3%81%abapc%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99%e3%82%8b%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.choco.org.uk\/chocodb\/?p=2983","title":{"rendered":"PHP5.4\u306bAPC\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002"},"content":{"rendered":"<p>\u3010\u524d\u63d0\u6761\u4ef6\u3011<br \/>\nPHP5.4\u4ee5\u4e0b\u3067\u3042\u308b\u4e8b<\/p>\n<p>\u57fa\u672cpecl\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<br \/>\n<span style=\"color: #ff0000;\">\u524a\u9664\u3059\u308b\u6642\u306f\u3001\u300cpecl uninstall apc\u300d<\/span><br \/>\n\uff1epecl install APC<\/p>\n<p>WARNING: &#8220;pecl\/APC&#8221; is deprecated in favor of &#8220;channel:\/\/\/APCu&#8221;<br \/>\nWARNING: channel &#8220;pecl.php.net&#8221; has updated its protocols, use &#8220;pecl channel-update pecl.php.net&#8221; to update<br \/>\ndownloading APC-3.1.13.tgz &#8230;<br \/>\nStarting to download APC-3.1.13.tgz (171,591 bytes)<br \/>\n&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.done: 171,591 bytes<br \/>\n55 source files, building<br \/>\nrunning: phpize<br \/>\nConfiguring for:<br \/>\nPHP Api Version: 20100412<br \/>\nZend Module Api No: 20100525<br \/>\nZend Extension Api No: 220100525<br \/>\nEnable internal debugging in APC [no] :\u3053\u306e\u307e\u307e\u30a8\u30f3\u30bf\u30fc<\/p>\n<p>Enable per request file info about files used from the APC cache [no] :\u3053\u306e\u307e\u307e\u30a8\u30f3\u30bf\u30fc<\/p>\n<p>Enable spin locks (EXPERIMENTAL) [no] :\u3053\u306e\u307e\u307e\u30a8\u30f3\u30bf\u30fc<\/p>\n<p>Enable memory protection (EXPERIMENTAL) [no] :\u3053\u306e\u307e\u307e\u30a8\u30f3\u30bf\u30fc<\/p>\n<p>Enable pthread mutexes (default) [no] :\u3053\u306e\u307e\u307e\u30a8\u30f3\u30bf\u30fc<\/p>\n<p>Enable pthread read\/write locks (EXPERIMENTAL) [yes] :\u3053\u306e\u307e\u307e\u30a8\u30f3\u30bf\u30fc<\/p>\n<p>\u3010\u6210\u529f\u30e1\u30c3\u30bb\u30fc\u30b8\u3011<br \/>\nBuild process completed successfully<br \/>\nInstalling &#8216;\/usr\/lib64\/php\/modules\/apc.so&#8217;<br \/>\nInstalling &#8216;\/usr\/include\/php\/ext\/apc\/apc_serializer.h&#8217;<br \/>\ninstall ok: channel:\/\/pecl.php.net\/APC-3.1.13<br \/>\nconfiguration option &#8220;php_ini&#8221; is not set to php.ini location<br \/>\n<span style=\"color: #0000ff;\">You should add &#8220;extension=apc.so&#8221; to php.ini<\/span><\/p>\n<p>\u300capc.so\u300d\u3092\u63a2\u3059\u3002<br \/>\nfind \/ -name apc.so<br \/>\n\/usr\/lib64\/php\/modules\/apc.so<\/p>\n<p>\u300cphp.ini\u300d\u306b\u66f8\u304d\u8fbc\u3080<br \/>\nvi php.ini<br \/>\n<span style=\"color: #ff00ff;\">\u300cDynamic Extensions\u300d\u306e\u4e0b\u3042\u305f\u308a\u306b\u3002<\/span><\/p>\n<p>extension = &#8220;\/usr\/lib64\/php\/modules\/apc.so&#8221;<\/p>\n<p>\u300cApache\u300d\u3092\u518d\u8d77\u52d5\u3059\u308b<br \/>\nsystemctl restart httpd<\/p>\n<p>\u300c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6642\u306b\u4f5c\u6210\u3055\u308c\u305fAPC\u30d5\u30a1\u30a4\u30eb\u3092\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30eb\u30fc\u30c8\u306b\u30b3\u30d4\u30fc\u300d<br \/>\ncp \/usr\/chare\/pear\/apc.php \/var\/www\/html\/<\/p>\n<p>\u300capc.php\u300d\u306e\u6a29\u9650\u3092\u8a2d\u5b9a<br \/>\ncd \/var\/www\/html<br \/>\nchgrp apache apc.php<br \/>\nchown apache apc.php<\/p>\n<p>\u3053\u308c\u3067\u76f4\u63a5\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u6b21\u306f\u7ba1\u7406\u753b\u9762\u306e\u8a2d\u5b9a\u3067\u3059\u3002<br \/>\n3.1.13\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u540d\u306f\u300capc.conf.php\u300d\u3067\u3059\u3002<br \/>\n\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u4e2d\u3067\u30ed\u30b0\u30a4\u30f3ID\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u8a2d\u5b9a\u3059\u308b\u3002<\/p>\n<p>vi \/var\/www\/html\/apc.conf.php<br \/>\n<span style=\"color: #3366ff;\">defaults(&#8216;ADMIN_USERNAME&#8217;,&#8217;apc&#8217;);<\/span><br \/>\n<span style=\"color: #3366ff;\">defaults(&#8216;ADMIN_PASSWORD&#8217;,&#8217;12345678&#8242;);<\/span><\/p>\n<p><span style=\"color: #ff0000;\">\u203b\u3053\u308c\u3092\u5165\u308c\u308b\u3068\u30b3\u30fc\u30c9\u3068\u30c7\u30fc\u30bf\u304c\u30ad\u30e3\u30c3\u30b7\u30e5\u3055\u308c\u308b\u306e\u3067\u9ad8\u901f\u5316\u3059\u308b\u304c\u3001\u30b3\u30fc\u30c9\u3082\u30ad\u30e3\u30c3\u30b7\u30e5\u3055\u308c\u308b\u306e\u3067\u4e0d\u5177\u5408\u3092\u4fee\u6b63\u3057\u305f\u6642\u306a\u3069\u306f\u8981\u6ce8\u610f<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3010\u524d\u63d0\u6761\u4ef6\u3011 PHP5.4\u4ee5\u4e0b\u3067\u3042\u308b\u4e8b \u57fa\u672cpecl\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002 \u524a\u9664\u3059\u308b\u6642\u306f\u3001\u300cpecl uninstall apc\u300d \uff1epecl install APC WARNING: &#8220;pecl\/APC&#038;#8 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[41,39],"tags":[191,166,57],"class_list":["post-2983","post","type-post","status-publish","format-standard","hentry","category-php","category-server","tag-apc","tag-centos7","tag-php"],"_links":{"self":[{"href":"https:\/\/www.choco.org.uk\/chocodb\/index.php?rest_route=\/wp\/v2\/posts\/2983","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.choco.org.uk\/chocodb\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.choco.org.uk\/chocodb\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.choco.org.uk\/chocodb\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.choco.org.uk\/chocodb\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2983"}],"version-history":[{"count":14,"href":"https:\/\/www.choco.org.uk\/chocodb\/index.php?rest_route=\/wp\/v2\/posts\/2983\/revisions"}],"predecessor-version":[{"id":2997,"href":"https:\/\/www.choco.org.uk\/chocodb\/index.php?rest_route=\/wp\/v2\/posts\/2983\/revisions\/2997"}],"wp:attachment":[{"href":"https:\/\/www.choco.org.uk\/chocodb\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2983"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.choco.org.uk\/chocodb\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2983"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.choco.org.uk\/chocodb\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2983"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}