{"id":334231,"date":"2022-06-09T03:00:17","date_gmt":"2022-06-09T03:00:17","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=334231"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=334231","title":{"rendered":"<span>\u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 Dropbox \u043d\u0430 ownCloud. \u0420\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0435 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u0441\u043e \u0441\u043c\u0430\u0440\u0442\u0444\u043e\u043d\u0430. \u0421\u0435\u0440\u0432\u0435\u0440\u043d\u0430\u044f \u0447\u0430\u0441\u0442\u044c<\/span>"},"content":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-1\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/post_images\/18b\/911\/8ca\/18b9118cafda05ac1ca13371e9242f8f.png\" alt=\"image\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/18b\/911\/8ca\/18b9118cafda05ac1ca13371e9242f8f.png\"\/><\/p>\n<p> \u041a\u0440\u0430\u0436\u0430 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430 \u043f\u0440\u043e\u0441\u0442\u0438\u043c\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u043b\u0430 \u0437\u0430\u0434\u0443\u043c\u0430\u0442\u044c\u0441\u044f \u043d\u0430\u0434 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u044b\u043c \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0430 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0435. \u0412\u0442\u043e\u0440\u0430\u044f \u043f\u0440\u0438\u0447\u0438\u043d\u0430 \u2014 \u043d\u0430 \u0441\u0442\u0430\u0440\u043e\u043c \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0435, \u043a \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u0432\u0435\u0440\u043d\u0443\u043b\u0441\u044f, \u043d\u0430\u043a\u043e\u043f\u0438\u0442\u0435\u043b\u044c \u0432\u0441\u0435\u0433\u043e \u043d\u0430 64 \u0413\u0411, \u0447\u0430\u0441\u0442\u044c \u0435\u043c\u043a\u043e\u0441\u0442\u0438 \u0443\u0436\u0435 \u0437\u0430\u043d\u044f\u0442\u0430 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0435\u0439. \u0424\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438 \u0438 \u0432\u0438\u0434\u0435\u043e \u0431\u044b\u0441\u0442\u0440\u043e \u0437\u0430\u043f\u043e\u043b\u043d\u044f\u044e\u0442 \u0432\u0435\u0441\u044c \u043d\u0430\u043a\u043e\u043f\u0438\u0442\u0435\u043b\u044c.<\/p>\n<p> \u0420\u0443\u0447\u043d\u043e\u0435 \u043f\u0435\u0440\u0435\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u043d\u0438\u0435 \u043f\u043e USB-\u043a\u0430\u0431\u0435\u043b\u044e \u043d\u0430 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440 \u043a\u0430\u043a \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043d\u0435 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u043b\u043e\u0441\u044c. FTP \u0438 CIFS\/NFS \u2014 \u043d\u0435\u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e. \u0412\u044b\u0431\u0440\u0430\u043b <a href=\"https:\/\/owncloud.com\/\" rel=\"nofollow noopener noreferrer\">ownCloud<\/a>.<\/p>\n<ul>\n<li>\u0415\u0441\u0442\u044c \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u043e\u0442 \u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u0430.<\/li>\n<li>\u0415\u0441\u0442\u044c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438 \u043f\u043e\u0434 Ubuntu, \u0435\u0441\u0442\u044c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u043f\u043b\u0430\u0442\u043d\u044b\u0439 (\u0441\u0435\u0439\u0447\u0430\u0441 \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e) \u0438 \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u0435 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0435 \u043a\u043b\u0438\u0435\u043d\u0442\u044b.<\/li>\n<li>\u0412\u0441\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043b\u0435\u0436\u0438\u0442 \u043d\u0430 \u0432\u0430\u0448\u0435\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435\/\u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435.<\/li>\n<li>\u0415\u0441\u0442\u044c \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438, \u043a\u0430\u043a \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c \u043d\u0430 \u0440\u0443\u0441\u0441\u043a\u043e\u043c \u0438 \u043d\u0430 \u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u043e\u043c<\/li>\n<li>\u0415\u0441\u0442\u044c \u0432\u0435\u0431-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0434\u043b\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0438 \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432<\/li>\n<li>\u0415\u0441\u0442\u044c \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439. \u041c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430 \u0434\u043b\u044f \u0434\u0440\u0443\u0433\u0438\u0445 \u0436\u0438\u0442\u0435\u043b\u0435\u0439 \u043a\u0432\u0430\u0440\u0442\u0438\u0440\u044b. \u0412\u0430\u0448\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0435 \u0431\u0443\u0434\u0443\u0442 \u043f\u0443\u0442\u0430\u0442\u044c\u0441\u044f \u0441 \u0438\u0445. \u041a\u0430\u0436\u0434\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0438\u043c\u0435\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u0442\u043e\u043b\u044c\u043a\u043e \u043a \u0441\u0432\u043e\u0438\u043c \u0434\u0430\u043d\u043d\u044b\u043c. \u041d\u0443 \u043d\u0435 \u0441\u0447\u0438\u0442\u0430\u044f \u0430\u0434\u043c\u0438\u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \ud83d\ude42 <\/li>\n<\/ul>\n<p><a name=\"habracut\"><\/a>\u0415\u0441\u0442\u044c \u0434\u0432\u0430 \u043f\u0443\u0442\u0438 (\u0430 \u043c\u043e\u0436\u0435\u0442 \u0438 \u0431\u043e\u043b\u044c\u0448\u0435) \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 ownCloud. \u041f\u0440\u043e\u0441\u0442\u043e\u0439 \u2014 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Docker \u0438 \u0433\u043e\u0442\u043e\u0432\u044b\u0435 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u044b. \u041c\u043d\u0435 \u044d\u0442\u043e\u0442 \u043f\u0443\u0442\u044c \u043d\u0435 \u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f. \u041a\u043e\u0433\u0434\u0430 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u043e \u043d\u0435 \u0442\u043e\u0431\u043e\u0439, \u0442\u043e \u043d\u0435 \u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u043a\u0430\u043a \u0447\u0438\u043d\u0438\u0442\u044c, \u0435\u0441\u043b\u0438 \u0447\u0442\u043e-\u0442\u043e \u043f\u043e\u0448\u043b\u043e \u043d\u0435 \u0442\u0430\u043a. \u041d\u0430\u0434\u043e \u0434\u0443\u043c\u0430\u0442\u044c \u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u0432\u043d\u0435 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432 \u0438 \u043f\u043e\u0434\u0433\u0440\u0443\u0437\u043a\u0430 \u0438\u0445 \u043f\u043e\u0441\u043b\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f. \u041f\u0443\u0442\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440 \u0434\u043b\u0438\u043d\u043d\u0435\u0435, \u0437\u0430\u0442\u043e \u043d\u0430\u0434\u0435\u0436\u043d\u0435\u0435. \u041f\u043e\u043f\u0443\u0442\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0448\u044c \u0431\u0430\u0437\u043e\u0432\u044b\u0435 \u043d\u0430\u0432\u044b\u043a\u0438 \u043f\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u0430\u043c\u043e\u0433\u043e ownCloud, \u043d\u043e \u0442\u0430\u043a\u0436\u0435 Apache \u0438 MariaDB.\u041a\u0440\u0430\u0442\u043a\u0438\u0439 \u043f\u043b\u0430\u043d \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0442\u0430\u043a\u043e\u0439:<\/p>\n<ul>\n<li>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0445 \u043f\u0430\u043a\u0435\u0442\u043e\u0432<\/li>\n<li>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 MariaDB<\/li>\n<li>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 Apache<\/li>\n<li>\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 ownCloud<\/li>\n<li>\u0412\u044b\u0431\u043e\u0440 \u043c\u0435\u0441\u0442\u0430 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0444\u0430\u0439\u043b\u043e\u0432<\/li>\n<li>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 ownCloud<\/li>\n<li>\u041f\u043e\u0438\u0441\u043a \u0438 \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043e\u0448\u0438\u0431\u043e\u043a \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445 \u0438 \u0438\u0437 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0445 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0439<\/li>\n<\/ul>\n<p>\u0417\u0430 \u043e\u0441\u043d\u043e\u0432\u0443 \u044f \u0432\u0437\u044f\u043b \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u0441 \u0441\u0430\u0439\u0442\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0430. \u0421 \u043d\u0438\u043c\u0438 \u043d\u0435 \u0432\u0441\u0451 \u0433\u043b\u0430\u0434\u043a\u043e. \u0415\u0441\u0442\u044c <a href=\"https:\/\/doc.owncloud.com\/server\/10.10\/admin_manual\/installation\/manual_installation\/manual_installation.html\" rel=\"nofollow noopener noreferrer\">Detailed Installation Guide<\/a> \u0438 <a href=\"https:\/\/doc.owncloud.com\/server\/10.10\/admin_manual\/installation\/quick_guides\/ubuntu_20_04.html\" rel=\"nofollow noopener noreferrer\">Quick Installation Guide<\/a>. \u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0443\u043d\u043a\u0442\u044b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438\/\u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u043f\u0443\u0442\u044f\u043c\u0438 \u0438 \u0432 \u0438\u0442\u043e\u0433\u0435 \u0441 \u0440\u0430\u0437\u043d\u044b\u043c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u043c. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u043e\u0451 \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u2014 \u044d\u0442\u043e \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u044f \u044d\u0442\u0438\u0445 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0439, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u0445 \u0441\u0442\u0430\u0442\u0435\u0439. \u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0438 \u0434\u0430\u044e \u043f\u043e \u0445\u043e\u0434\u0443 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430.<\/p>\n<ol>\n<li>\u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c Apache, MariaDB, PHP, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0441\u043b\u0443\u0436\u0435\u0431\u043d\u044b\u0435 \u043f\u0430\u043a\u0435\u0442\u044b.<br \/>   <font color=\"purple\">evgeniy@owncloud-vm:~$ sudo apt update<br \/>   evgeniy@owncloud-vm:~$ sudo apt install apache2 libapache2-mod-php mariadb-server openssl redis-server wget php-imagick php-common php-curl php-gd php-gmp php-bcmath php-imap php-intl php-json php-mbstring php-mysql php-ssh2 php-xml php-zip php-apcu php-redis php-ldap php-phpseclib libsmbclient-dev php-dev php-pear\n<p>   <\/font><\/li>\n<li>\u0413\u043e\u0442\u043e\u0432\u0438\u043c\u0441\u044f \u043a \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0435\u043c PHP (PEAR): <br \/>   <font color=\"purple\">evgeniy@owncloud-vm:~$ sudo pecl channel-update pecl.php.net<br \/>  Updating channel \u00abpecl.php.net\u00bb<br \/>  Update of Channel \u00abpecl.php.net\u00bb succeeded <\/font>\n<p>  \u042f \u043d\u0435 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0441\u0442 \u0432 PHP, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0440\u0438\u0432\u0435\u0434\u0443 \u0446\u0438\u0442\u0430\u0442\u0443 \u0438\u0437 man-\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b pecl<br \/>  <font color=\"blue\">PEAR is the PHP Extension and Application Repository, found at <a href=\"http:\/\/pear.php.net\" rel=\"nofollow noopener noreferrer\">pear.php.net<\/a>.<br \/>   The pear command is used to install PEAR extensions.<br \/>   The pecl command is used to install PECL extensions.<br \/>  <\/font><br \/>  \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0430\u043f\u043a\u0443 \u0434\u043b\u044f \u043a\u044d\u0448\u0430 PEAR<br \/>  <font color=\"purple\">evgeniy@ownclowd-vm:~$ mkdir -p \/tmp\/pear\/cache<\/font><\/p>\n<\/li>\n<li>\u041d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u043b\u0438\u0440\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043e\u0442\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0435. \u042f \u0432\u043d\u0430\u0447\u0430\u043b\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432 Ubuntu 18.04. \u041d\u043e \u0432 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f\u0445 \u043a ownCloud \u0443\u043a\u0430\u0437\u0430\u043d PHP 7.4, \u0430 \u0434\u043b\u044f 18.04 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043e\u043c \u0438\u0434\u0435\u0442 7.2. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u0441\u0434\u0435\u043b\u0430\u043b do-release-update \u0434\u043b\u044f \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u0430, \u043d\u043e \u0443\u0436\u0435 \u043f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043f\u0430\u043a\u0435\u0442\u043e\u0432 (\u043f\u0443\u043d\u043a\u0442\u044b 1 \u0438 2). \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u043e\u0441\u043b\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b pecl \u0443 \u043c\u0435\u043d\u044f \u043f\u043e\u044f\u0432\u043b\u044f\u043b\u0438\u0441\u044c \u043e\u0448\u0438\u0431\u043a\u0438:<br \/>  <font color=\"purple\">\n<pre>evgeniy@owncloud-vm:~$ sudo pear channel-update pear.php.net PHP Warning:  PHP Startup: Unable to load dynamic library 'smbclient.so' (tried: \/usr\/lib\/php\/20190902\/smbclient.so (\/usr\/lib\/php\/20190902\/smbclient.so: cannot open shared object file: No such file or directory), \/usr\/lib\/php\/20190902\/smbclient.so.so (\/usr\/lib\/php\/20190902\/smbclient.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0  Notice: Trying to access array offset on value of type bool in PEAR\/REST.php on line 187 PHP Notice:  Trying to access array offset on value of type bool in \/usr\/share\/php\/PEAR\/REST.php on line 187<\/pre>\n<p><\/font>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0431\u044b\u043b\u0430 \u0440\u0435\u0448\u0435\u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043d\u0430\u0431\u043e\u0440\u043e\u043c \u043a\u043e\u043c\u0430\u043d\u0434 \u2014 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 PEAR \u0434\u043e \u0432\u0435\u0440\u0441\u0438\u0438 1.10.13 (\u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f \u0432 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438, \u0432 \u043a\u0440\u0430\u0442\u043a\u043e\u0439 \u0442\u0430\u043a\u043e\u0433\u043e \u043d\u0435\u0442) \u0438 \u043f\u0440\u0438\u043d\u0443\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u043e\u0441\u0442\u0430\u0432\u0430 \u043f\u0430\u043a\u0435\u0442\u043e\u0432 \u0438\u0437 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f:<font color=\"purple\"><\/p>\n<pre>evgeniy@owncloud-vm:~$ pear version evgeniy@owncloud-vm:~$ sudo pear upgrade --force --alldeps http:\/\/pear.php.net\/get\/PEAR-1.10.13 evgeniy@owncloud-vm:~$ sudo pear clear-cache evgeniy@owncloud-vm:~$ sudo pear update-channels evgeniy@owncloud-vm:~$ sudo pear upgrade --force evgeniy@owncloud-vm:~$ sudo pear upgrade-all evgeniy@owncloud-vm:~$ pear version<\/pre>\n<p><\/font><\/li>\n<li>\u0421\u0442\u0430\u0432\u0438\u043c \u043a\u043b\u0438\u0435\u043d\u0442 SMB \u0434\u043b\u044f PHP \u0438 \u0430\u043a\u0442\u0438\u0432\u0438\u0440\u0443\u0435\u043c \u0435\u0433\u043e<font color=\"purple\">\n<pre>evgeniy@owncloud-vm:~$ sudo pecl install smbclient-stable downloading smbclient-1.0.6.tgz ... Starting to download smbclient-1.0.6.tgz (33,207 bytes) .........done: 33,207 bytes  ....  evgeniy@test:~$ echo \"extension=smbclient.so\" | sudo tee \/etc\/php\/7.4\/mods-available\/smbclient.ini extension=smbclient.so evgeniy@owncloud-vm:~$ sudo phpenmod smbclient<\/pre>\n<p><\/font>\u041f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c Apache \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c, \u0447\u0442\u043e \u043c\u043e\u0434\u0443\u043b\u044c SMB \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d:<font color=\"purple\"><\/p>\n<pre>evgeniy@owncloud-vm:~$ sudo systemctl restart apache2 evgeniy@owncloud-vm:~$ php -m |grep smbclient<\/pre>\n<p><\/font>\u0412 \u0432\u044b\u0432\u043e\u0434\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u043c\u043e\u0434\u0443\u043b\u0438 <i>libsmbclient<\/i> \u0438 <i>smbclient<\/i>.<\/p>\n<\/li>\n<li>\u0421\u0442\u0430\u0432\u0438\u043c \u0435\u0449\u0435 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u0430\u043a\u0435\u0442\u043e\u0432<br \/>   <font color=\"purple\">evgeniy@owncloud-vm:~$ sudo apt install unzip bzip2 rsync curl jq inetutils-ping ldap-utils smbclient<\/font>\n<\/li>\n<li>\u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e IP-\u0430\u0434\u0440\u0435\u0441, \u043f\u0440\u0438\u0434\u0443\u043c\u044b\u0432\u0430\u0435\u043c \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u0434\u043e\u043c\u0435\u043d\u043d\u043e\u0435 \u0438\u043c\u044f (FQDN) \u0441\u0435\u0440\u0432\u0435\u0440\u0430<font color=\"purple\">\n<pre>evgeniy@owncloud-vm:~$ my_ip=$(hostname -I|cut -f1 -d ' ') evgeniy@owncloud-vm:~$ my_domain=\"test.owncloud.local\"<\/pre>\n<p><\/font> \u041c\u0435\u043d\u044f\u0435\u043c \u0438\u043c\u044f \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043d\u0430 \u0442\u043e, \u0447\u0442\u043e \u043c\u044b \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u043b\u0438 \u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e <i>my_domain<\/i><font color=\"purple\"><\/p>\n<pre>evgeniy@owncloud-vm:~$ hostnamectl -f owncloud-vm evgeniy@owncloud-vm:~$ sudo hostnamectl set-hostname $my_domain evgeniy@owncloud-vm:~$ hostname -f test.owncloud.local<\/pre>\n<p><\/font>  <\/li>\n<li> \u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c MariaDB. \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u00ab\u041c\u0430\u0441\u0442\u0435\u0440 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438\u00bb. \u042f \u0434\u0430\u043b \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043e\u0442\u0432\u0435\u0442\u044b \u043d\u0430 \u0435\u0433\u043e \u0432\u043e\u043f\u0440\u043e\u0441\u044b:<font color=\"purple\">\n<pre>evgeniy@test:~$ sudo mysql_secure_installation  NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB       SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!  In order to log into MariaDB to secure it, we'll need the current password for the root user.  If you've just installed MariaDB, and you haven't set the root password yet, the password will be blank, so you should just press enter here.  Enter current password for root (enter for none): OK, successfully used password, moving on...  Setting the root password ensures that nobody can log into the MariaDB root user without the proper authorisation.  Set root password? [Y\/n] y New password:&lt;\u043f\u0430\u0440\u043e\u043b\u044c \u0434\u043b\u044f root> Re-enter new password:&lt;\u043f\u0430\u0440\u043e\u043b\u044c \u0434\u043b\u044f root> Password updated successfully! Reloading privilege tables..  ... Success!   By default, a MariaDB installation has an anonymous user, allowing anyone to log into MariaDB without having to have a user account created for them.  This is intended only for testing, and to make the installation go a bit smoother.  You should remove them before moving into a production environment.  Remove anonymous users? [Y\/n] n  ... skipping.  Normally, root should only be allowed to connect from 'localhost'.  This ensures that someone cannot guess at the root password from the network.  Disallow root login remotely? [Y\/n]  ... Success!  By default, MariaDB comes with a database named 'test' that anyone can access.  This is also intended only for testing, and should be removed before moving into a production environment.  Remove test database and access to it? [Y\/n]  - Dropping test database...  ... Success!  - Removing privileges on test database...  ... Success!  Reloading the privilege tables will ensure that all changes made so far will take effect immediately.  Reload privilege tables now? [Y\/n]  ... Success!  Cleaning up...  All done!  If you've completed all of the above steps, your MariaDB installation should now be secure.  Thanks for using MariaDB!<\/pre>\n<p><\/font>\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0432\u0435\u0440\u0441\u0438\u044e, \u043d\u0443 \u0438 \u0447\u0442\u043e \u0435\u0441\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u043a\u043e\u043d\u0441\u043e\u043b\u0438 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430<font color=\"purple\"><\/p>\n<pre>evgeniy@test:~$ mysqladmin -u root -p version Enter password: mysqladmin  Ver 9.1 Distrib 10.3.34-MariaDB, for debian-linux-gnu on x86_64 Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.  Server version          10.3.34-MariaDB-0ubuntu0.20.04.1 Protocol version        10 Connection              Localhost via UNIX socket UNIX socket             \/var\/run\/mysqld\/mysqld.sock Uptime:                 1 hour 34 min 35 sec  Threads: 6  Questions: 74  Slow queries: 0  Opens: 33  Flush tables: 1  Open tables: 26  Queries per second avg: 0.013<\/pre>\n<p><\/font>\u041a\u0430\u043a\u0430\u044f \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430. \u0423 \u043c\u0435\u043d\u044f \u044d\u0442\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0432\u044b\u0434\u0430\u0432\u0430\u043b\u0430 \u043e\u0448\u0438\u0431\u043a\u0443 \u0434\u043e\u0441\u0442\u0443\u043f\u0430. \u0415\u0441\u043b\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0435\u0435 \u0441 sudo, \u0442\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0430 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e. \u0410\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u0430\u044f \u0438\u0441\u0442\u043e\u0440\u0438\u044f \u0431\u044b\u043b\u0430 \u0441 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 <code>\"mysql -u root\"<\/code><br \/>  \u042d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043d\u0430\u0431\u043e\u0440\u043e\u043c \u043a\u043e\u043c\u0430\u043d\u0434:<br \/>  <font color=\"purple\"><\/p>\n<pre>evgeniy@test:~$ sudo mysql -u root [mysql] use mysql; [mysql] update user set plugin='' where User='root'; [mysql] flush privileges; [mysql] \\q<\/pre>\n<p><\/font>\u041a\u043e\u043c\u0430\u043d\u0434\u0430 \u0438\u0437 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u043a ownCloud<br \/>  <font color=\"purple\">evgeniy@test:~$ sudo sed -i &#171;\/\\[mysqld\\]\/atransaction-isolation = READ-COMMITTED\\nperformance_schema = on&#187; \/etc\/mysql\/mariadb.conf.d\/50-server.cnf<\/font><\/p>\n<p>  \u041f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0441\u0435\u0440\u0432\u0435\u0440 \u0411\u0414 \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0435\u0433\u043e \u0441\u0442\u0430\u0442\u0443\u0441:<font color=\"purple\"><\/p>\n<pre>evgeniy@test:~$ sudo systemctl restart mariadb evgeniy@test:~$ sudo systemctl status mariadb \u25cf mariadb.service - MariaDB 10.3.34 database server      Loaded: loaded (\/lib\/systemd\/system\/mariadb.service; enabled; vendor preset: enabled)      Active: active (running) since Sun 2022-06-05 00:03:15 MSK; 31s ago        Docs: man:mysqld(8)              https:\/\/mariadb.com\/kb\/en\/library\/systemd\/     Process: 1253 ExecStartPre=\/usr\/bin\/install -m 755 -o mysql -g root -d \/var\/run\/mysqld (code=exited, status=0\/SUCCESS)     Process: 1264 ExecStartPre=\/bin\/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0\/SUCCESS)     Process: 1266 ExecStartPre=\/bin\/sh -c [ ! -e \/usr\/bin\/galera_recovery ] &amp;&amp; VAR= ||   VAR=`cd \/usr\/bin\/..; \/usr\/bin\/galera_recovery`; [ $? -eq 0 ]   &amp;>     Process: 1350 ExecStartPost=\/bin\/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0\/SUCCESS)     Process: 1352 ExecStartPost=\/etc\/mysql\/debian-start (code=exited, status=0\/SUCCESS)    Main PID: 1319 (mysqld)      Status: \"Taking your SQL requests now...\"       Tasks: 31 (limit: 1103)      Memory: 168.2M      CGroup: \/system.slice\/mariadb.service              \u2514\u25001319 \/usr\/sbin\/mysqld  Jun 05 00:03:15 test.owncloud.local systemd[1]: Started MariaDB 10.3.34 database server. Jun 05 00:03:15 test.owncloud.local \/etc\/mysql\/debian-start[1354]: Upgrading MySQL tables if necessary. Jun 05 00:03:15 test.owncloud.local \/etc\/mysql\/debian-start[1357]: \/usr\/bin\/mysql_upgrade: the '--basedir' option is always ignored Jun 05 00:03:15 test.owncloud.local \/etc\/mysql\/debian-start[1357]: Looking for 'mysql' as: \/usr\/bin\/mysql Jun 05 00:03:15 test.owncloud.local \/etc\/mysql\/debian-start[1357]: Looking for 'mysqlcheck' as: \/usr\/bin\/mysqlcheck Jun 05 00:03:15 test.owncloud.local \/etc\/mysql\/debian-start[1357]: This installation of MariaDB is already upgraded to 10.3.34-MariaDB. Jun 05 00:03:15 test.owncloud.local \/etc\/mysql\/debian-start[1357]: There is no need to run mysql_upgrade again for 10.3.34-MariaDB. Jun 05 00:03:15 test.owncloud.local \/etc\/mysql\/debian-start[1357]: You can use --force if you still want to run mysql_upgrade Jun 05 00:03:15 test.owncloud.local \/etc\/mysql\/debian-start[1365]: Checking for insecure root accounts. Jun 05 00:03:15 test.owncloud.local \/etc\/mysql\/debian-start[1369]: Triggering myisam-recover for all MyISAM tables and aria-recover for all Aria tables lines 1-27\/27 (END)<\/pre>\n<p><\/font><br \/>  C \u044d\u0442\u0438\u043c \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u043b\u0438\u0441\u044c. \u0418\u0434\u0435\u043c \u0434\u0430\u043b\u044c\u0448\u0435  <\/li>\n<li>\u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c Apache. \u0412\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u043c\u043e\u0434\u0443\u043b\u0438:<br \/>  <font color=\"purple\">evgeniy@test:~$ sudo a2enmod rewrite headers env dir mime unique_id ssl<\/font>\n<p>  \u0414\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u043b \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u043c\u043d\u043e\u044e \u043a\u043b\u0438\u0435\u043d\u0442, \u0434\u0430 \u0438 \u0432\u043e\u043e\u0431\u0449\u0435 \u0434\u043b\u044f \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438, \u043d\u0443\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b HTTPS. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0430\u0434\u043e \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043b\u044e\u0447\u0438 \u0434\u043b\u044f SSL. \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e \u0434\u043b\u044f \u043a\u043b\u044e\u0447\u0435\u0439, \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0432 \u043d\u0435\u0435 \u0438 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u043c \u043a\u043b\u044e\u0447\u0438. \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 Common Name \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0434\u043e\u043c\u0435\u043d\u043d\u043e\u0435 \u0438\u043c\u044f \u0441\u0435\u0440\u0432\u0435\u0440\u0430 (FQDN), \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043c\u044b \u0441\u043e\u0437\u0434\u0430\u043b\u0438 \u0432 \u043f\u0443\u043d\u043a\u0442\u0435 6. \u0432 \u043c\u043e\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044d\u0442\u043e \u00abtest.owncloud.local\u00bb<font color=\"purple\"><\/p>\n<pre>evgeniy@test:~$ sudo mkdir \/etc\/apache2\/certificate evgeniy@test:~$ cd \/etc\/apache2\/certificate\/ evgeniy@test:\/etc\/apache2\/certificate$ sudo openssl req -new -newkey rsa:4096 -x509 -sha256 -days 365 -nodes -out apache-certificate.crt -keyout apache.key Generating a RSA private key .............................................++++ .................++++ writing new private key to 'apache.key' ----- You are about to be asked to enter information that will be incorporated into your certificate request. What you are about to enter is what is called a Distinguished Name or a DN. There are quite a few fields but you can leave some blank For some fields there will be a default value, If you enter '.', the field will be left blank. ----- Country Name (2 letter code) [AU]:RU State or Province Name (full name) [Some-State]:Moscow Locality Name (eg, city) []:Moscow Organization Name (eg, company) [Internet Widgits Pty Ltd]:Home Organizational Unit Name (eg, section) []: Common Name (e.g. server FQDN or YOUR name) []:test.owncloud.local Email Address []:<\/pre>\n<p><\/font>  <\/li>\n<li>\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0444\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u043d\u0430\u0448\u0435\u0439 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 \u0432 Apache:<font color=\"purple\">\n<pre>evgeniy@test:~$ sudo vim \/etc\/apache2\/sites-available\/owncloud.conf<\/pre>\n<p><\/font>\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u044f:<font color=\"purple\"><\/p>\n<pre>Alias \/owncloud \"\/var\/www\/owncloud\" &lt;Directory \/var\/www\/owncloud>   Options +FollowSymlinks   AllowOverride All   Require all granted   Satisfy Any  &lt;IfModule mod_dav.c>   Dav off  &lt;\/IfModule> &lt;\/Directory><\/pre>\n<p><\/font>\u0410\u043a\u0442\u0438\u0432\u0438\u0440\u0443\u0435\u043c \u0435\u0435:<font color=\"purple\"><\/p>\n<pre>evgeniy@test:~$ sudo a2ensite owncloud.conf Enabling site owncloud. To activate the new configuration, you need to run:   systemctl reload apache2<\/pre>\n<p><\/font><\/li>\n<li>\u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c Apache \u043d\u0430 \u0440\u0430\u0431\u043e\u0442\u0443 \u0441 HTTPS. \u041f\u0440\u0438 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0438 \u043f\u043e \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0443 HTTP (\u043f\u043e\u0440\u0442 80) \u043a\u043b\u0438\u0435\u043d\u0442 \u0431\u0443\u0434\u0435\u0442 \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u043d\u0430 \u043f\u043e\u0440\u0442 HTTPS (443). \u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c \u0444\u0430\u0439\u043b 000-default.conf <font color=\"purple\">\n<pre>evgeniy@test:~$ sudo vim \/etc\/apache2\/sites-available\/000-default.conf<\/pre>\n<p><\/font>\u0421\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435 \u0442\u0430\u043a\u043e\u0435:<font color=\"purple\"><\/p>\n<pre> &lt;VirtualHost *:80>         RewriteEngine On         RewriteCond %{HTTPS} !=on         RewriteRule ^\/?(.*) https:\/\/%{SERVER_NAME}\/$1 [R=301,L] &lt;\/virtualhost> &lt;VirtualHost *:443>         ServerAdmin webmaster@localhost         DocumentRoot \/var\/www\/html         ErrorLog ${APACHE_LOG_DIR}\/error.log         CustomLog ${APACHE_LOG_DIR}\/access.log combined         SSLEngine on         SSLCertificateFile \/etc\/apache2\/certificate\/apache-certificate.crt         SSLCertificateKeyFile \/etc\/apache2\/certificate\/apache.key &lt;\/VirtualHost><\/pre>\n<p><\/font>\u0410\u043a\u0442\u0438\u0432\u0438\u0440\u0443\u0435\u043c:<font color=\"purple\"><\/p>\n<pre>evgeniy@test:~$ sudo a2ensite 000-default.conf Enabling site 000-default. To activate the new configuration, you need to run:   systemctl reload apache2<\/pre>\n<p><\/font>\u041f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c Apache:<br \/>  <font color=\"purple\">evgeniy@test:~$ sudo systemctl restart apache2<\/font>   <\/li>\n<li>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0441\u0430\u043c\u043e\u0433\u043e ownCloud. \u042f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u0438 \u0440\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u043a\u0443 \u0430\u0440\u0445\u0438\u0432\u0430. \u0422\u0430\u043a \u0438\u0441\u0442\u043e\u0440\u0438\u0447\u0435\u0441\u043a\u0438 \u0441\u043b\u043e\u0436\u0438\u043b\u043e\u0441\u044c. \u041d\u043e \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0433\u043e\u0442\u043e\u0432\u044b\u0435 \u043f\u0430\u043a\u0435\u0442\u044b. \u0418\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f, \u043a\u0430\u043a \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 <a href=\"https:\/\/software.opensuse.org\/\/download.html?project=isv%3AownCloud%3Aserver%3A10&amp;amp;package=owncloud-complete-files\" rel=\"nofollow noopener noreferrer\">\u0442\u0443\u0442<\/a>. \u0421\u0442\u0430\u0432\u0438\u0442\u044c \u043d\u0430\u0434\u043e \u043f\u0430\u043a\u0435\u0442 <i>owncloud-complete-files<\/i>.\n<p>    \u0417\u0430\u0433\u0440\u0443\u0436\u043a\u0430, \u0440\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u043a\u0430, \u0441\u043c\u0435\u043d\u0430 \u0432\u043b\u0430\u0434\u0435\u043b\u044c\u0446\u0430:<font color=\"purple\"><\/p>\n<pre>evgeniy@test:~$ cd \/var\/www evgeniy@test:\/var\/www$ sudo wget https:\/\/download.owncloud.com\/server\/stable\/owncloud-complete-latest.tar.bz2 --2022-06-05 00:11:58--  https:\/\/download.owncloud.com\/server\/stable\/owncloud-complete-latest.tar.bz2 Resolving download.owncloud.com (download.owncloud.com)... 167.233.14.167, 2a01:4f8:1c1d:3d1::1 Connecting to download.owncloud.com (download.owncloud.com)|167.233.14.167|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 79062710 (75M) [application\/x-bzip2] Saving to: \u2018owncloud-complete-latest.tar.bz2\u2019  owncloud-complete-latest.tar.bz2        100%[============================================================================>]  75.40M  1.08MB\/s    in 1m 45s  2022-06-05 00:13:44 (734 KB\/s) - \u2018owncloud-complete-latest.tar.bz2\u2019 saved [79062710\/79062710]  evgeniy@test:\/var\/www$ sudo tar -xjf owncloud-complete-latest.tar.bz2  evgeniy@test:\/var\/www$ sudo chown -R www-data. owncloud<\/pre>\n<p><\/font>  <\/li>\n<li> \u0417\u0430\u043f\u0443\u0441\u043a \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0449\u0438\u043a\u0430:<font color=\"purple\">\n<pre>evgeniy@test:\/var\/www$ cd \/var\/www\/owncloud evgeniy@test:\/var\/www\/owncloud$ sudo -u www-data .\/occ maintenance:install --database \"mysql\" --database-name \"owncloud\" --database-user \"root\" --database-pass \"123456\" --data-dir \"\/var\/www\/owncloud\/data\" --admin-user \"admin\" --admin-pass \"123456\"<\/pre>\n<p><\/font>  \u0412\u0441\u0435 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b (\u0438\u043c\u0435\u043d\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439, \u043f\u0430\u0440\u043e\u043b\u0438) \u043d\u0430\u0434\u043e \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c \u043d\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0435 \u0443 \u0432\u0430\u0441.<\/p>\n<p>    \u0415\u0441\u043b\u0438 \u0447\u0442\u043e-\u0442\u043e \u043f\u043e\u0448\u043b\u043e \u043d\u0435 \u0442\u0430\u043a \u0438 \u043d\u0430\u0434\u043e \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 ownCloud, \u0442\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c, \u0447\u0442\u043e \u0431\u0430\u0437\u0430 \u0435\u0441\u0442\u044c \u0438 \u043a\u0430\u043a\u043e\u0432\u043e \u0435\u0435 \u0438\u043c\u044f, \u0443\u0434\u0430\u043b\u044f\u0435\u043c, \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c, \u0447\u0442\u043e \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f \u043f\u0440\u043e\u0448\u043b\u0430 \u0443\u0441\u043f\u0435\u0448\u043d\u043e:<br \/>  <font color=\"purple\"><\/p>\n<pre>evgeniy@test:~$ sudo mysql -u root -e \"SHOW DATABASES\"; evgeniy@test:~$ sudo mysql -u root -e \"DROP DATABASE owncloud\"; evgeniy@test:~$ sudo mysql -u root -e \"SHOW DATABASES\"; <\/pre>\n<p><\/font><\/li>\n<li>\u041d\u0443\u0436\u043d\u043e IP-\u0430\u0434\u0440\u0435\u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0438 \u0435\u0433\u043e FQDN \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 \u0434\u043e\u0432\u0435\u0440\u0435\u043d\u043d\u044b\u0435 \u0434\u043e\u043c\u0435\u043d\u044b ownCloud:<br \/>  <font color=\"purple\">\n<pre>evgeniy@test:\/var\/www\/owncloud$ sudo -u www-data .\/occ config:system:set trusted_domains 1 --value=\"$my_ip\" System config value trusted_domains => 1 set to string 172.16.1.213 evgeniy@test:\/var\/www\/owncloud$ sudo -u www-data .\/occ config:system:set trusted_domains 2 --value=\"$my_domain\" System config value trusted_domains => 2 set to string test.owncloud.local <\/pre>\n<p><\/font><\/li>\n<li> \u0417\u0430\u0434\u0430\u0447\u0438 \u0434\u043b\u044f Cron&#8217;a:<font color=\"purple\">\n<pre>evgeniy@test:~$ echo \"*\/15  *  *  *  * \/var\/www\/owncloud\/occ system:cron\" | sudo -u www-data -g crontab tee -a \/var\/spool\/cron\/crontabs\/www-data  *\/15  *  *  *  * \/var\/www\/owncloud\/occ system:cron evgeniy@test:~$ echo \"0  2  *  *  * \/var\/www\/owncloud\/occ dav:cleanup-chunks\" | sudo -u www-data -g crontab tee -a \/var\/spool\/cron\/crontabs\/www-data 0  2  *  *  * \/var\/www\/owncloud\/occ dav:cleanup-chunks<\/pre>\n<p><\/font><\/li>\n<li> \u041d\u0430 \u044d\u0442\u043e\u043c \u044d\u0442\u0430\u043f\u0435 ownCloud \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 \u043f\u043e IP-\u0430\u0434\u0440\u0435\u0441\u0443 \u0432\u0430\u0448\u0435\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430 (\u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b HTTPS \u2014 \u043f\u043e\u0440\u0442 443).<br \/>  <a href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEhZSOhejVAntZ-XvXN5Iijq_45OlUSY6nOslK27U_zT947pFdJC3g5dDgFjL6ACCCG7MwYbWUXlufmBu8SZ3YoN1_Qtx3hWM_Gu4YySjXeJMsxscDy1tiT7xcZjtzpg9S9cD01YDk8M0BbFHVvhA_XNDzVbvvEeYr5fUAtfgIchGy-5NEhL3zNGR68Ctg\/s1280\/2022-06-05%2002_48_28-ownCloud%20%E2%80%94%20Mozilla%20Firefox%20%28Private%20Browsing%29.png\" rel=\"nofollow noopener noreferrer\"><img decoding=\"async\" width=\"600\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/post_images\/6c7\/4a3\/0ce\/6c74a30cee144eb07b57c83331fb5adb.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/6c7\/4a3\/0ce\/6c74a30cee144eb07b57c83331fb5adb.png\"\/><\/a><br \/>   \u041f\u043e\u043a\u0430 \u0435\u0441\u0442\u044c \u043e\u0434\u0438\u043d \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c <b>admin<\/b>. \u041f\u0430\u0440\u043e\u043b\u044c \u0434\u043b\u044f \u043d\u0435\u0433\u043e \u0437\u0430\u0434\u0430\u043d \u043f\u0440\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 (\u043f\u0443\u043d\u043a\u0442 12), \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 <i>&#8212;admin-pass<\/i>.<br \/>   \u0412\u0438\u0434 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0441\u0430 \u043f\u043e\u0441\u043b\u0435 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438:<br \/>   <a href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEgyAzWqUthWoDnIlkpI7TIBEluF1FObQZhPE3asS-UvfUG4NLuJukIhyUc7qXZXWkuXv7-3r-dWP2vOk3HLM29RYx3x9lgNeohwGQkQNTclgArxYu1LMpkdQc2eSoAvHwlQ8OlY_cIeCTwgzdX8rIA8cb1NypJZfyoN3ga0tUICQa13hKLxfgcNXHuzKg\/s1280\/2022-06-05%2002_48_17-Files%20-%20ownCloud%20%E2%80%94%20Mozilla%20Firefox%20%28Private%20Browsing%29.png\" rel=\"nofollow noopener noreferrer\"><img decoding=\"async\" width=\"600\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/post_images\/050\/9bb\/f8d\/0509bbf8da4c029ceacf482b27948495.png\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/050\/9bb\/f8d\/0509bbf8da4c029ceacf482b27948495.png\"\/><\/a><\/li>\n<li>\u041f\u0435\u0440\u0435\u043d\u043e\u0441 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430 \u0441 \u0434\u0430\u043d\u043d\u044b\u043c\u0438. \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0434\u0430\u043d\u043d\u044b\u0435 \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0435 &#171;<i>\/var\/www\/owncloud\/data\/<\/i>&#171;. \u041f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u0435\u0435 \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0430 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u043c \u0434\u0438\u0441\u043a\u0435, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0441\u0435\u0442\u0435\u0432\u043e\u043c \u0438\u043b\u0438 \u043d\u0430 RAID-\u043c\u0430\u0441\u0441\u0438\u0432\u0435. \u0414\u0430\u043b\u0435\u0435 \u043f\u0440\u0435\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u0446\u0435\u043b\u0435\u0432\u043e\u0439 \u0442\u043e\u043c \u0434\u043b\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u0441\u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d \u043f\u043e \u043f\u0443\u0442\u0438 &#171;<i>\/mnt\/owncloud<\/i>&#171;. <a href=\"https:\/\/doc.owncloud.com\/server\/10.10\/admin_manual\/maintenance\/manually-moving-data-folders.html\" rel=\"nofollow noopener noreferrer\">\u0418\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f<\/a>, \u043a\u0430\u043a \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0430 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u043c \u0441\u0430\u0439\u0442\u0435. \u041d\u043e \u0432 \u043d\u0435\u0439 \u043d\u0435\u0442\u043e\u0447\u043d\u043e\u0441\u0442\u0438 \u0441 \u043f\u0443\u0442\u044f\u043c\u0438. \u0412\u043d\u0430\u0447\u0430\u043b\u0435 \u044f \u0441\u0434\u0435\u043b\u0430\u043b \u043f\u043e \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438, \u0438 \u0443 \u043c\u0435\u043d\u044f \u043d\u0435 \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e \u2014 \u0444\u0430\u0439\u043b\u044b \u0431\u044b\u043b\u0438 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b. \u042f \u0441\u043e\u0437\u0434\u0430\u043b \u043d\u043e\u0432\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u0438 \u0435\u0433\u043e \u043a\u0430\u0442\u0430\u043b\u043e\u0433 \u0444\u0430\u0439\u043b\u043e\u0432 \u043b\u0435\u0436\u0430\u043b \u043f\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u043c\u0443 \u043f\u0443\u0442\u0438 \u0438 \u0431\u044b\u043b \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d. \u0421\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u0437\u0430\u043f\u0438\u0441\u0435\u0439 \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0430\u0445 \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u043e, \u0433\u0434\u0435 \u043e\u0448\u0438\u0431\u043a\u0430.<br \/>    \u041f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u043c ownCloud \u0432 \u0441\u0435\u0440\u0432\u0438\u0441\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c \u0438 \u043e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c Apache:<font color=\"purple\">\n<pre>evgeniy@test:~$ cd \/var\/www\/owncloud evgeniy@test:\/var\/www\/owncloud$ sudo -u www-data php occ maintenance:mode --on Maintenance mode enabled Please also consider to stop the web server on all ownCloud instances  evgeniy@test:\/var\/www\/owncloud$ sudo systemctl stop apache2.service<\/pre>\n<p><\/font>\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043a\u0430\u0442\u0430\u043b\u043e\u0433, \u0435\u0441\u043b\u0438 \u043e\u043d \u0435\u0449\u0435 \u043d\u0435 \u0441\u043e\u0437\u0434\u0430\u043d, \u0438 \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0438\u043c \u0432 \u043d\u0435\u0433\u043e \u0444\u0430\u0439\u043b\u044b:<font color=\"purple\"><\/p>\n<pre>evgeniy@test:\/var\/www\/owncloud$ sudo mkdir \/mnt\/owncloud evgeniy@test:\/var\/www\/owncloud$ sudo chown www-data \/mnt\/owncloud evgeniy@test:\/var\/www\/owncloud$ sudo rsync -avz \/var\/www\/owncloud\/data \/mnt\/owncloud sending incremental file list data\/ data\/.htaccess data\/.ocdata data\/htaccesstest.txt data\/index.html data\/owncloud.log data\/admin\/ data\/admin\/cache\/ data\/admin\/files\/ data\/admin\/files\/ownCloud Manual.pdf data\/admin\/files\/Documents\/ data\/admin\/files\/Documents\/Example.odt data\/admin\/files\/Photos\/ data\/admin\/files\/Photos\/Lake-Constance.jpg data\/admin\/files\/Photos\/Portugal.jpg data\/admin\/files\/Photos\/Teotihuacan.jpg data\/avatars\/ data\/files_external\/ data\/files_external\/rootcerts.crt  sent 6,985,083 bytes  received 277 bytes  13,970,720.00 bytes\/sec total size is 8,178,313  speedup is 1.17<\/pre>\n<p><\/font>\u041c\u0430\u043d\u0438\u043f\u0443\u043b\u044f\u0446\u0438\u0438 \u0441 \u0431\u0430\u0437\u043e\u0439 \u0434\u0430\u043d\u043d\u044b\u0445. \u0417\u0430\u0445\u043e\u0434\u0438\u043c \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440 \u0411\u0414 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u043c:<font color=\"purple\"><\/p>\n<pre>evgeniy@test:\/var\/www\/owncloud$ mysql -u root -p Enter password: Welcome to the MariaDB monitor.  Commands end with ; or \\g. Your MariaDB connection id is 45 Server version: 10.3.34-MariaDB-0ubuntu0.20.04.1 Ubuntu 20.04  Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.  Type 'help;' or '\\h' for help. Type '\\c' to clear the current input statement.<\/pre>\n<p><\/font> \u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u043d\u0430\u0448\u0443 \u0431\u0430\u0437\u0443:<font color=\"purple\"><\/p>\n<pre>MariaDB [(none)]> use owncloud Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A  Database changed<\/pre>\n<p><\/font>\u0421\u043c\u043e\u0442\u0440\u0438\u043c \u0441\u043f\u0438\u0441\u043e\u043a \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0438 \u0443 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043c\u0435\u043d\u044f\u0435\u043c \u043f\u0443\u0442\u044c. \u0415\u0441\u043b\u0438 \u0443\u0436\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439, \u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u043f\u043e\u043b\u0435 <b>id<\/b> \u0434\u043b\u044f \u0438\u0445 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438. \u0415\u0441\u043b\u0438 \u0432\u044b \u0434\u0435\u043b\u0430\u0435\u0442\u0435 \u044d\u0442\u0443 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0443 \u0441\u0440\u0430\u0437\u0443 \u043f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 ownCloud, \u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u0438\u043d \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u2014 <b>admin<\/b>. <font color=\"purple\"><\/p>\n<pre>MariaDB [owncloud]> select * from oc_accounts; +----+-------+---------+---------------+--------------+-------+------------+------------------+------------------------------+-------+ | id | email | user_id | lower_user_id | display_name | quota | last_login | backend          | home                         | state | +----+-------+---------+---------------+--------------+-------+------------+------------------+------------------------------+-------+ |  1 | NULL  | admin   | admin         | admin        | NULL  | 1654386521 | OC\\User\\Database | \/var\/www\/owncloud\/data\/admin |     1 | +----+-------+---------+---------------+--------------+-------+------------+------------------+------------------------------+-------+ 1 row in set (0.000 sec)  MariaDB [owncloud]> UPDATE oc_accounts SET home='\/mnt\/owncloud\/data\/admin' WHERE id=1; Query OK, 1 row affected (0.033 sec) Rows matched: 1  Changed: 1  Warnings: 0<\/pre>\n<p><\/font>\u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u0434\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u044b\u0431\u043e\u0440\u043a\u0443 \u043f\u043e \u0437\u0430\u0434\u0430\u0447\u0430\u043c \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u043d\u0435\u0442 \u043b\u0438 \u0443 \u043a\u0430\u043a\u043e\u0439-\u043b\u0438\u0431\u043e \u0437\u0430\u0434\u0430\u0447\u0438 \u0441\u0442\u0430\u0440\u043e\u0433\u043e \u043f\u0443\u0442\u0438. \u0423 \u043c\u0435\u043d\u044f \u0442\u0430\u043a\u0438\u0445 \u043d\u0435 \u043d\u0430\u0448\u043b\u043e\u0441\u044c.<font color=\"purple\"><\/p>\n<pre>MariaDB [owncloud]> select * from oc_jobs where class = 'OC\\Log\\Rotate'; Empty set (0.000 sec)  MariaDB [owncloud]> select * from oc_jobs; +----+----------------------------------------------------+----------+------------+--------------+-------------+--------------------+ | id | class                                              | argument | last_run   | last_checked | reserved_at | execution_duration | +----+----------------------------------------------------+----------+------------+--------------+-------------+--------------------+ |  1 | OCA\\Files\\BackgroundJob\\ScanFiles                  | null     | 1654386430 |   1654386430 |           0 |                  0 | |  2 | OCA\\Files\\BackgroundJob\\DeleteOrphanedItems        | null     | 1654386437 |   1654386437 |           0 |                  0 | |  3 | OCA\\Files\\BackgroundJob\\CleanupFileLocks           | null     | 1654386444 |   1654386444 |           0 |                  0 | |  4 | OCA\\Files\\BackgroundJob\\CleanupPersistentFileLocks | null     | 1654386477 |   1654386477 |           0 |                  0 | |  5 | OCA\\DAV\\CardDAV\\SyncJob                            | null     | 1654386505 |   1654386505 |           0 |                  0 | |  6 | OCA\\DAV\\BackgroundJob\\CleanProperties              | null     | 1654386522 |   1654386521 |           0 |                  0 | |  7 | OCA\\Activity\\BackgroundJob\\EmailNotification       | null     | 1654386739 |   1654386739 |           0 |                  0 | |  8 | OCA\\Activity\\BackgroundJob\\ExpireActivities        | null     | 1654386749 |   1654386749 |           0 |                  0 | |  9 | OCA\\Federation\\SyncJob                             | null     | 1654386752 |   1654386752 |           0 |                  0 | | 10 | OCA\\Files_Sharing\\DeleteOrphanedSharesJob          | null     | 1654386761 |   1654386761 |           0 |                  0 | | 11 | OCA\\Files_Sharing\\ExpireSharesJob                  | null     | 1654386770 |   1654386770 |           0 |                  0 | | 12 | OCA\\Files_Sharing\\External\\ScanExternalSharesJob   | null     | 1654386775 |   1654386775 |           0 |                  0 | | 13 | OCA\\Files_Trashbin\\BackgroundJob\\ExpireTrash       | null     | 1654386795 |   1654386795 |           0 |                  0 | | 14 | OCA\\Files_Versions\\BackgroundJob\\ExpireVersions    | null     | 1654386833 |   1654386833 |           0 |                  0 | | 15 | OCA\\Market\\CheckUpdateBackgroundJob                | null     |          0 |   1654386024 |           0 |                 -1 | | 16 | OCA\\UpdateNotification\\Notification\\BackgroundJob  | null     |          0 |   1654386025 |           0 |                 -1 | | 17 | \\OC\\Authentication\\Token\\DefaultTokenCleanupJob    | null     |          0 |   1654386026 |           0 |                 -1 | +----+----------------------------------------------------+----------+------------+--------------+-------------+--------------------+ 17 rows in set (0.000 sec)<\/pre>\n<p><\/font>\u0415\u0441\u043b\u0438 \u0437\u0430\u0434\u0430\u0447\u0430 \u0435\u0441\u0442\u044c, \u0442\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u0435 \u0437\u0430\u043f\u0440\u043e\u0441:<font color=\"purple\"><\/p>\n<pre>MariaDB [owncloud]> UPDATE oc_jobs SET argument = REPLACE(argument, '\\\\\/var\\\\\/www\\\\\/owncloud\\\\\/data\\\\\/', '\\\\\/mnt\\\\\/owncloud\/data\\\\\/')   WHERE id = &lt;id of the incorrect record>;<\/pre>\n<p><\/font> \u0433\u0434\u0435 \u0432 &lt;id of the incorrect record> \u043f\u043e\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c id \u0441 \u0437\u0430\u043f\u0438\u0441\u044c\u044e, \u0443 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043d\u0435\u0432\u0435\u0440\u043d\u044b\u0439 \u043f\u0443\u0442\u044c. <br \/>  \u0412\u044b\u0445\u043e\u0434\u0438\u043c \u0438\u0437 \u0411\u0414:<font color=\"purple\"><\/p>\n<pre>MariaDB [owncloud]> \\q Bye<\/pre>\n<p><\/font>  \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u043f\u0443\u0442\u0438 \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u0445. \u0415\u0441\u043b\u0438 \u0443 \u043a\u0430\u043a\u043e\u0433\u043e-\u0442\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0435\u0441\u0442\u044c \u0441\u0442\u0430\u0440\u044b\u0439 \u043f\u0443\u0442\u044c, \u0442\u043e \u043c\u0435\u043d\u044f\u0435\u043c \u0435\u0433\u043e (\u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u043d\u0438\u0436\u0435). \u0412 \u043c\u043e\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0442\u0430\u043a\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043d\u0435 \u043d\u0430\u0448\u043b\u043e\u0441\u044c.<font color=\"purple\"><\/p>\n<pre>evgeniy@test:\/var\/www\/owncloud$ sudo -u www-data php .\/occ config:list {     \"system\": {         \"instanceid\": \"oc8mwxq3rfxl\",         \"passwordsalt\": \"***REMOVED SENSITIVE VALUE***\",         \"secret\": \"***REMOVED SENSITIVE VALUE***\",         \"trusted_domains\": [             \"localhost\",             \"172.16.1.213\",             \"test.owncloud.local\"         ],         \"datadirectory\": \"\\\/mnt\\\/owncloud\\\/data\",         \"overwrite.cli.url\": \"http:\\\/\\\/localhost\",         \"dbtype\": \"mysql\",         \"version\": \"10.10.0.3\",         \"dbname\": \"owncloud\",         \"dbhost\": \"localhost\",         \"dbtableprefix\": \"oc_\",         \"mysql.utf8mb4\": true,         \"dbuser\": \"***REMOVED SENSITIVE VALUE***\",         \"dbpassword\": \"***REMOVED SENSITIVE VALUE***\",         \"allow_user_to_change_mail_address\": \"\",         \"logtimezone\": \"UTC\",         \"apps_paths\": [             {                 \"path\": \"\\\/var\\\/www\\\/owncloud\\\/apps\",                 \"url\": \"\\\/apps\",                 \"writable\": false             },             {                 \"path\": \"\\\/var\\\/www\\\/owncloud\\\/apps-external\",                 \"url\": \"\\\/apps-external\",                 \"writable\": true             }         ],         \"installed\": true,         \"maintenance\": false     },     \"apps\": {         \"activity\": {             \"enabled\": \"yes\",             \"installed_version\": \"2.7.0\",             \"types\": \"filesystem\"         },         \"backgroundjob\": {             \"lastjob\": \"14\"         },         \"comments\": {             \"enabled\": \"yes\",             \"installed_version\": \"0.3.0\",             \"types\": \"logging,dav\"         },         \"configreport\": {             \"enabled\": \"yes\",             \"installed_version\": \"0.2.1\",             \"types\": \"filesystem\"         }, ........         \"updatenotification\": {             \"enabled\": \"yes\",             \"installed_version\": \"0.2.1\",             \"types\": \"\"         }     } }<\/pre>\n<p><\/font> \u041a\u043e\u043c\u0430\u043d\u0434\u0430 \u0434\u043b\u044f \u0437\u0430\u043c\u0435\u043d\u044b (\u043d\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u043b): <font color=\"purple\"><\/p>\n<pre>evgeniy@test:\/var\/www\/owncloud$ sudo -u www-data php .\/occ config:app:set --value \/mnt\/owncloud\/data &lt;\u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f> &lt;\u0438\u043c\u044f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0435\u0433\u043e \u043f\u0443\u0442\u044c \u043a \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0443><\/pre>\n<p><\/font>  \u0418, \u043d\u0430\u043a\u043e\u043d\u0435\u0446, \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u043f\u0443\u0442\u044c \u0432 \u0444\u0430\u0439\u043b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a, \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 <i>datadirectory<\/i>:<font color=\"purple\"><\/p>\n<pre>evgeniy@test:\/var\/www\/owncloud$ sudo vim \/var\/www\/owncloud\/config\/config.php &lt;?php $CONFIG = array (   'instanceid' => 'oc8mwxq3rfxl',   'passwordsalt' => 'ahNk4VxR1R5DeZyJ9ly8wsdqCXo1z3',   'secret' => 'b8xm+wxPuQFyuW0syudVGGsKQwgfnTFoMEBm6cZA00Wm2zG0',   'trusted_domains' =>   array (     0 => 'localhost',     1 => '172.16.1.213',     2 => 'test.owncloud.local',   ),   'datadirectory' => '\/mnt\/owncloud\/data',   'overwrite.cli.url' => 'http:\/\/localhost',   'dbtype' => 'mysql',   'version' => '10.10.0.3',   'dbname' => 'owncloud',   'dbhost' => 'localhost',   'dbtableprefix' => 'oc_',   'mysql.utf8mb4' => true,   'dbuser' => 'oc_admin',   'dbpassword' => 'WeBkvHU7WqHPQ\/7Sxm0Oq4rVs1vAEh',   'allow_user_to_change_mail_address' => '',   'logtimezone' => 'UTC',   'apps_paths' =>   array (     0 =>     array (       'path' => '\/var\/www\/owncloud\/apps',       'url' => '\/apps',       'writable' => false,     ),     1 =>     array (       'path' => '\/var\/www\/owncloud\/apps-external',       'url' => '\/apps-external',       'writable' => true,     ),   ),   'installed' => true,   'maintenance' => false, );<\/pre>\n<p><\/font>\u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c ownCloud \u0432 \u0431\u043e\u0435\u0432\u043e\u0439 \u0440\u0435\u0436\u0438\u043c \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c Apache:<font color=\"purple\"><\/p>\n<pre>evgeniy@test:\/var\/www\/owncloud$ sudo -u www-data php occ maintenance:mode --off ownCloud is in maintenance mode - no app have been loaded  Maintenance mode disabled  evgeniy@test:\/var\/www\/owncloud$ sudo systemctl start apache2.service <\/pre>\n<p><\/font><\/li>\n<li>\u041d\u0430 \u044d\u0442\u043e\u043c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0430. \u041c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0432\u0435\u0431-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u043c. \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443 \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u043d\u0430 \u0410\u043d\u0434\u0440\u043e\u0438\u0434\u0435 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u044e \u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0435.  <\/li>\n<\/ol>\n<p>P.S. \u041f\u0435\u0440\u0432\u0430\u044f \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u044f, \u043d\u0435 \u043a\u0430\u0440\u0430\u0439\u0442\u0435 \u0441\u0442\u0440\u043e\u0433\u043e.<\/p><\/div>\n<\/div>\n<\/div>\n<div class=\"v-portal\" style=\"display:none;\"><\/div>\n<\/div>\n<p> <!----> <!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/670476\/\"> https:\/\/habr.com\/ru\/post\/670476\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-1\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/post_images\/18b\/911\/8ca\/18b9118cafda05ac1ca13371e9242f8f.png\" alt=\"image\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/18b\/911\/8ca\/18b9118cafda05ac1ca13371e9242f8f.png\"\/><\/p>\n<p> \u041a\u0440\u0430\u0436\u0430 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430 \u043f\u0440\u043e\u0441\u0442\u0438\u043c\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u043b\u0430 \u0437\u0430\u0434\u0443\u043c\u0430\u0442\u044c\u0441\u044f \u043d\u0430\u0434 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u044b\u043c \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0430 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0435. \u0412\u0442\u043e\u0440\u0430\u044f \u043f\u0440\u0438\u0447\u0438\u043d\u0430 \u2014 \u043d\u0430 \u0441\u0442\u0430\u0440\u043e\u043c \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0435, \u043a \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u0432\u0435\u0440\u043d\u0443\u043b\u0441\u044f, \u043d\u0430\u043a\u043e\u043f\u0438\u0442\u0435\u043b\u044c \u0432\u0441\u0435\u0433\u043e \u043d\u0430 64 \u0413\u0411, \u0447\u0430\u0441\u0442\u044c \u0435\u043c\u043a\u043e\u0441\u0442\u0438 \u0443\u0436\u0435 \u0437\u0430\u043d\u044f\u0442\u0430 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0435\u0439. \u0424\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438 \u0438 \u0432\u0438\u0434\u0435\u043e \u0431\u044b\u0441\u0442\u0440\u043e \u0437\u0430\u043f\u043e\u043b\u043d\u044f\u044e\u0442 \u0432\u0435\u0441\u044c \u043d\u0430\u043a\u043e\u043f\u0438\u0442\u0435\u043b\u044c.<\/p>\n<p> \u0420\u0443\u0447\u043d\u043e\u0435 \u043f\u0435\u0440\u0435\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u043d\u0438\u0435 \u043f\u043e USB-\u043a\u0430\u0431\u0435\u043b\u044e \u043d\u0430 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440 \u043a\u0430\u043a \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043d\u0435 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u043b\u043e\u0441\u044c. FTP \u0438 CIFS\/NFS \u2014 \u043d\u0435\u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e. \u0412\u044b\u0431\u0440\u0430\u043b <a href=\"https:\/\/owncloud.com\/\" rel=\"nofollow noopener noreferrer\">ownCloud<\/a>.<\/p>\n<ul>\n<li>\u0415\u0441\u0442\u044c \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u043e\u0442 \u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u0430.<\/li>\n<li>\u0415\u0441\u0442\u044c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438 \u043f\u043e\u0434 Ubuntu, \u0435\u0441\u0442\u044c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u043f\u043b\u0430\u0442\u043d\u044b\u0439 (\u0441\u0435\u0439\u0447\u0430\u0441 \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e) \u0438 \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u0435 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0435 \u043a\u043b\u0438\u0435\u043d\u0442\u044b.<\/li>\n<li>\u0412\u0441\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043b\u0435\u0436\u0438\u0442 \u043d\u0430 \u0432\u0430\u0448\u0435\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435\/\u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435.<\/li>\n<li>\u0415\u0441\u0442\u044c \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438, \u043a\u0430\u043a \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c \u043d\u0430 \u0440\u0443\u0441\u0441\u043a\u043e\u043c \u0438 \u043d\u0430 \u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u043e\u043c<\/li>\n<li>\u0415\u0441\u0442\u044c \u0432\u0435\u0431-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0434\u043b\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0438 \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432<\/li>\n<li>\u0415\u0441\u0442\u044c \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439. \u041c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430 \u0434\u043b\u044f \u0434\u0440\u0443\u0433\u0438\u0445 \u0436\u0438\u0442\u0435\u043b\u0435\u0439 \u043a\u0432\u0430\u0440\u0442\u0438\u0440\u044b. \u0412\u0430\u0448\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0435 \u0431\u0443\u0434\u0443\u0442 \u043f\u0443\u0442\u0430\u0442\u044c\u0441\u044f \u0441 \u0438\u0445. \u041a\u0430\u0436\u0434\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0438\u043c\u0435\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u0442\u043e\u043b\u044c\u043a\u043e \u043a \u0441\u0432\u043e\u0438\u043c \u0434\u0430\u043d\u043d\u044b\u043c. \u041d\u0443 \u043d\u0435 \u0441\u0447\u0438\u0442\u0430\u044f \u0430\u0434\u043c\u0438\u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \ud83d\ude42 <\/li>\n<\/ul>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-334231","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/334231","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=334231"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/334231\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=334231"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=334231"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=334231"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}