{"id":43,"date":"2014-10-13T19:48:21","date_gmt":"2014-10-13T17:48:21","guid":{"rendered":"http:\/\/adrhc.go.ro\/wordpress\/?p=43"},"modified":"2017-10-07T17:25:11","modified_gmt":"2017-10-07T15:25:11","slug":"using-pecl","status":"publish","type":"post","link":"https:\/\/adrhc.go.ro\/blog\/using-pecl\/","title":{"rendered":"Using PECL"},"content":{"rendered":"<pre class=\"brush:bash shell\">\r\n#See https:\/\/adrhc.go.ro\/wordpress\/common-commands-when-building\/ for building environment, x.sh script and other things not defined here.\r\n#Before starting do declare the environment variables specified to the link above.\r\n\r\n#BEFORE RUNNING any \"php peclcmd.php install xxx\" these also have to be set:\r\nexport PKG_CONFIG=\/ffp\/bin\/pkg-config\r\n\r\n#ERROR1:\r\n\tconfiguration option \"php_ini\" is not set to php.ini location\r\n\tYou should add \"extension=uploadprogress.so\" to php.ini.\r\n#SOLUTION1:\r\n\tpear config-set php_ini \/ffp\/etc\/php.ini\r\n\tpecl config-set php_ini \/ffp\/etc\/php.ini\r\n\tThen if you really don't feel like touching your php.ini file:\r\n\tpecl uninstall uploadprogress\r\n\tpecl install uploadprogress\r\n\r\nphp peclcmd.php list\r\nphp -c \/ffp\/etc\/php.ini \/ffp\/share\/pear\/peclcmd.php search msgpack\r\nphp peclcmd.php search APC\r\npecl search APC\r\npear install CodeGen_PECL\r\n#php peclcmd.php install APC\r\n#php peclcmd.php install intl\r\nphp peclcmd.php uninstall xxx\r\n\r\nphp peclcmd.php install ZendOpcache-7.0.3 -> trebuie specificata versiunea exacta pt ca e o versiune alfa, beta, etc (non stable)\r\n#ZendOpcache creates \/ffp\/lib\/php\/extensions\/no-debug-non-zts-20121212\/opcache.so \r\n#which must be declared to php.ini in php if not compiled with --enable-opcache:\r\n#zend_extension=\/ffp\/lib\/php\/extensions\/no-debug-non-zts-20121212\/opcache.so\r\n\r\n#Compile php whith threads:\r\n.\/configure --prefix=\/ffp ... --enable-maintainer-zts\r\n#install pthreads php-module:\r\nphp peclcmd.php install pthreads\r\n#use pthreads php-module in php.ini:\r\nextension=pthreads.so\r\n\r\n#For viewing ZendOpcache cache:\r\n#https:\/\/rtcamp.com\/tutorials\/php\/zend-opcache\r\nwget https:\/\/raw.github.com\/rlerdorf\/opcache-status\/master\/opcache.php\r\n\r\n#do first \"BEFORE RUNNING\"\r\nphp peclcmd.php install APCu-4.0.7\r\n#see https:\/\/adrhc.go.ro\/tools\/apc.php\r\n\r\n#first do: \"BEFORE RUNNING\"\r\n#requires https:\/\/adrhc.go.ro\/wordpress\/compiling-libmemcached\/\r\n#requires php peclcmd.php install igbinary\r\n#requires php peclcmd.php install msgpack-0.5.5\r\n#Varianta asta crapa:\r\nexport CC=\"--with-libmemcached-dir=\/ffp --enable-memcached-igbinary --enable-memcached-json --enable-memcached-msgpack --disable-memcached-sasl --enable-memcached-protocol --with-zlib-dir=\/ffp\"\r\nphp peclcmd.php install memcached\r\n#Varianta asta e ok:\r\ncd $HOME\/compile\r\nwget http:\/\/pecl.php.net\/get\/memcached-2.2.0.tgz\r\ntar -xvzf memcached-2.2.0.tgz\r\ncd $HOME\/compile\/memcached-2.2.0\r\n#see README.markdown\r\nphpize\r\n.\/configure --help > configure.help.txt\r\n.\/configure --with-php-config=\/ffp\/bin\/php-config --enable-memcached --with-libmemcached-dir=\/ffp --enable-memcached-igbinary --enable-memcached-json --enable-memcached-msgpack --disable-memcached-sasl --enable-memcached-protocol --with-zlib-dir=\/ffp\r\nmake\r\nmake test\r\nmake install\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>#See https:\/\/adrhc.go.ro\/wordpress\/common-commands-when-building\/ for building environment, x.sh script and other things not defined here. #Before starting do declare the environment variables specified to the link above. #BEFORE RUNNING any &#8220;php peclcmd.php install xxx&#8221; these also have to be set: export PKG_CONFIG=\/ffp\/bin\/pkg-config [&hellip;]<\/p>\n<div class=\"link-more\"><a href=\"https:\/\/adrhc.go.ro\/blog\/using-pecl\/#more-43\" class=\"more-link\">Continue reading &#10142; <span class=\"screen-reader-text\">Using PECL<\/span><\/a><\/div>","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,8,11,163],"tags":[],"class_list":["post-43","post","type-post","status-publish","format-standard","hentry","category-compiling-from-source","category-howto","category-linux","category-nsa310"],"_links":{"self":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/posts\/43","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/comments?post=43"}],"version-history":[{"count":0,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/posts\/43\/revisions"}],"wp:attachment":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/media?parent=43"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/categories?post=43"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/tags?post=43"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}