{"id":242,"date":"2019-09-11T08:52:31","date_gmt":"2019-09-11T00:52:31","guid":{"rendered":"https:\/\/freeapp.sbs\/blog\/?p=242"},"modified":"2025-04-01T17:04:48","modified_gmt":"2025-04-01T08:04:48","slug":"etyavgcnv68yu9z","status":"publish","type":"post","link":"https:\/\/eternalsphere.net\/echoes\/index.php\/2019\/09\/11\/etyavgcnv68yu9z\/","title":{"rendered":"\u5b89\u88c5Nextcloud server"},"content":{"rendered":"<p>Installing NextCloud on Ubuntu 16.04<br \/>\nsudo apt update<br \/>\nsudo apt-get install apache2 mariadb-server libapache2-mod-php7.0<br \/>\nsudo apt-get install php7.0-gd php7.0-json php7.0-mysql php7.0-curl php7.0-mbstring<br \/>\nsudo apt-get install php7.0-intl php7.0-mcrypt php-imagick php7.0-xml php7.0-zip<br \/>\n#Download NextCloud<br \/>\ntar jxvf nextcloud*.bz2<br \/>\nsudo mv nextcloud \/var\/www\/<br \/>\n#Configuring Apache Web Server<br \/>\nsudo touch \/etc\/apache2\/sites-available\/nextcloud.conf<br \/>\n#add<br \/>\nAlias \/nextcloud &#8220;\/var\/www\/nextcloud\/&#8221;<br \/>\n&lt;Directory \/var\/www\/nextcloud\/&gt;<br \/>\nOptions +FollowSymlinks<br \/>\nAllowOverride All<br \/>\n&lt;IfModule mod_dav.c&gt;<br \/>\nDav off<br \/>\n&lt;\/IfModule&gt;<br \/>\nSetEnv HOME \/var\/www\/nextcloud<br \/>\nSetEnv HTTP_HOME \/var\/www\/nextcloud<br \/>\n&lt;\/Directory&gt;<br \/>\n#enable the newly created site<br \/>\nsudo a2ensite nextcloud.conf<br \/>\n#Additional Apache configurations<br \/>\nsudo a2enmod rewrite<br \/>\nsudo a2enmod headers<br \/>\nsudo a2enmod env<br \/>\nsudo a2enmod dir<br \/>\nsudo a2enmod mime<br \/>\nsudo service apache2 restart<br \/>\n#Enabling SSL<br \/>\nsudo a2enmod ssl<br \/>\nsudo a2ensite default-ssl<br \/>\nsudo service apache2 reload<br \/>\n#change the ownership on your Nextcloud directories to HTTP user<br \/>\nsudo chown -R www-data:www-data \/var\/www\/nextcloud\/<\/p>\n<p>sudo mysql -u root -p<br \/>\nSET password=PASSWORD(&#8216;password&#8217;);<br \/>\nCREATE DATABASE database;<br \/>\nGRANT ALL ON database.* to &#8216;root&#8217;@&#8217;localhost&#8217; IDENTIFIED BY &#8216;password&#8217;;<br \/>\nFLUSH PRIVILEGES;<br \/>\nexit<\/p>\n<p>\u5728\u6d4f\u89c8\u5668\u4e2d\u8bbf\u95ee\uff0c\u81ea\u52a8\u6253\u5f00\u8bbe\u7f6e\u9875\u9762<\/p>\n<p>http:\/\/IP\/nextcloud<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Installing NextCloud on Ubuntu 16.04 sudo apt update sudo apt-get install apache2 mariadb-server libapache2-mod-php7.0 sudo apt-get install php7.0-gd php7.0-json php7.0-mysql php7.0-curl php7.0-mbstring sudo apt-get install php7.0-intl php7.0-mcrypt php-imagick php7.0-xml php7.0-zip #Download NextCloud tar jxvf nextcloud*.bz2 sudo mv nextcloud \/var\/www\/ #Configuring Apache Web Server sudo touch \/etc\/apache2\/sites-available\/nextcloud.conf #add Alias \/nextcloud &#8220;\/var\/www\/nextcloud\/&#8221; &hellip;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[32],"tags":[],"class_list":["post-242","post","type-post","status-publish","format-standard","hentry","category-p6e5vy0umwgve"],"_links":{"self":[{"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/posts\/242","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/comments?post=242"}],"version-history":[{"count":1,"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/posts\/242\/revisions"}],"predecessor-version":[{"id":2305,"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/posts\/242\/revisions\/2305"}],"wp:attachment":[{"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/media?parent=242"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/categories?post=242"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/eternalsphere.net\/echoes\/index.php\/wp-json\/wp\/v2\/tags?post=242"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}