{"id":18669,"date":"2014-12-20T06:45:53","date_gmt":"2014-12-19T22:45:53","guid":{"rendered":"https:\/\/2blog.ilc.edu.tw\/25793\/2014\/12\/20\/archlinux-%e5%ae%89%e8%a3%9d-owncloud-7-x-2\/"},"modified":"2021-03-18T17:24:14","modified_gmt":"2021-03-18T09:24:14","slug":"archlinux-%e5%ae%89%e8%a3%9d-owncloud-7-x-2","status":"publish","type":"post","link":"https:\/\/2blog.ilc.edu.tw\/25793\/2014\/12\/20\/archlinux-%e5%ae%89%e8%a3%9d-owncloud-7-x-2\/","title":{"rendered":"ArchLinux \u5b89\u88dd ownCloud 7.x"},"content":{"rendered":"<p>\u53c3\u8003\u7db2\u9801\uff1a <br \/><a href=\"https:\/\/wiki.archlinux.org\/index.php\/OwnCloud\" target=\"_blank\" rel=\"noopener noreferrer\">ownCloud &#8211; ArchWiki<\/a> <br \/><a href=\"https:\/\/www.digitalocean.com\/community\/tutorials\/how-to-install-and-setup-owncloud-on-arch-linux\" target=\"_blank\" rel=\"noopener noreferrer\">How To Install and Setup ownCloud on Arch Linux | DigitalOcean<\/a> <br \/><a href=\"http:\/\/eiosifidis.blogspot.tw\/2014\/06\/install-owncloud-on-raspberry-pi-arch.html\" target=\"_blank\" rel=\"noopener noreferrer\">EFSTATHIOS IOSIFIDIS: Install ownCloud on Raspberry Pi (Arch Linux) using Lighttpd<\/a> <br \/><a href=\"http:\/\/eiosifidis.blogspot.tw\/2014\/07\/install-owncloud-7-on-raspberry-pi-arch.html\" target=\"_blank\" rel=\"noopener noreferrer\">EFSTATHIOS IOSIFIDIS: Install ownCloud 7 on Raspberry Pi (Arch Linux) using Lighttpd<\/a><br \/><a href=\"http:\/\/blog.eldajani.net\/arch-linux-owncloud-with-nginx\/\" target=\"_blank\" rel=\"noopener noreferrer\">Arch Linux \/ OwnCloud with nginx | Ryad&#8217;s Blog<\/a><\/p>\n<p>\u5b89\u88dd PHP\u00a0\u548c Nginx<br \/># <span style=\"color: #ff0000\">pacman -S nginx php php-fpm php-gd php-mcrypt php-intl<\/span>[@more@]<br \/>\u4fee\u6539 \/etc\/php\/php.ini \u8a2d\u5b9a\u6a94<br \/># <span style=\"color: #ff0000\">sed -i &#8216;s\/;extension=zip.so\/extension=zip.so\/&#8217; \/etc\/php\/php.ini<br \/><\/span># <span style=\"color: #ff0000\">sed -i &#8216;s\/;extension=gd.so\/extension=gd.so\/&#8217; \/etc\/php\/php.ini<\/span><br \/># <span style=\"color: #ff0000\">sed -i &#8216;s\/;extension=iconv.so\/extension=iconv.so\/&#8217; \/etc\/php\/php.ini<\/span><br \/># <span style=\"color: #ff0000\">sed -i &#8216;s\/;extension=openssl.so\/extension=openssl.so\/&#8217; \/etc\/php\/php.ini<\/span><br \/># <span style=\"color: #ff0000\">sed -i &#8216;s\/;extension=xmlrpc.so\/extension=xmlrpc.so\/&#8217; \/etc\/php\/php.ini<\/span><br \/># <span style=\"color: #ff0000\">sed -i &#8216;s\/;extension=bz2.so\/extension=bz2.so\/&#8217; \/etc\/php\/php.ini<\/span><br \/># <span style=\"color: #ff0000\">sed -i &#8216;s\/;extension=curl.so\/extension=curl.so\/&#8217; \/etc\/php\/php.ini<\/span><br \/>#<span style=\"color: #ff0000\"> sed -i &#8216;s\/;extension=intl.so\/extension=intl.so\/&#8217; \/etc\/php\/php.ini<\/span><br \/>#<span style=\"color: #ff0000\"> sed -i &#8216;s\/;extension=mcrypt.so\/extension=mcrypt.so\/&#8217; \/etc\/php\/php.ini<\/span><br \/>#<span style=\"color: #ff0000\"> sed -i &#8216;s\/;<\/span><span style=\"color: #ff0000\">extension=mysql.so\/extension=mysql.so\/&#8217; \/etc\/php\/php.ini<\/span><br \/>#<span style=\"color: #ff0000\"> sed -i &#8216;s\/;<\/span><span style=\"color: #ff0000\">extension=pdo_mysql.so\/extension=pdo_mysql.so\/&#8217; \/etc\/php\/php.ini<\/span><br \/>#<span style=\"color: #ff0000\"> sed -i &#8216;s<\/span><span style=\"color: #ff0000\">\/;extension=mysqli.so\/extension=mysqli.so\/&#8217; \/etc\/php\/php.ini<\/span><br \/>#<span style=\"color: #ff0000\"> sed -i &#8216;s\/;<\/span><span style=\"color: #ff0000\">zend_extension=opcache.so\/zend_extension=opcache.so\/&#8217; \/etc\/php\/php.ini<\/span><\/p>\n<p>\u5982\u679c\u8981\u5c07 ownCloud\u00a0\u6a94\u6848\u5b58\u653e\u5728\u901f\u5ea6\u6bd4\u8f03\u5feb\u7684\u76ee\u9304 <span style=\"color: #0000ff\">\/mnt\/sda1\/ownCloud<\/span><br \/># <span style=\"color: #ff0000\">vim \/etc\/php\/php.ini<\/span><br \/><span style=\"color: #0000ff\">open_basedir = \/srv\/http\/:\/home\/:\/tmp\/:\/usr\/share\/pear\/:\/usr\/share\/webapps\/<\/span><span style=\"color: #ff0000\">:\/mnt\/sda1\/ownCloud<\/span><\/p>\n<p>\u5efa\u7acb ownCloud\u00a0\u8cc7\u6599\u5eab\u53ca\u4f7f\u7528\u8005\u548c\u5bc6\u78bc<br \/># <span style=\"color: #ff0000\">\/usr\/bin\/mysql -u root -p<\/span><br \/>&gt; <span style=\"color: #ff0000\">CREATE DATABASE cloud;<\/span><br \/><span style=\"color: #ff0000\"><span style=\"color: #000000\">&gt;<\/span> CREATE USER cloud@localhost;<\/span><br \/><span style=\"color: #ff0000\"><span style=\"color: #000000\">&gt;<\/span> SET PASSWORD FOR cloud@localhost= PASSWORD(&#8220;password_for_cloud&#8221;);<\/span><br \/><span style=\"color: #ff0000\"><span style=\"color: #000000\">&gt;<\/span> GRANT ALL PRIVILEGES ON cloud.* TO cloud@localhost IDENTIFIED BY &#8216;password_for_cloud&#8217;;<\/span><br \/><span style=\"color: #ff0000\"><span style=\"color: #000000\">&gt;<\/span> FLUSH PRIVILEGES;<\/span><br \/><span style=\"color: #ff0000\"><span style=\"color: #000000\">&gt;<\/span> exit<\/span><\/p>\n<p>\u4e0b\u8f09 ownCloud<br \/># <span style=\"color: #ff0000\">wget https:\/\/download.owncloud.org\/community\/owncloud-7.0.2.tar.bz2<\/span><br \/>\u89e3\u58d3\u7e2e<br \/># <span style=\"color: #ff0000\">tar xvjf owncloud-7.0.2.tar.bz2<\/span><br \/>\u5efa\u7acb\u76ee\u9304<br \/># <span style=\"color: #ff0000\">mkdir \/srv\/http\/owncloud\/data<\/span><br \/>\u6539\u8b8a\u76ee\u9304\u64c1\u6709\u8005<br \/># <span style=\"color: #ff0000\">chown -R http:http \/srv\/http\/owncloud\/data<\/span><\/p>\n<p>\u555f\u52d5\u53ca\u958b\u6a5f\u6642\u555f\u52d5 php-fpm\u00a0\u53ca nginx\u00a0\u670d\u52d9<br \/># <span style=\"color: #ff0000\">systemctl enable php-fpm<\/span><br \/># <span style=\"color: #ff0000\">systemctl start php-fpm<\/span><br \/># <span style=\"color: #ff0000\">systemctl enable nginx<\/span><br \/># <span style=\"color: #ff0000\">systemctl start nginx<\/span><\/p>\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u53c3\u8003\u7db2\u9801\uff1a ownCloud &#8211; ArchWiki How To Install and Setu &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/2blog.ilc.edu.tw\/25793\/2014\/12\/20\/archlinux-%e5%ae%89%e8%a3%9d-owncloud-7-x-2\/\" class=\"more-link\">\u95b1\u8b80\u5168\u6587<span class=\"screen-reader-text\">\u3008ArchLinux \u5b89\u88dd ownCloud 7.x\u3009<\/span><\/a><\/p>\n","protected":false},"author":55,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[167,106],"tags":[],"class_list":["post-18669","post","type-post","status-publish","format-standard","hentry","category-c-84386","category-c-79900"],"meta_key":{"_pingme":["1"],"_encloseme":["1"],"lt_post_id":["533559"]},"_links":{"self":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts\/18669"}],"collection":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/users\/55"}],"replies":[{"embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/comments?post=18669"}],"version-history":[{"count":1,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts\/18669\/revisions"}],"predecessor-version":[{"id":20285,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts\/18669\/revisions\/20285"}],"wp:attachment":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/media?parent=18669"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/categories?post=18669"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/tags?post=18669"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}