{"id":141,"date":"2022-01-13T10:44:00","date_gmt":"2022-01-13T02:44:00","guid":{"rendered":"https:\/\/www.nickyoo7.com\/?p=141"},"modified":"2022-01-13T10:58:25","modified_gmt":"2022-01-13T02:58:25","slug":"%e5%a6%82%e4%bd%95%e5%9c%a8-dsm-7-0-%e6%88%96%e4%bb%a5%e4%b8%8a%e7%89%88%e6%9c%ac%e5%ae%89%e8%a3%9d-php-pear%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/www.nickyoo7.com\/?p=141","title":{"rendered":"\u5982\u4f55\u5728 DSM 7.0 \u6216\u4ee5\u4e0a\u7248\u672c\u5b89\u88dd PHP PEAR\uff1f"},"content":{"rendered":"<h3>\u5b89\u88dd PHP PEAR<\/h3>\n<p>1.\u900f\u904e SSH \u4ee5 root \u6b0a\u9650\u767b\u5165 DSM (\u8acb\u53c3\u95b1<a href=\"https:\/\/kb.synology.com\/knowledgebase\/DSM\/tutorial\/General_Setup\/How_to_login_to_DSM_with_root_permission_via_SSH_Telnet\" target=\"_blank\" rel=\"noopener\">\u6b64\u6587\u7ae0<\/a>\uff0c\u4ee5\u4e86\u89e3\u8a73\u7d30\u6b65\u9a5f)\u3002<br \/>\n2.\u4f7f\u7528 <b>wget<\/b>\u00a0\u6307\u4ee4\u4f86\u4e0b\u8f09\u00a0<b>go-pear.phar<\/b> \u6a94\u6848\uff1a<br \/>\n<code class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">wget https:\/\/pear.php.net\/go-pear.phar<\/code><!--more--><\/p>\n<p>3.\u85c9\u7531\u60a8\u7684 PHP \u5957\u4ef6\u4f86\u57f7\u884c <b>go-pear.phar<\/b>\u00a0\u6a94\u6848\u3002\u4e0b\u65b9\u6307\u4ee4\u4ee5 PHP 7.3 \u70ba\u4f8b\uff1a<br \/>\n<code class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">sudo PHP_PEAR_PHP_BIN=\/usr\/local\/bin\/php73 php73 go-pear.phar<\/code><\/p>\n<p>4.\u6309\u7167\u87a2\u5e55\u4e0a\u7684\u6307\u793a\u4f86\u5b89\u88dd\u3002\u5efa\u8b70\u5c07\u00a0<b>PHP code directory<\/b> (PHP \u7a0b\u5f0f\u78bc\u76ee\u9304)\u53ca\u00a0<b>Data directory<\/b>\u00a0(\u8cc7\u6599\u76ee\u9304) \u5132\u5b58\u81f3\u5171\u7528\u8cc7\u6599\u593e\uff0c\u4ee5\u78ba\u4fdd\u6a94\u6848\u53ef\u900f\u904e DSM \u5099\u4efd\u53ca\u9084\u539f\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\" data-enlighter-theme=\"classic\">Below is a suggested file layout for your new PEAR installation.To change individual locations, type the number in front of the directory.Type 'all' to change all of them or simply press Enter to accept these locations.\r\n\r\n1.Installation base ($prefix)-------------------:\/usr\/local\r\n2.Temporary directory for processing------------:\/tmp\/pear\/install\r\n3.Temporary directory for downloads-------------:\/tmp\/pear\/install\r\n4.Binaries directory----------------------------:\/usr\/local\/bin\r\n5. PHP code directory ($php_dir)---------------------------: \/usr\/local\/share\/pear\r\n6.Documentation directory-----------------------:\/usr\/local\/docs\r\n7. Data directory------------------------------------------: \/usr\/local\/data\r\n8.User-modifiable configuration files directory-:\/usr\/local\/cfg\r\n9.Public Web Files directory--------------------:\/usr\/local\/www\r\n10.System manual pages directory----------------:\/usr\/local\/man\r\n11.Tests directory------------------------------:\/usr\/local\/tests\r\n12.Name of configuration file-------------------:\/usr\/local\/etc\/php73\/pear.conf\r\n1-12, 'all' or Enter to continue:<\/pre>\n<p>5.\u7576\u756b\u9762\u8df3\u51fa\u4e0b\u65b9\u8a0a\u606f\uff0c\u78ba\u8a8d\u662f\u5426\u4fee\u6539\u00a0<b>php.ini<\/b>\u00a0\u6a94\u6848\u6642\uff0c\u8f38\u5165\u300cN\u300d\u3002<br \/>\n<code class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">Would you like to alter php.ini &lt;\/usr\/local\/etc\/php73\/cli\/php.ini&gt;?<\/code><\/p>\n<p>6.\u6309\u4e00\u4e0b Enter \u9375\u3002<br \/>\n7.PHP PEAR \u5df2\u5b89\u88dd\u81f3\u60a8\u7684 DSM<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>https:\/\/kb.synology.com\/zh-hk\/DSM\/tutorial\/How_to_install_PEAR_on_DSM7<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5b89\u88dd PHP PEAR 1.\u900f\u904e SSH \u4ee5 root \u6b0a\u9650\u767b\u5165 DSM (\u8acb\u53c3\u95b1\u6b64\u6587\u7ae0\uff0c\u4ee5\u4e86\u89e3\u8a73\u7d30\u6b65\u9a5f)\u3002  &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.nickyoo7.com\/?p=141\" class=\"more-link\">\u95b1\u8b80\u5168\u6587<span class=\"screen-reader-text\">\u3008\u5982\u4f55\u5728 DSM 7.0 \u6216\u4ee5\u4e0a\u7248\u672c\u5b89\u88dd PHP PEAR\uff1f\u3009<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-141","post","type-post","status-publish","format-standard","hentry","category-php","entry"],"_links":{"self":[{"href":"https:\/\/www.nickyoo7.com\/index.php?rest_route=\/wp\/v2\/posts\/141","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.nickyoo7.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.nickyoo7.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.nickyoo7.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.nickyoo7.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=141"}],"version-history":[{"count":5,"href":"https:\/\/www.nickyoo7.com\/index.php?rest_route=\/wp\/v2\/posts\/141\/revisions"}],"predecessor-version":[{"id":146,"href":"https:\/\/www.nickyoo7.com\/index.php?rest_route=\/wp\/v2\/posts\/141\/revisions\/146"}],"wp:attachment":[{"href":"https:\/\/www.nickyoo7.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=141"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.nickyoo7.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=141"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.nickyoo7.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=141"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}