1"use strict";(self.webpackChunkcloudpanel_ce_docusaurus_clp=self.webpackChunkcloudpanel_ce_docusaurus_clp||[]).push([[4994],{3905:(e,t,n)=>{n.d(t,{kt:()=>m});var r=n(7294);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var c=r.createContext({}),p=function(e){var t=r.useContext(c),n=t;return e&&(n="function"==typeof e?e(t):l(l({},t),e)),n},s="mdxType",d={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},u=r.forwardRef((function(e,t){var n=e.components,a=e.mdxType,o=e.originalType,c=e.parentName,s=i(e,["components","mdxType","originalType","parentName"]),u=p(n),m=a,k=u["".concat(c,".").concat(m)]||u[m]||d[m]||o;return n?r.createElement(k,l(l({ref:t},s),{},{components:n})):r.createElement(k,l({ref:t},s))}));function m(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=n.length,l=new Array(o);l[0]=u;var i={};for(var c in t)hasOwnProperty.call(t,c)&&(i[c]=t[c]);i.originalType=e,i[s]="string"==typeof e?e:a,l[1]=i;for(var p=2;p<o;p++)l[p]=n[p];return r.createElement.apply(null,l)}return r.createElement.apply(null,n)}u.displayName="MDXCreateElement"},3919:(e,t,n)=>{function r(e){return!0===/^(\w*:|\/\/)/.test(e)}function a(e){return void 0!==e&&!r(e)}n.d(t,{Z:()=>a,b:()=>r})},4996:(e,t,n)=>{n.d(t,{C:()=>o,Z:()=>l});var r=n(2263),a=n(3919);function o(){const{siteConfig:{baseUrl:e="/",url:t}={}}=(0,r.Z)();return{withBaseUrl:(n,r)=>function(e,t,n,r){let{forcePrependBaseUrl:o=!1,absolute:l=!1}=void 0===r?{}:r;if(!n)return n;if(n.startsWith("#"))return n;if((0,a.b)(n))return n;if(o)return t+n;const i=n.startsWith(t)?n:t+n.replace(/^\//,"");return l?e+i:i}(t,e,n,r)}}function l(e,t){void 0===t&&(t={});const{withBaseUrl:n}=o();return n(e,t)}},2803:(e,t,n)=>{n.r(t),n.d(t,{contentTitle:()=>i,default:()=>u,frontMatter:()=>l,metadata:()=>c,toc:()=>p});var r=n(7462),a=(n(7294),n(3905)),o=n(4996);const l={id:"nextcloud",title:"Nextcloud",sidebar_label:"Nextcloud"},i=void 0,c={unversionedId:"php/applications/nextcloud",id:"php/applications/nextcloud",isDocsHomePage:!1,title:"Nextcloud",description:"On this site, you find a guide to install Nextcloud on CloudPanel.",source:"@site/docs/php/applications/nextcloud.md",sourceDirName:"php/applications",slug:"/php/applications/nextcloud",permalink:"/docs/v2/php/applications/nextcloud",editUrl:"https://github.com/cloudpanel-io/docs/tree/master/cloudpanel-ce/docs/php/applications/nextcloud.md",version:"current",frontMatter:{id:"nextcloud",title:"Nextcloud",sidebar_label:"Nextcloud"},sidebar:"sidebar",previous:{title:"Neos",permalink:"/docs/v2/php/applications/neos"},next:{title:"ownCloud",permalink:"/docs/v2/php/applications/owncloud"}},p=[{value:"Creating a Nextcloud Site",id:"creating-a-nextcloud-site",children:[{value:"Via CloudPanel",id:"via-cloudpanel",children:[]},{value:"Via CloudPanel CLI",id:"via-cloudpanel-cli",children:[]}]},{value:"Creating a Nextcloud Project",id:"creating-a-nextcloud-project",children:[]}],s={toc:p},d="wrapper";
1function u(e){let{components:t,...n}=e;return(0,a.kt)(d,(0,r.Z)({},s,n,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("p",null,"On this site, you find a guide to install ",(0,a.kt)("a",{parentName:"p",href:"https://nextcloud.com/"},"Nextcloud")," on ",(0,a.kt)("strong",{parentName:"p"},"CloudPanel"),"."),(0,a.kt)("h2",{id:"creating-a-nextcloud-site"},"Creating a Nextcloud Site"),(0,a.kt)("h3",{id:"via-cloudpanel"},"Via CloudPanel"),(0,a.kt)("ol",null,(0,a.kt)("li",{parentName:"ol"},"Click on ",(0,a.kt)("strong",{parentName:"li"},"+ Add Site")," and then click on ",(0,a.kt)("strong",{parentName:"li"},"Create a PHP Site"),".")),(0,a.kt)("img",{class:"border",alt:"Create a PHP Site",src:(0,o.Z)("img/php/applications/create-php-site.png")}),(0,a.kt)("ol",{start:2},(0,a.kt)("li",{parentName:"ol"},"Select the Application ",(0,a.kt)("strong",{parentName:"li"},"Nextcloud 34"),", enter ",(0,a.kt)("strong",{parentName:"li"},"Domain Name"),", ",(0,a.kt)("strong",{parentName:"li"},"Site User"),", ",(0,a.kt)("strong",{parentName:"li"},"Site User Password"),", and click on ",(0,a.kt)("strong",{parentName:"li"},"Create"),".")),(0,a.kt)("img",{class:"border",alt:"Create a Nextcloud Site",src:(0,o.Z)("img/php/applications/nextcloud/create-site-form.png?v=0.0.6")}),(0,a.kt)("h3",{id:"via-cloudpanel-cli"},"Via CloudPanel CLI"),(0,a.kt)("p",null,"If you like the command line, you can create a ",(0,a.kt)("strong",{parentName:"p"},"Nextcloud Site")," with the following command as ",(0,a.kt)("strong",{parentName:"p"},"root user"),"."),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-bash"},"clpctl site:add:php --domainName=www.domain.com --phpVersion=8.5 --vhostTemplate='Nextcloud 34' --siteUser='john-doe' --siteUserPassword='!secretPassword!'\n")),(0,a.kt)("h2",{id:"creating-a-nextcloud-project"},"Creating a Nextcloud Project"),(0,a.kt)("ol",null,(0,a.kt)("li",{parentName:"ol"},"Log in via ",(0,a.kt)("a",{parentName:"li",href:"../../../frontend-area/ssh-ftp/#ssh-login"},"SSH")," with the ",(0,a.kt)("strong",{parentName:"li"},"Site User"),":")),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-bash"},"ssh john-doe@server-ip-address\n")),(0,a.kt)("ol",{start:2},(0,a.kt)("li",{parentName:"ol"},"Go to the ",(0,a.kt)("strong",{parentName:"li"},"tmp")," directory:")),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre"},"cd ~/tmp\n")),(0,a.kt)("ol",{start:3},(0,a.kt)("li",{parentName:"ol"},"Download and extract the latest ",(0,a.kt)("strong",{parentName:"li"},"Nextcloud")," version.")),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre"},"curl -sLo nextcloud.zip https://download.nextcloud.com/server/releases/latest.zip && unzip nextcloud.zip -d nextcloud\n")),(0,a.kt)("ol",{start:4},(0,a.kt)("li",{parentName:"ol"},"Copy files to the ",(0,a.kt)("strong",{parentName:"li"},"root directory")," of your site:")),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre"},"cp -R nextcloud/nextcloud/{*,.*} ~/htdocs/www.domain.com/\n")),(0,a.kt)("ol",{start:5},(0,a.kt)("li",{parentName:"ol"},"Clean up the ",(0,a.kt)("strong",{parentName:"li"},"tmp")," directory.")),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre"},"rm -rf ~/tmp/*\n")),(0,a.kt)("ol",{start:6},(0,a.kt)("li",{parentName:"ol"},(0,a.kt)("a",{parentName:"li",href:"../../../frontend-area/databases/#adding-a-database"},"Create a Database"),", open your ",(0,a.kt)("strong",{parentName:"li"},"site")," in the browser, and go through the ",(0,a.kt)("strong",{parentName:"li"},"Nextcloud Installer"),".")),(0,a.kt)("img",{class:"border",alt:"Nextcloud Installer",src:(0,o.Z)("img/php/applications/nextcloud/nextcloud-installer.png?v=0.0.2")}),(0,a.kt)("ol",{start:7},(0,a.kt)("li",{parentName:"ol"},"Done. ",(0,a.kt)("strong",{parentName:"li"},"Nextcloud")," has been installed.")),(0,a.kt)("img",{class:"border",alt:"Nextcloud Installed",src:(0,o.Z)("img/php/applications/nextcloud/nextcloud-installed.png?v=0.0.2")}))}u.isMDXComponent=!0}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.