{"id":400,"date":"2019-11-05T03:09:48","date_gmt":"2019-11-04T19:09:48","guid":{"rendered":"http:\/\/blog.cyszys.com\/?p=400"},"modified":"2020-10-31T10:59:22","modified_gmt":"2020-10-31T02:59:22","slug":"%e5%8d%87%e7%ba%a7%e4%bd%a0%e7%9a%84owncloud%e5%88%b010-3-0","status":"publish","type":"post","link":"http:\/\/blog.cyszys.com\/?p=400","title":{"rendered":"\u5347\u7ea7\u4f60\u7684OwnCloud\u523010.3.0"},"content":{"rendered":"<p>OwnCloud-10.3.0\u7248\u672c\u517c\u5bb9\u7684\u6700\u9ad8\u7248\u672c\u4e3aphp-7.2.xx\uff0c\u522b\u542cOwnCloud\u5b98\u65b9\u6587\u6863\u5ffd\u60a0\u4f60\uff0c\u7ecf\u6d4b\u8bd5php7.3\u7248\u672c\u6839\u672c\u4e0d\u88ab\u517c\u5bb9\u3002<\/p>\n<h2><br><strong>\u7f16\u8bd1\u5b89\u88c5php-7.2.24 <\/strong><\/h2>\n<p>php\u7684\u4f9d\u8d56\u5305\u81ea\u884c\u67e5\u6587\u6863\u5427\u3002\u3002<\/p>\n<pre class=\"brush:bash\">.\/configure --prefix=\/usr\/local\/php-7.2.24 \\<br>--with-config-file-path=\/usr\/local\/php-7.2.24\/etc \\<br>--with-mysql=mysqlnd --with-mysqli=mysqlnd \\<br>--with-pdo-mysql=mysqlnd \\<br>--with-gd --with-png-dir=\/usr\/local\/libpng \\<br>--with-jpeg-dir=\/usr\/local\/jpeg \\<br>--with-freetype-dir=\/usr\/local\/freetype \\<br>--with-xpm-dir=\/usr\/ \\<br>--with-vpx-dir=\/usr\/local\/libvpx\/ \\<br>--with-t1lib=\/usr\/local\/t1lib \\<br>--with-iconv --with-openssl --with-xmlrpc \\<br>--without-pear --with-gettext --with-mcrypt \\<br>--with-curl --with-icu-dir=\/usr --with-pdo-sqlite \\<br>--with-pdo-pgsql --with-mhash --with-sqlite3 \\<br>--with-sqlite --with-bz2 \\<br>--with-mysql-sock=\/DATA\/MySQL-DATA\/mysql.sock \\<br>--with-mssql --with-imap --with-imap-ssl \\<br>--with-ldap --with-xsl --with-gdbm --with-kerberos \\<br>--enable-sysvsem --enable-sysvshm --enable-exif \\<br>--enable-wddx --enable-ctype --enable-intl \\<br>--enable-phar --enable-fileinfo --enable-session \\<br>--enable-zip --with-libzip --enable-soap --enable-pcntl \\<br>--enable-sockets --enable-libxml --enable-xml --enable-zlib \\<br>--enable-bcmath --enable-shmop --enable-inline-optimization \\<br>--enable-opcache --enable-mbregex --enable-fpm \\<br>--enable-mbstring --enable-ftp --enable-gd-native-ttf \\<br>--enable-calendar --disable-sigchild --disable-debug \\<br>--with-zlib<\/pre>\n<p>\u4e0a\u9762\u8fd9\u4e2aconfigure\u4e32\u4e2d\u7684\u67d0\u4e9b\u7f16\u8bd1\u9879\u76ee\u5462\uff0c\u5f88\u53ef\u80fd\u4f1a\u88ab\u63d0\u793a\u672a\u77e5\uff0c\u4f9d\u6211\u770b\u4e0d\u7528\u6284\u7406\u4ed6\u5b83\uff0c\u53ea\u8981make\u7ed3\u679c\u4e0d\u7f3a\u5c11\u4f9d\u8d56LIB\u5c31\u884c\u3002 \u53e6\u5916\uff0cPHP\u5b98\u65b9\u5efa\u8bae\u5728make\u4e4b\u540e\u4f7f\u7528make test\u6307\u4ee4\u5bf9\u7f16\u8bd1\u7ed3\u679c\u8fdb\u884c\u6d4b\u8bd5\u4ee5\u514d\u51fa\u73b0bug\uff0c\u8fd9\u7eaf\u5c5eTMDXJB\u626fD\u2014\u2014\u4e2b\u7684PHP\u8fd9\u4e2a\u70c2\u73a9\u610f\u513f\u672c\u6765\u5c31bug\u4e00\u5927\u5806\uff0c\u800c\u4e14\u4e0d\u53ef\u907f\u514d\uff0c\u8981\u662f\u54ea\u5929\u52b3\u8d44\u5fc3\u60c5\u4e0d\u597d\u7ea0\u7ed3\u75c5\u72af\u4e86+\u753b\u86c7\u6dfb\u8db3\u7684run\u4e86make test\u9a8c\u8bc1\u540e\u53d1\u73b0\u7f16\u8bd1\u7ed3\u679c\u6ca1\u6709\u5b58\u5728\u81f4\u547dbug\uff0c\u90a3\u8001\u5b50\u4f1a\u7acb\u523b\u6000\u7591\u4eba\u751f-_-!... \u00a0SO\uff0c\u5c11\u5e74\uff0c\u4e0d\u7528\u6015JB\u5565\uff0c\u76f4\u63a5make install\u5427\uff01<\/p>\n<h2>\u5347\u7ea7\u51c6\u5907<\/h2>\n<pre class=\"brush:other\">\u5907\u4efd\u6570\u636e\u5e93\nmysqldump -u username -p password owncloud_dbname > dump_filename\n\n\u628a\u8001\u7684OwnCloud\u76ee\u5f55\u6539\u540d\nmv \/OwnCloud \/OwnCloud-old\n\n\u89e3\u538b\u65b0\u7248\u672c\u5230\u5b89\u88c5\u76ee\u5f55\ntar zxf owncloud-10.3.0.tgz -C \/OwnCloud\n\n\u62f7\u8d1d\u8001\u7248\u672c\u7684config.php\u6587\u4ef6\u9053\u65b0\u7248\u672c\u76ee\u5f55\u4e2d\ncp \/OwnCloud-old\/config\/config.php \/OwnCloud\/config\/\n\n\u62f7\u8d1d\u6216\u79fb\u52a8data\u76ee\u5f55\u5230\u65b0\u7248\u672c\u76ee\u5f55\u4e2d\nmv \/OwnCloud-old\/data \/OwnCloud\/\n\n\u8d4b\u6743\nchown -R nobody.nobody \/OwnCloud<\/pre>\n<h2>\u5347\u7ea7\u8fc7\u7a0b\uff08\u91cd\u8981\uff01\uff09<\/h2>\n<p>\u5347\u7ea7\u8fc7\u7a0b\u7528root\u8d26\u6237\u5c31\u53ef\u4ee5\u4e86<\/p>\n<pre class=\"brush:bash\">\u68c0\u67e5mysql\u670d\u52a1\uff0c\u5fc5\u987b\u8fd0\u884c <br>ps -ef |grep mysql<br><br>\u8fdb\u5165\u65b0\u7248\u672c\u7684\u76ee\u5f55\n# cd \/OwnCloud\n\n\u6307\u5b9anginx\u548cphp\u7684\u8fd0\u884c\u8d26\u6237\u6267\u884cocc\u5de5\u5177\u8fdb\u5165owncloud\u7ef4\u62a4\u6a21\u5f0f\nsudo -u nobody php occ maintenance:mode --on\n\n\u6307\u5411\u4e0b\u9762\u7684\u6307\u4ee4\u5173\u6389\u67d0\u4e2a\u4f1a\u62a5\u9519\u7684\u4e1c\u4e1c\uff0c\u56e0\u4e3a\u5347\u7ea7\u8fc7\u7a0b\u4e2d\u4ed6\u4f1a\u62a5\u9519\uff0c\u522b\u95ee\u6211\u62a5\u7684\u5565\u9519\u8bef\uff0c\u6211\u4e5f\u4e0d\u6e05\u695a\u3002 <br>sudo -u nobody php occ \u00a0app:disable files_videoplayer\n<br>\u6267\u884c\u5347\u7ea7 \nsudo -u nobody php occ upgrade\n\u5982\u679c\u6ca1\u6709\u62a5\u9519\u5c31\u7b97\u5347\u7ea7\u5b8c\u4e86\u3002\n\n\u518d\u628a\u90a3\u4e2a\u5173\u6389\u7684\u90a3\u4e2a\u4e1c\u4e1c\u6253\u5f00 \nsudo -u nobody php occ \u00a0app:enable files_videoplayer\n\n\u6307\u5b9anginx\u548cphp\u7684\u8fd0\u884c\u8d26\u6237\u6267\u884cocc\u5de5\u5177\u9000\u51faowncloud\u7ef4\u62a4\u6a21\u5f0f \nsudo -u nobody php occ maintenance:mode --off\n\n\u542f\u52a8php \u548c httpd\u670d\u52a1 \nservice php-fpm start\n\/usr\/lcoal\/nginx\/sbin\/nginx<\/pre>\n<p>\u6253\u5b8c\u6536\u5de5\uff01<\/p>","protected":false},"excerpt":{"rendered":"<p>OwnCloud-10.3.0\u7248\u672c\u517c\u5bb9\u7684\u6700\u9ad8\u7248\u672c\u4e3aphp-7.2.xx\uff0c\u522b\u542cOwnCloud\u5b98\u65b9\u6587\u6863\u5ffd\u60a0\u4f60\uff0c\u7ecf [&hellip;]<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,70],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"http:\/\/blog.cyszys.com\/index.php?rest_route=\/wp\/v2\/posts\/400"}],"collection":[{"href":"http:\/\/blog.cyszys.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.cyszys.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.cyszys.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.cyszys.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=400"}],"version-history":[{"count":7,"href":"http:\/\/blog.cyszys.com\/index.php?rest_route=\/wp\/v2\/posts\/400\/revisions"}],"predecessor-version":[{"id":412,"href":"http:\/\/blog.cyszys.com\/index.php?rest_route=\/wp\/v2\/posts\/400\/revisions\/412"}],"wp:attachment":[{"href":"http:\/\/blog.cyszys.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=400"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.cyszys.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=400"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.cyszys.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=400"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}