{"id":178495,"date":"2013-04-30T16:16:03","date_gmt":"2013-04-30T12:16:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=178495"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=178495","title":{"rendered":"<span class=\"post_title\">\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 ownCloud 5<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t<img decoding=\"async\" src=\"http:\/\/devil-chrono.ru\/wp-content\/uploads\/2012\/04\/owncloud.png\" alt=\"image\"\/><br \/>  \u041d\u0430\u0441\u0442\u0440\u043e\u0438\u043b OwnCloud 5.0.5 \u043d\u0430 RaspberryPI (Raspbian) \u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u0443\u044e \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044e. \u041d\u0438\u0447\u0435\u0433\u043e \u043b\u0438\u0448\u043d\u0435\u0433\u043e, \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0434\u043b\u044f \u0432\u0441\u0442\u0430\u0432\u043a\u0438 \u0432 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b. <\/p>\n<p>  <a name=\"habracut\"><\/a>  <\/p>\n<h4>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0447\u0435\u0440\u0435\u0437 HTTP<\/h4>\n<p>  <\/p>\n<pre><code>sudo su echo 'deb http:\/\/download.opensuse.org\/repositories\/isv:ownCloud:community\/Debian_6.0\/ \/' &gt;&gt; \/etc\/apt\/sources.list.d\/owncloud.list  exit sudo apt-get update  sudo apt-get install owncloud  sudo apt-get install apache2 php5 php5-json php5-gd php5-sqlite curl libcurl3 libcurl4-openssl-dev php5-curl php5-gd php5-cgi php-pear php5-dev build-essential libpcre3-dev php5 libapache2-mod-php5 php-apc wget http:\/\/download.opensuse.org\/repositories\/isv:ownCloud:community\/Debian_6.0\/Release.key  apt-key add - &lt; Release.key  sudo nano \/etc\/php5\/apache2\/php.ini <\/code><\/pre>\n<p>  \u0412 \u043a\u043e\u043d\u0435\u0446 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c: <\/p>\n<pre><code>extension=\/usr\/lib\/php5\/20090626+lfs\/mysql.so<\/code><\/pre>\n<p>  \u0417\u0430\u0442\u0435\u043c:  <\/p>\n<pre><code>sudo service apache2 restart<\/code><\/pre>\n<p>  \u0412 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435 \u0443\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0445\u043e\u0434\u0438\u0442\u044c \u043d\u0430 <code>http:\/\/ip-\u0430\u0434\u0440\u0435\u0441-\u0441\u0435\u0440\u0432\u0435\u0440\u0430\/owncloud\/<\/code> \u0438 \u0432\u0430\u0441 \u0432\u0441\u0442\u0440\u0435\u0442\u0438\u0442 \u043f\u0440\u0438\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u0435 \u043d\u0430 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044e \u0443\u0447\u0435\u0442\u043d\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430.<br \/>  \u041e\u0434\u043d\u0430\u043a\u043e https \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442. \u0415\u0441\u043b\u0438 \u0432\u0430\u043c \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e http \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f, \u0442\u043e \u0434\u0430\u043b\u044c\u0448\u0435 \u043c\u043e\u0436\u043d\u043e \u043d\u0435 \u0447\u0438\u0442\u0430\u0442\u044c. <\/p>\n<h4>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 HTTPS \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043d\u0430 ownCloud<\/h4>\n<p>  <\/p>\n<pre><code>sudo -i nano \/etc\/apache2\/sites-enabled\/000-default <\/code><\/pre>\n<p>  \u041d\u0430\u0439\u0434\u0438\u0442\u0435 \u0441\u0442\u0440\u043e\u043a\u0443 <\/p>\n<pre><code>\u201cAllowOverride None\u201d<\/code><\/pre>\n<p> \u0438 \u043f\u043e\u043c\u0435\u043d\u044f\u0439\u0442\u0435 \u043d\u0430 <\/p>\n<pre><code>\u201cAllowOverride All\u201d<\/code><\/pre>\n<p>  \u0414\u0430\u043b\u0435\u0435  <\/p>\n<pre><code>a2enmod rewrite && a2enmod headers && a2enmod ssl service apache2 restart nano \/etc\/ssl\/openssl.cnf <\/code><\/pre>\n<p>  \u041d\u0430\u0445\u043e\u0434\u0438\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \u0438 \u043c\u0435\u043d\u044f\u0435\u043c \u0438\u0445:  <\/p>\n<pre><code>dir = \/root\/SSLCertAuth default_days = 3650 # 10 years countryName_default = RU 0.organizationName_default = RPI<\/code><\/pre>\n<p>   \u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c. \u0412\u044b\u0445\u043e\u0434\u0438\u043c.  <\/p>\n<pre><code>mkdir \/root\/SSLCertAuth chmod 700 \/root\/SSLCertAuth cd \/root\/SSLCertAuth mkdir certs private newcerts echo 1000 &gt; serial touch index.txt <\/code><\/pre>\n<p>  \u0413\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u043c \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442.:  <\/p>\n<pre><code>openssl req -new -x509 -days 3650 -extensions v3_ca \\ -keyout private\/cakey.pem -out cacert.pem \\ -config \/etc\/ssl\/openssl.cnf <\/code><\/pre>\n<p>  \u041e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0430\u043f\u0438\u0448\u0438\u0442\u0435 Common Name. <br \/>  \u0412\u044b\u0432\u043e\u0434:<br \/>  <img decoding=\"async\" src=\"http:\/\/ubuntuserverguide.com\/wp-content\/uploads\/2013\/04\/owncloudssl-generating-Certificate-Authority.png\" alt=\"image\"\/><\/p>\n<p>  \u0414\u0430\u043b\u0435\u0435:  <\/p>\n<pre><code>openssl req -new -nodes \\  -out apache-req.pem \\  -keyout private\/apache-key.pem \\  -config \/etc\/ssl\/openssl.cnf <\/code><\/pre>\n<p>  <img decoding=\"async\" src=\"http:\/\/ubuntuserverguide.com\/wp-content\/uploads\/2013\/04\/owncloud-SSL-Creating-Certificate-Signing-Request.png\" alt=\"image\"\/><br \/>  \u0417\u0430\u0442\u0435\u043c:  <\/p>\n<pre><code>openssl ca \\ -config \/etc\/ssl\/openssl.cnf \\ -out apache-cert.pem \\ -infiles apache-req.pem <\/code><\/pre>\n<p>  <img decoding=\"async\" src=\"http:\/\/ubuntuserverguide.com\/wp-content\/uploads\/2013\/04\/owncloud-SSL-Certificate-Authority.png\" alt=\"image\"\/><br \/>  \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u043a \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044e.  <\/p>\n<pre><code>mkdir \/etc\/ssl\/crt mkdir \/etc\/ssl\/key cp \/root\/SSLCertAuth\/apache-cert.pem \/etc\/ssl\/crt cp \/root\/SSLCertAuth\/private\/apache-key.pem \/etc\/ssl\/key mkdir \/var\/www\/logs nano \/etc\/apache2\/conf.d\/owncloud5-ssl.conf <\/code><\/pre>\n<p>  \u0412\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0432 nano \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0441\u0442\u0440\u043e\u043a\u0438:  <\/p>\n<pre><code>&lt;VirtualHost *:443&gt;       ServerName \u0417\u0414\u0415\u0421\u042c.\u041f\u0418\u0428\u0415\u041c.IP.\u0421\u0415\u0420\u0412\u0415\u0420\u0410       SSLEngine on       SSLCertificateFile \/etc\/ssl\/crt\/apache-cert.pem       SSLCertificateKeyFile \/etc\/ssl\/key\/apache-key.pem       DocumentRoot \/var\/www\/       CustomLog \/var\/www\/logs\/ssl-access_log combined       ErrorLog \/var\/www\/logs\/ssl-error_log &lt;\/VirtualHost&gt; <\/code><\/pre>\n<p>  \u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c, \u0432\u044b\u0445\u043e\u0434\u0438\u043c \u0438 \u043f\u0438\u0448\u0435\u043c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044e\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u0443:  <\/p>\n<pre><code>service apache2 restart<\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u043e\u0442\u043a\u0440\u044b\u0442\u044c \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u0438 \u0437\u0430\u0439\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 https \u043d\u0430 ownCloud<br \/>  <img decoding=\"async\" src=\"http:\/\/ubuntuserverguide.com\/wp-content\/uploads\/2013\/04\/ownCloud-SSL-Connection.png\" alt=\"image\"\/><\/p>\n<p>  \u0421\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435!<\/p>\n<p>  \u0412 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0438\u0441\u044c \u0437\u0430\u0440\u0443\u0431\u0435\u0436\u043d\u044b\u0435 \u0444\u043e\u0440\u0443\u043c\u044b \u0438 <a href=\"http:\/\/ubuntuserverguide.com\/2013\/04\/how-to-setup-owncloud-server-5-with-ssl-connection.html\">\u043e\u0434\u0438\u043d \u0433\u0430\u0439\u0434<\/a>    \t \t\t   \t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/178495\/\"> http:\/\/habrahabr.ru\/post\/178495\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t<img decoding=\"async\" src=\"http:\/\/devil-chrono.ru\/wp-content\/uploads\/2012\/04\/owncloud.png\" alt=\"image\"\/><br \/>  \u041d\u0430\u0441\u0442\u0440\u043e\u0438\u043b OwnCloud 5.0.5 \u043d\u0430 RaspberryPI (Raspbian) \u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u0443\u044e \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044e. \u041d\u0438\u0447\u0435\u0433\u043e \u043b\u0438\u0448\u043d\u0435\u0433\u043e, \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0434\u043b\u044f \u0432\u0441\u0442\u0430\u0432\u043a\u0438 \u0432 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b. <\/p>\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-178495","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/178495","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=178495"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/178495\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=178495"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=178495"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=178495"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}