systemctl start redis<\/pre>\r\n\r\n\r\n\r\nPh\u1ea7n 2 – C\u00e0i \u0111\u1eb7t phpRedis cho DriectAdmin<\/h2>\r\n\r\n\r\n\r\n
\u0110\u1ec3 k\u1ebft n\u1ed1i \u0111\u01b0\u1ee3c Redis v\u1edbi website, ch\u00fang ta ph\u1ea3i c\u00e0i th\u00eam 1 extension n\u1eefa cho php, \u0111\u00f3 ch\u00ednh l\u00e0 phpRedis. Gi\u1edd m\u00ecnh ti\u1ebfn h\u00e0nh c\u00e0i \u0111\u1eb7t nh\u00e9.<\/p>\r\n\r\n\r\n\r\n
1. B\u1eadt popen cho PHP:<\/h3>\r\n\r\n\r\n\r\n
N\u1ebfu Directadmin c\u1ee7a b\u1ea1n t\u1eebng c\u00e0i \u0111\u1eb7t php_secure, h\u00e3y ch\u1ea1y l\u1ec7nh sau \u0111\u1ec3 x\u00f3a c\u1ea5u h\u00ecnh \u0111\u00f3 tr\u01b0\u1edbc<\/p>\r\n\r\n\r\n\r\n
cd \/usr\/local\/directadmin\/custombuild\/;\r\nrm -f custom\/php_disable_functions;<\/pre>\r\n\r\n\r\n\r\nTi\u1ebfp theo ta t\u1ea1o l\u1ea1i file c\u1ea5u h\u00ecnh (c\u00f3 b\u1eadt l\u1ea1i popen)<\/p>\r\n\r\n\r\n\r\n
cd \/usr\/local\/directadmin\/custombuild;\r\necho \"exec,system,passthru,shell_exec,proc_close,proc_open,dl,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname\" > custom\/php_disable_functions;\r\n.\/build secure_php<\/pre>\r\n\r\n\r\n\r\n2. C\u00e0i phpRedis cho t\u1ea5t c\u1ea3 PHP c\u1ee7a DirectAdmin<\/h3>\r\n\r\n\r\n\r\n
B\u1ea1n ch\u1ea1y l\u1ec7nh sau \u0111\u1ec3 c\u00e0i \u0111\u1eb7t phpRedis cho t\u1ea5t c\u1ea3 phi\u00ean b\u1ea3n php (l\u01b0u \u00fd c\u00f3 reboot server):<\/p>\r\n\r\n\r\n\r\n
cd \/usr\/local\/directadmin\/scripts\/custom;\r\nwget https:\/\/raw.githubusercontent.com\/poralix\/directadmin-utils\/master\/php\/php-extension.sh -O php-extension.sh;\r\nchmod 750 php-extension.sh;\r\n.\/php-extension.sh install redis;\r\nsystemctl reboot;<\/pre>\r\n\r\n\r\n\r\nCh\u00fac c\u00e1c b\u1ea1n c\u00e0i \u0111\u1eb7t Redis 6 tr\u00ean Directadmin th\u00e0nh c\u00f4ng nh\u00e9!<\/p>\r\n","protected":false},"excerpt":{"rendered":"
Tr\u01b0\u1edbc khi h\u01b0\u1edbng d\u1eabn c\u00e0i \u0111\u1eb7t Redis 6, m\u00ecnh s\u1ebd \u0111i\u1ec3m qua t\u00ednh n\u0103ng \u01b0u…<\/p>\n","protected":false},"author":3,"featured_media":25956,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"footnotes":""},"categories":[195],"tags":[203,204,202],"class_list":["post-25955","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cai-dat-vps-directadmin","tag-redis","tag-redis-6","tag-redis-cache"],"_links":{"self":[{"href":"https:\/\/doc.bnix.vn\/wp-json\/wp\/v2\/posts\/25955","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/doc.bnix.vn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/doc.bnix.vn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/doc.bnix.vn\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/doc.bnix.vn\/wp-json\/wp\/v2\/comments?post=25955"}],"version-history":[{"count":0,"href":"https:\/\/doc.bnix.vn\/wp-json\/wp\/v2\/posts\/25955\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/doc.bnix.vn\/wp-json\/wp\/v2\/media\/25956"}],"wp:attachment":[{"href":"https:\/\/doc.bnix.vn\/wp-json\/wp\/v2\/media?parent=25955"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/doc.bnix.vn\/wp-json\/wp\/v2\/categories?post=25955"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/doc.bnix.vn\/wp-json\/wp\/v2\/tags?post=25955"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}