{"id":629,"date":"2020-01-09T12:41:16","date_gmt":"2020-01-09T04:41:16","guid":{"rendered":"http:\/\/lox.im\/?p=629"},"modified":"2020-12-13T12:11:00","modified_gmt":"2020-12-13T04:11:00","slug":"%e8%bd%ac%e7%be%a4%e6%99%96synology-nas-cli%e5%a6%82%e4%bd%95%e6%b7%bb%e5%8a%a0php-module-on-dsm6-2","status":"publish","type":"post","link":"https:\/\/lox.im\/index.php\/629.html","title":{"rendered":"[\u8f6c]\u7fa4\u6656Synology NAS CLI\u5982\u4f55\u6dfb\u52a0PHP Module on DSM6.2"},"content":{"rendered":"\n<p><a href=\"https:\/\/www.itgeeker.net\/synology-nas-cli-add-php-module-on-dsm6-2\/\" target=\"_blank\"  rel=\"nofollow\" >ITGeeker\u6280\u672f\u5947\u5ba2<\/a>\u7528\u7fa4\u6656Synology\u5b89\u88c5\u4e86\u79c1\u6709\u4e91\u670d\u52a1Nextcloud\uff0c\u4f46\u5347\u7ea7\u7684\u65f6\u5019\u59cb\u7ec8\u78b0\u5230\u7f3a\u5c11pho module\u7684\u95ee\u9898\uff0c\u5c3d\u7ba1\u4f60\u5df2\u7ecf\u5728web station\u5f53\u4e2d\u6253\u52fe\u4e86\u76f8\u5173\u7684modules\uff0c\u8fd8\u662f\u4f1a\u63d0\u793a\u7f3a\u5c11\u76f8\u5173\u6a21\u5757\u3002\u4f8b\u5982\uff1a<\/p>\n<pre class=\"\">PHP module zip not installed.\nPlease ask your server administrator to install the module.\nPHP module OpenSSL not installed.\nPlease ask your server administrator to install the module.\n<\/pre>\n<p>\u7fa4\u6656\u7684DSM6.2\u540c\u65f6\u652f\u6301PHP7.0\u548cPHP5.6\uff0c\u6839\u636e\u4f60\u8981\u4f7f\u7528\u7684\u7248\u672c\uff0c\u76f8\u5bf9\u5e94\u7684\u66f4\u6539\u4e00\u4e0b\u7248\u672c\u6570\u5b57\u5c31\u53ef\u4ee5\u4e86\u3002<\/p>\n<h3>\u67e5\u770bPHP\u76f8\u5173\u53c2\u6570\u548c\u914d\u7f6e<\/h3>\n<pre class=\"\">php --ini<\/pre>\n<h3>\u7f16\u8f91PHP config<\/h3>\n<pre class=\"\">sudo vi \/usr\/local\/etc\/php70\/php.ini<\/pre>\n<h3>\u66ff\u6362php module\u7684\u6b63\u786e\u8def\u5f84\u53ca\u6dfb\u52a0\u9700\u8981\u6fc0\u6d3b\u7684Modules<\/h3>\n<h4>For PHP7.0<\/h4>\n<pre class=\"\">#\u66f4\u6539\nextension_dir = \"\/usr\/local\/lib\/php70\/modules\"\n#\u4e3a\uff08ITGeeker\u6280\u672f\u5947\u5ba2\u63d0\u9192\u4f60\u68c0\u67e5\u60a8\u7cfb\u7edf\u7684\u6b63\u786e\u8def\u5f84\uff09\nextension_dir = \"\/volume1\/@appstore\/PHP7.0\/usr\/local\/lib\/php70\/modules\"\n#\u6dfb\u52a0modules\nextension =  posix.so\nextension =  zip.so\nextension =  openssl.so<\/pre>\n<h4>For PHP5.6<\/h4>\n<pre class=\"\">#\u66f4\u6539\nextension_dir = \"\/usr\/local\/lib\/php56\/modules\"\n#\u4e3a\uff08ITGeeker\u6280\u672f\u5947\u5ba2\u63d0\u9192\u4f60\u68c0\u67e5\u60a8\u7cfb\u7edf\u7684\u6b63\u786e\u8def\u5f84\uff09\nextension_dir = \"\/volume1\/@appstore\/PHP5.6\/usr\/local\/lib\/php56\/modules\"\n#\u6dfb\u52a0modules\nextension =  posix.so\nextension =  zip.so\nextension =  openssl.so<\/pre>\n<p>\u63a5\u4e0b\u6765\u5c31\u662f\u7528occ\u89e3\u51b3nextcloud14\u5347\u7ea7\u540e\u7684\u9519\u8bef\uff1a<\/p>\n<pre class=\"lang:default decode:true\">\t\nsudo -u http php70 occ db:add-missing-indices<\/pre>\n<p>\u5b8c\u7f8e\u89e3\u51b3\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7528\u7fa4\u6656Synology\u5b89\u88c5\u4e86\u79c1\u6709\u4e91\u670d\u52a1Nextcloud\uff0c\u4f46\u5347\u7ea7\u7684\u65f6\u5019\u59cb\u7ec8\u78b0\u5230\u7f3a\u5c11pho module\u7684\u95ee\u9898\uff0c\u5c3d\u7ba1\u4f60\u5df2\u7ecf\u5728web station\u5f53\u4e2d\u6253\u52fe\u4e86\u76f8\u5173\u7684modules\uff0c\u8fd8\u662f\u4f1a\u63d0\u793a\u7f3a\u5c11\u76f8\u5173\u6a21\u5757\u3002<\/p>\n","protected":false},"author":1,"featured_media":420,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"emotion":"","emotion_color":"","title_style":"","license":"","footnotes":""},"categories":[4],"tags":[12],"class_list":["post-629","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-internet","tag-12"],"_links":{"self":[{"href":"https:\/\/lox.im\/index.php\/wp-json\/wp\/v2\/posts\/629","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lox.im\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lox.im\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lox.im\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lox.im\/index.php\/wp-json\/wp\/v2\/comments?post=629"}],"version-history":[{"count":0,"href":"https:\/\/lox.im\/index.php\/wp-json\/wp\/v2\/posts\/629\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lox.im\/index.php\/wp-json\/wp\/v2\/media\/420"}],"wp:attachment":[{"href":"https:\/\/lox.im\/index.php\/wp-json\/wp\/v2\/media?parent=629"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lox.im\/index.php\/wp-json\/wp\/v2\/categories?post=629"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lox.im\/index.php\/wp-json\/wp\/v2\/tags?post=629"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}