{"id":907,"date":"2022-09-09T16:27:26","date_gmt":"2022-09-09T16:27:26","guid":{"rendered":"https:\/\/sunucucozumleri.com\/?p=907"},"modified":"2022-10-06T10:30:34","modified_gmt":"2022-10-06T10:30:34","slug":"whm-php7-2-memcache-yuklemek-how-to-install-php7-2-memcache-easyapache4","status":"publish","type":"post","link":"https:\/\/sunucucozumleri.com\/blog\/whm-php7-2-memcache-yuklemek-how-to-install-php7-2-memcache-easyapache4\/","title":{"rendered":"WHM PHP7.2 Memcache Y\u00fcklemek &#8211; How To install PHP7.2 Memcache EasyApache4"},"content":{"rendered":"<p>Merhabalar, cPanel \/ WHM kullan\u0131c\u0131lar\u0131 i\u00e7in Easyapache4 ile\u00a0<strong>memcache y\u00fcklemek<\/strong>\u00a0olduk\u00e7a can s\u0131k\u0131c\u0131 bir hal alabiliyor.\u00a0 Bu makalemizde en h\u0131zl\u0131 ve keyifle nas\u0131l memcache y\u00fckleyebiliriz k\u0131sm\u0131na de\u011finece\u011fiz. Makalemiz boyunca arkan\u0131za yaslanarak 1 bardak \u00e7ay almal\u0131s\u0131n\u0131z ve keyifle \u00e7ay\u0131n\u0131z\u0131 yudumlamal\u0131s\u0131n\u0131z.<\/p>\n<p>WHM \u00fczerinden PECL ile memcached y\u00fckleyebiliyoruz bir problem yok ancak memcache \u015fuan i\u00e7in a\u015fa\u011f\u0131daki hatay\u0131 vermektedir. Muhtemelen sizlerde a\u015fa\u011f\u0131daki hata ile kar\u015f\u0131la\u015ft\u0131n\u0131z.<\/p>\n<pre class=\"language-php\"><code>downloading memcache-2.2.7.tgz ...\r\nStarting to download memcache-2.2.7.tgz (36,459 bytes)\r\n..........done: 36,459 bytes\r\n11 source files, building\r\nrunning: phpize\r\nConfiguring for:\r\nPHP Api Version:         20170718\r\nZend Module Api No:      20170718\r\nZend Extension Api No:   320170718\r\nEnable memcache session handler support? [yes] : building in \/root\/tmp\/pear\/pear-build-rootN2fUrn\/memcache-2.2.7\r\nrunning: \/root\/tmp\/pear\/memcache\/configure --with-php-config=\/opt\/cpanel\/ea-php72\/root\/usr\/bin\/php-config --enable-memcache-session=yes\r\nchecking for grep that handles long lines and -e... \/bin\/grep\r\nchecking for egrep... \/bin\/grep -E\r\nchecking for a sed that does not truncate output... \/bin\/sed\r\nchecking for cc... cc\r\nchecking whether the C compiler works... yes\r\nchecking for C compiler default output file name... a.out\r\nchecking for suffix of executables...\r\nchecking whether we are cross compiling... no\r\nchecking for suffix of object files... o\r\nchecking whether we are using the GNU C compiler... yes\r\nchecking whether cc accepts -g... yes\r\nchecking for cc option to accept ISO C89... none needed\r\nchecking how to run the C preprocessor... cc -E\r\nchecking for icc... no\r\nchecking for suncc... no\r\nchecking whether cc understands -c and -o together... yes\r\nchecking for system library directory... lib\r\nchecking if compiler supports -R... no\r\nchecking if compiler supports -Wl,-rpath,... yes\r\nchecking build system type... x86_64-unknown-linux-gnu\r\nchecking host system type... x86_64-unknown-linux-gnu\r\nchecking target system type... x86_64-unknown-linux-gnu\r\nchecking for PHP prefix... \/opt\/cpanel\/ea-php72\/root\/usr\r\nchecking for PHP includes... -I\/opt\/cpanel\/ea-php72\/root\/usr\/include\/php -I\/opt\/cpanel\/ea-php72\/root\/usr\/include\/php\/main -I\/opt\/cpanel\/ea-php72\/root\/usr\/include\/php\/TSRM -I\/opt\/cpanel\/ea-php72\/root\/usr\/include\/php\/Zend -I\/opt\/cpanel\/ea-php72\/root\/usr\/include\/php\/ext -I\/opt\/cpanel\/ea-php72\/root\/usr\/include\/php\/ext\/date\/lib\r\nchecking for PHP extension directory... \/opt\/cpanel\/ea-php72\/root\/usr\/lib64\/php\/modules\r\nchecking for PHP installed headers prefix... \/opt\/cpanel\/ea-php72\/root\/usr\/include\/php\r\nchecking if debug is enabled... no\r\nchecking if zts is enabled... no\r\nchecking for re2c... no\r\nconfigure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.\r\nchecking for gawk... gawk\r\nchecking whether to enable memcache support... yes, shared\r\nchecking whether to enable memcache session handler support... yes\r\nchecking for the location of ZLIB... no\r\nchecking for the location of zlib... \/usr\r\nchecking for session includes... \/opt\/cpanel\/ea-php72\/root\/usr\/include\/php\r\nchecking for memcache session support... enabled\r\nchecking how to print strings... printf\r\nchecking for a sed that does not truncate output... (cached) \/bin\/sed\r\nchecking for fgrep... \/bin\/grep -F\r\nchecking for ld used by cc... \/bin\/ld\r\nchecking if the linker (\/bin\/ld) is GNU ld... yes\r\nchecking for BSD- or MS-compatible name lister (nm)... \/bin\/nm -B\r\nchecking the name lister (\/bin\/nm -B) interface... BSD nm\r\nchecking whether ln -s works... yes\r\nchecking the maximum length of command line arguments... 1572864\r\nchecking whether the shell understands some XSI constructs... yes\r\nchecking whether the shell understands \"+=\"... yes\r\nchecking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop\r\nchecking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop\r\nchecking for \/bin\/ld option to reload object files... -r\r\nchecking for objdump... objdump\r\nchecking how to recognize dependent libraries... pass_all\r\nchecking for dlltool... no\r\nchecking how to associate runtime and link libraries... printf %s\\n\r\nchecking for ar... ar\r\nchecking for archiver @FILE support... @\r\nchecking for strip... strip\r\nchecking for ranlib... ranlib\r\nchecking for gawk... (cached) gawk\r\nchecking command to parse \/bin\/nm -B output from cc object... ok\r\nchecking for sysroot... no\r\nchecking for mt... no\r\nchecking if : is a manifest tool... no\r\nchecking for ANSI C header files... yes\r\nchecking for sys\/types.h... yes\r\nchecking for sys\/stat.h... yes\r\nchecking for stdlib.h... yes\r\nchecking for string.h... yes\r\nchecking for memory.h... yes\r\nchecking for strings.h... yes\r\nchecking for inttypes.h... yes\r\nchecking for stdint.h... yes\r\nchecking for unistd.h... yes\r\nchecking for dlfcn.h... yes\r\nchecking for objdir... .libs\r\nchecking if cc supports -fno-rtti -fno-exceptions... no\r\nchecking for cc option to produce PIC... -fPIC -DPIC\r\nchecking if cc PIC flag -fPIC -DPIC works... yes\r\nchecking if cc static flag -static works... yes\r\nchecking if cc supports -c -o file.o... yes\r\nchecking if cc supports -c -o file.o... (cached) yes\r\nchecking whether the cc linker (\/bin\/ld -m elf_x86_64) supports shared libraries... yes\r\nchecking whether -lc should be explicitly linked in... no\r\nchecking dynamic linker characteristics... GNU\/Linux ld.so\r\nchecking how to hardcode library paths into programs... immediate\r\nchecking whether stripping libraries is possible... yes\r\nchecking if libtool supports shared libraries... yes\r\nchecking whether to build shared libraries... yes\r\nchecking whether to build static libraries... no\r\nconfigure: creating .\/config.status\r\nconfig.status: creating config.h\r\nconfig.status: executing libtool commands\r\nrunning: make\r\n\/bin\/sh \/root\/tmp\/pear\/pear-build-rootN2fUrn\/memcache-2.2.7\/libtool --mode=compile cc -I\/opt\/cpanel\/ea-php72\/root\/usr\/include\/php -I. -I\/root\/tmp\/pear\/memcache -DPHP_ATOM_INC -I\/root\/tmp\/pear\/pear-build-rootN2fUrn\/memcache-2.2.7\/include -I\/root\/tmp\/pear\/pear-build-rootN2fUrn\/memcache-2.2.7\/main -I\/root\/tmp\/pear\/memcache -I\/opt\/cpanel\/ea-php72\/root\/usr\/include\/php -I\/opt\/cpanel\/ea-php72\/root\/usr\/include\/php\/main -I\/opt\/cpanel\/ea-php72\/root\/usr\/include\/php\/TSRM -I\/opt\/cpanel\/ea-php72\/root\/usr\/include\/php\/Zend -I\/opt\/cpanel\/ea-php72\/root\/usr\/include\/php\/ext -I\/opt\/cpanel\/ea-php72\/root\/usr\/include\/php\/ext\/date\/lib  -DHAVE_CONFIG_H  -g -O2   -c \/root\/tmp\/pear\/memcache\/memcache.c -o memcache.lo\r\nlibtool: compile:  cc -I\/opt\/cpanel\/ea-php72\/root\/usr\/include\/php -I. -I\/root\/tmp\/pear\/memcache -DPHP_ATOM_INC -I\/root\/tmp\/pear\/pear-build-rootN2fUrn\/memcache-2.2.7\/include -I\/root\/tmp\/pear\/pear-build-rootN2fUrn\/memcache-2.2.7\/main -I\/root\/tmp\/pear\/memcache -I\/opt\/cpanel\/ea-php72\/root\/usr\/include\/php -I\/opt\/cpanel\/ea-php72\/root\/usr\/include\/php\/main -I\/opt\/cpanel\/ea-php72\/root\/usr\/include\/php\/TSRM -I\/opt\/cpanel\/ea-php72\/root\/usr\/include\/php\/Zend -I\/opt\/cpanel\/ea-php72\/root\/usr\/include\/php\/ext -I\/opt\/cpanel\/ea-php72\/root\/usr\/include\/php\/ext\/date\/lib -DHAVE_CONFIG_H -g -O2 -c \/root\/tmp\/pear\/memcache\/memcache.c  -fPIC -DPIC -o .libs\/memcache.o\r\n\/root\/tmp\/pear\/memcache\/memcache.c:40:40: fatal error: ext\/standard\/php_smart_str.h: No such file or directory\r\n #include \"ext\/standard\/php_smart_str.h\"\r\n                                        ^\r\ncompilation terminated.\r\nmake: *** [memcache.lo] Error 1\r\nERROR: `make' failed<\/code><\/pre>\n<p>&nbsp;<\/p>\n<p>Can\u0131n\u0131z\u0131 s\u0131kmaya gerek yok, a\u015fa\u011f\u0131daki ssh komutunu kopyala yap\u0131\u015ft\u0131r yaparak \u00e7al\u0131\u015ft\u0131rabilirsiniz ve bu arada \u00e7ay\u0131n\u0131z\u0131 yudumlayabilirsiniz.\u00a0\u00a0<strong>How to install Memcache<\/strong>\u00a0?<\/p>\n<pre class=\"language-python\"><code>cd \/usr\/local\/src\/\r\nwget https:\/\/github.com\/websupport-sk\/pecl-memcache\/archive\/NON_BLOCKING_IO_php7.zip\r\nunzip NON_BLOCKING_IO_php7.zip\r\nmv pecl-memcache-NON_BLOCKING_IO_php7 pecl-memcache-NON_BLOCKING_IO_php72\r\ncd pecl-memcache-NON_BLOCKING_IO_php72\r\n\/opt\/cpanel\/ea-php72\/root\/usr\/bin\/phpize &amp;&amp; .\/configure --enable-memcache --with-php-config=\/opt\/cpanel\/ea-php72\/root\/usr\/bin\/php-config\r\nmake\r\ncp modules\/memcache.so \/opt\/cpanel\/ea-php72\/root\/usr\/lib64\/php\/modules\/\r\necho 'extension=memcache.so' &gt; \/opt\/cpanel\/ea-php72\/root\/etc\/php.d\/memcached.ini<\/code><\/pre>\n<p>\u0130\u015flemleri kontrol edelim,<\/p>\n<pre class=\"language-ruby\"><code>\/opt\/cpanel\/ea-php72\/root\/usr\/bin\/php -m | grep memcache\r\n<\/code><\/pre>\n<p>Bol trafikler.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Merhabalar, cPanel \/ WHM kullan\u0131c\u0131lar\u0131 i\u00e7in Easyapache4 ile\u00a0memcache y\u00fcklemek\u00a0olduk\u00e7a can s\u0131k\u0131c\u0131 bir hal alabiliyor.\u00a0 Bu makalemizde en h\u0131zl\u0131 ve keyifle nas\u0131l memcache y\u00fckleyebiliriz k\u0131sm\u0131na de\u011finece\u011fiz. Makalemiz boyunca arkan\u0131za yaslanarak 1 bardak \u00e7ay almal\u0131s\u0131n\u0131z ve keyifle \u00e7ay\u0131n\u0131z\u0131 yudumlamal\u0131s\u0131n\u0131z. WHM \u00fczerinden PECL ile memcached y\u00fckleyebiliyoruz bir problem yok ancak memcache \u015fuan i\u00e7in a\u015fa\u011f\u0131daki hatay\u0131 vermektedir. Muhtemelen sizlerde &hellip;<\/p>\n","protected":false},"author":1,"featured_media":1444,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[7,5],"tags":[],"class_list":["post-907","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cpanel","category-linux"],"acf":[],"_links":{"self":[{"href":"https:\/\/sunucucozumleri.com\/blog\/wp-json\/wp\/v2\/posts\/907","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sunucucozumleri.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sunucucozumleri.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sunucucozumleri.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sunucucozumleri.com\/blog\/wp-json\/wp\/v2\/comments?post=907"}],"version-history":[{"count":0,"href":"https:\/\/sunucucozumleri.com\/blog\/wp-json\/wp\/v2\/posts\/907\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sunucucozumleri.com\/blog\/wp-json\/wp\/v2\/media\/1444"}],"wp:attachment":[{"href":"https:\/\/sunucucozumleri.com\/blog\/wp-json\/wp\/v2\/media?parent=907"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sunucucozumleri.com\/blog\/wp-json\/wp\/v2\/categories?post=907"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sunucucozumleri.com\/blog\/wp-json\/wp\/v2\/tags?post=907"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}