[{"data":1,"prerenderedAt":496},["ShallowReactive",2],{"navigation":3,"\u002Fblog\u002Fsetup-nextcloud-on-ubuntu-18-04-lts-with-apache2-mariadb-and-php":173,"\u002Fblog\u002Fsetup-nextcloud-on-ubuntu-18-04-lts-with-apache2-mariadb-and-php-surround":491},[4],{"title":5,"path":6,"stem":7,"children":8,"page":172},"Blog","\u002Fblog","blog",[9,13,17,21,25,29,33,37,41,45,49,53,57,61,65,69,73,77,81,85,89,93,97,101,105,109,113,117,121,125,129,133,137,141,145,149,153,157,161,165,169],{"title":10,"path":11,"stem":12},"Proxmox Remove Node from Cluster","\u002Fblog\u002Fproxmox-remove-node-from-cluster","blog\u002FProxmox-Remove-Node-from-Cluster",{"title":14,"path":15,"stem":16},"Proxmox Can't Live Migrate without with local disks option","\u002Fblog\u002Fproxmox-cant-live-migrate-without-local-disk-option","blog\u002FProxmox-cant-live-migrate-without-local-disk-option",{"title":18,"path":19,"stem":20},"Sharing large files with Send Firefox for free!","\u002Fblog\u002Fsharing-large-files-with-send-firefox","blog\u002FSharing-large-files-with-send-firefox",{"title":22,"path":23,"stem":24},"Windows Tips and My Favorite Password Manager","\u002Fblog\u002Fwindows-tips-and-my-favorite-password-manager","blog\u002FWindows-Tips-and-My-Favorite-Password-Manager",{"title":26,"path":27,"stem":28},"Add Docker Capabilities to TrueNAS Core","\u002Fblog\u002Fadd-docker-capabilities-to-truenas-core","blog\u002Fadd-docker-capabilities-to-truenas-core",{"title":30,"path":31,"stem":32},"Backup Office 365 OneDrive or SharePoint to TrueNAS","\u002Fblog\u002Fbackup-office-365-onedrive-or-sharepoint-to-truenas","blog\u002Fbackup-office-365-onedrive-or-sharepoint-to-truenas",{"title":34,"path":35,"stem":36},"Backup TrueNAS to the Cloud with Wasabi (S3 Compatible Storage)","\u002Fblog\u002Fbackup-truenas-to-the-cloud-with-wasabi-s3-compatible-storage","blog\u002Fbackup-truenas-to-the-cloud-with-wasabi-s3-compatible-storage",{"title":38,"path":39,"stem":40},"Best Budget Security System 2019","\u002Fblog\u002Fbest-budget-security-system-2019","blog\u002Fbest-budget-security-system-2019",{"title":42,"path":43,"stem":44},"Can AI Be a System Administrator? Fixing a Stuck Windows 11 Upgrade","\u002Fblog\u002Fcan-ai-be-a-system-administrator-fixing-a-stuck-windows-11-upgrade","blog\u002Fcan-ai-be-a-system-administrator-fixing-a-stuck-windows-11-upgrade",{"title":46,"path":47,"stem":48},"Create Windows 10 Virtual Machine on Proxmox","\u002Fblog\u002Fcreate-windows-10-virtual-machine-on-proxmox","blog\u002Fcreate-windows-10-virtual-machine-on-proxmox",{"title":50,"path":51,"stem":52},"Enable Super Fast Search on Server","\u002Fblog\u002Fenable-super-fast-search-on-server","blog\u002Fenable-super-fast-search-on-server",{"title":54,"path":55,"stem":56},"Essential Waterproof Beach Tech","\u002Fblog\u002Fessential-waterproof-beach-tech","blog\u002Fessential-waterproof-beach-tech",{"title":58,"path":59,"stem":60},">-","\u002Fblog\u002Ffree-remote-desktop-access-with-google-chrome-remote-desktop","blog\u002Ffree-remote-desktop-access-with-google-chrome-remote-desktop",{"title":62,"path":63,"stem":64},"FreeNAS can Host Virtual Machines: Using the bhyve Hypervisor from the Web GUI","\u002Fblog\u002Ffreenas-can-host-virtual-machines-using-the-bhyve-hypervisor-from-the-web-gui","blog\u002Ffreenas-can-host-virtual-machines-using-the-bhyve-hypervisor-from-the-web-gui",{"title":66,"path":67,"stem":68},"HAProxy 2.4 Install and Basic Setup On Ubuntu 20.04 LTS","\u002Fblog\u002Fhaproxy-2-4-install-and-basic-setup-on-ubuntu-20-04-lts","blog\u002Fhaproxy-2-4-install-and-basic-setup-on-ubuntu-20-04-lts",{"title":70,"path":71,"stem":72},"How to backup virtual machines to a NAS using NFS","\u002Fblog\u002Fhow-to-backup-virtual-machines-to-a-nas-using-nfs-1","blog\u002Fhow-to-backup-virtual-machines-to-a-nas-using-nfs-1",{"title":74,"path":75,"stem":76},"How to Enable Clipboard History in Windows 10","\u002Fblog\u002Fhow-to-enable-clipboard-history-in-windows-10","blog\u002Fhow-to-enable-clipboard-history-in-windows-10",{"title":78,"path":79,"stem":80},"How To Enable Screensavers On Windows 10","\u002Fblog\u002Fhow-to-enable-screensavers-on-windows-10","blog\u002Fhow-to-enable-screensavers-on-windows-10",{"title":82,"path":83,"stem":84},"How To get started blogging or build a website for free","\u002Fblog\u002Fhow-to-get-started-blogging-or-build-a-website-for-free","blog\u002Fhow-to-get-started-blogging-or-build-a-website-for-free",{"title":86,"path":87,"stem":88},"How to Install OPNSense Firewall?","\u002Fblog\u002Fhow-to-install-opnsense","blog\u002Fhow-to-install-OPNSense",{"title":90,"path":91,"stem":92},"How to Install FreeNAS from ISO","\u002Fblog\u002Fhow-to-install-freenas-from-iso","blog\u002Fhow-to-install-freenas-from-iso",{"title":94,"path":95,"stem":96},"How to Manage Windows Defender Antivirus with PowerShell","\u002Fblog\u002Fhow-to-manage-windows-defender-antivirus-with-powershell","blog\u002Fhow-to-manage-windows-defender-antivirus-with-powershell",{"title":98,"path":99,"stem":100},"How to Schedule Backups with Proxmox on a Local Directory","\u002Fblog\u002Fhow-to-schedule-backups-with-proxmox-on-a-local-directory","blog\u002Fhow-to-schedule-backups-with-proxmox-on-a-local-directory",{"title":102,"path":103,"stem":104},"Installing Docker and Portainer on Proxmox","\u002Fblog\u002Finstalling-docker-and-portainer-on-proxmox","blog\u002Finstalling-docker-and-portainer-on-proxmox",{"title":106,"path":107,"stem":108},"LAMP Stack Install Ubuntu 18 04: Linux Apache MySQL and PHP","\u002Fblog\u002Flamp-stack-install-ubuntu-18-04-linux-apache-mysql-and-php","blog\u002Flamp-stack-install-ubuntu-18-04-linux-apache-mysql-and-php",{"title":110,"path":111,"stem":112},"Microsoft Excel Keyboard Shortcuts","\u002Fblog\u002Fmicrosoft-excel-keyboard-shortcuts","blog\u002Fmicrosoft-excel-keyboard-shortcuts",{"title":114,"path":115,"stem":116},"Microsoft Word Keyboard Shortcuts","\u002Fblog\u002Fmicrosoft-word-keyboard-shortcuts","blog\u002Fmicrosoft-word-keyboard-shortcuts",{"title":118,"path":119,"stem":120},"Multiple Proxmox Hosts With Duplicate Virtual Machine IDs on Shared NFS Storage","\u002Fblog\u002Fmultiple-proxmox-hosts-with-duplicate-virtual-machine-ids-on-shared-nfs-storage","blog\u002Fmultiple-proxmox-hosts-with-duplicate-virtual-machine-ids-on-shared-nfs-storage",{"title":122,"path":123,"stem":124},"OPNSense Setup Multi-LAN, DHCP Static Assignment and More (Part 3)","\u002Fblog\u002Fopnsense-setup-multi-lan-dhcp-static-assignment-and-more-part-3","blog\u002Fopnsense-setup-multi-lan-dhcp-static-assignment-and-more-part-3",{"title":126,"path":127,"stem":128},"Remote Gaming and Video editing with Proxmox GPU passthrough","\u002Fblog\u002Fremote-gaming-and-video-editing-with-proxmox-gpu-passthrough","blog\u002Fremote-gaming-and-video-editing-with-proxmox-gpu-passthrough",{"title":130,"path":131,"stem":132},"Secure Your Nextcloud with HTTPS hosted on TrueNAS 12 Core with Nginx","\u002Fblog\u002Fsecure-your-nextcloud-with-https-hosted-on-truenas-12-core-with-nginx-proxy-manager","blog\u002Fsecure-your-nextcloud-with-https-hosted-on-truenas-12-core-with-nginx-proxy-manager",{"title":134,"path":135,"stem":136},"Setup NextCloud on Ubuntu 18.04 LTS with Apache2, MariaDB and PHP","\u002Fblog\u002Fsetup-nextcloud-on-ubuntu-18-04-lts-with-apache2-mariadb-and-php","blog\u002Fsetup-nextcloud-on-ubuntu-18-04-lts-with-apache2-mariadb-and-php",{"title":138,"path":139,"stem":140},"Setup Wizard and How to Backup OPNSense Firewall (Part 2)","\u002Fblog\u002Fsetup-wizard-and-how-to-backup-opnsense-firewall-part-2","blog\u002Fsetup-wizard-and-how-to-backup-opnsense-firewall-part-2",{"title":142,"path":143,"stem":144},"TrueNAS Nginx Proxy Jail with Let's Encrypt for your NextCloud","\u002Fblog\u002Ftruenas-nginx-proxy-jail-with-lets-encrypt-for-your-nextcloud","blog\u002Ftruenas-nginx-proxy-jail-with-lets-encrypt-for-your-nextcloud",{"title":146,"path":147,"stem":148},"Upgrading FreeNAS 11.3 to TrueNAS 12 Release","\u002Fblog\u002Fupgrading-freenas-11-3-to-truenas-12-release","blog\u002Fupgrading-freenas-11-3-to-truenas-12-release",{"title":150,"path":151,"stem":152},"What Does Secure Website Mean And How To Tell?","\u002Fblog\u002Fwhat-does-secure-website-mean-and-how-to-tell","blog\u002Fwhat-does-secure-website-mean-and-how-to-tell",{"title":154,"path":155,"stem":156},"Windows 10 Quick Tip #1: Customize Your Taskbar","\u002Fblog\u002Fwindows-10-quick-tip-1-customize-your-taskbar","blog\u002Fwindows-10-quick-tip-1-customize-your-taskbar",{"title":158,"path":159,"stem":160},"Windows 10 QuickTip #2 Free Up Disk Drive Space by enabling Storage Sense","\u002Fblog\u002Fwindows-10-quicktip-2-free-up-disk-drive-space-by-enabling-storage-sense","blog\u002Fwindows-10-quicktip-2-free-up-disk-drive-space-by-enabling-storage-sense",{"title":162,"path":163,"stem":164},"Windows 10 QuickTip #4 Backup Your Windows PC for Free with OneDrive","\u002Fblog\u002Fwindows-10-quicktip-4-backup-your-windows-pc-for-free-with-onedrive","blog\u002Fwindows-10-quicktip-4-backup-your-windows-pc-for-free-with-onedrive",{"title":166,"path":167,"stem":168},"Windows 10 QuickTip #5 Zoom in and Zoom out on Your Web Browser","\u002Fblog\u002Fwindows-10-quicktip-5-zoom-in-and-zoom-out-on-your-web-browser","blog\u002Fwindows-10-quicktip-5-zoom-in-and-zoom-out-on-your-web-browser",{"title":58,"path":170,"stem":171},"\u002Fblog\u002Fwindows-10-quicktip-backup-your-windows-pc-for-free-with-google-backup-and-sync","blog\u002Fwindows-10-quicktip-backup-your-windows-pc-for-free-with-google-backup-and-sync",false,{"id":174,"title":134,"author":175,"body":179,"date":483,"description":484,"extension":485,"image":486,"meta":487,"minRead":488,"navigation":465,"path":135,"seo":489,"stem":136,"__hash__":490},"blog\u002Fblog\u002Fsetup-nextcloud-on-ubuntu-18-04-lts-with-apache2-mariadb-and-php.md",{"name":176,"avatar":177},"Kevin Stevenson",{"src":178,"alt":176},"\u002Favatar.png",{"type":180,"value":181,"toc":480},"minimark",[182,186,192,195,200,203,206,209,212,215,218,223,226,231,234,237,240,243,246,251,254,257,260,263,266,271,274,277,280,283,286,289,292,295,298,301,304,307,316,319,324,327,332,335,338,341,344,347,350,353,356,363,366,369,372,375,378,381,384,394,397,400],[183,184,185],"p",{},"I will be using DigitalOcean Droplet. Before you start installing anything ever you want to do a basic update by typing:",[183,187,188],{},[189,190,191],"code",{},"sudoapt-get update",[183,193,194],{},"Then type:",[183,196,197],{},[189,198,199],{},"sudoapt-get upgrade",[183,201,202],{},"After you are finished you will want to type:",[183,204,205],{},"`\napt-get install apache2mariadb-server libapache2-mod-php7.2",[183,207,208],{},"apt-get install php7.2-gd php7.2-json php7.2-mysql php7.2-curl php7.2-mbstring",[183,210,211],{},"apt-get install php7.2-intl php-imagickphp7.2-xml php7.2-zip\n`",[183,213,214],{},"This will install apachemariadb and the couple php",[183,216,217],{},"One useful command to check your version of mariadbis:",[183,219,220],{},[189,221,222],{},"mysql-v",[183,224,225],{},"We will want to now secure mysql by typing this command:",[183,227,228],{},[189,229,230],{},"sudomysql_secure_installation",[183,232,233],{},"It will ask you a few questions, I say yes to all of them but choose what you would like.",[183,235,236],{},"We are now going to setup the database, type:",[183,238,239],{},"`\nsudomysql",[183,241,242],{},"create databasenextclouddb:\n`",[183,244,245],{},"Now the database is created, now we are going to create a user:",[183,247,248],{},[189,249,250],{},"CREATE USER 'nextclouduser'@'localhost'' IDENTIFIED BY 'password':",[183,252,253],{},"Change password to your actual password. Now we are going to grant all privileges and flush them:",[183,255,256],{},"`\nGRANT ALL ONnextclouddb.TO 'nextclouduser'@'localhost':*",[183,258,259],{},"FLUSH PRIVILEGES",[183,261,262],{},"EXIT:\n`",[183,264,265],{},"Now continue with this command to make php more robust:",[183,267,268],{},[189,269,270],{},"nano\u002Fetc\u002Fphp\u002F7.2\u002Fapache2\u002Fphp.ini",[183,272,273],{},"Ctrl+W then type:",[183,275,276],{},"memory_limit and we want to change that to 512M",[183,278,279],{},"Search for upload_max_file and change it to 500M",[183,281,282],{},"Search post_max and change it to 500M",[183,284,285],{},"Search max_execution and change it to 300",[183,287,288],{},"Search date.time and change it to your timezone which for me is America\u002FChicago",[183,290,291],{},"You now will want to Ctrl + X to save all of this.",[183,293,294],{},"Now start Apache:",[183,296,297],{},"`\nsystemctlstart apache2",[183,299,300],{},"systemctlstartmariadb",[183,302,303],{},"systemctlenable apache2",[183,305,306],{},"systemctlenablemariadb\n`",[183,308,309,310],{},"Next you will want to open your web browser and go to ",[311,312,313],"a",{"href":313,"rel":314},"https:\u002F\u002Fwww.nextcloud.com\u002Finstall",[315],"nofollow",[183,317,318],{},"Click download for server, we are downloading next cloud as archive file so right-click the download button and grab the link. Proceed by typing this command, you can use the link you copied:",[183,320,321],{},[189,322,323],{},"wget https:\u002F\u002Fdownload.nextcloud.com\u002Fserver\u002Freleases\u002Fnextcloud-18.0.2.zip",[183,325,326],{},"You will want to have unzip installed so you will need to run the command:",[183,328,329],{},[189,330,331],{},"apt install unzip",[183,333,334],{},"Once it has downloaded then type the commands:",[183,336,337],{},"`\nunzip nextcloud-18.0.2.zip",[183,339,340],{},"cp â€“rnextcloud\u002Fvar\u002Fwww\u002Fhtml",[183,342,343],{},"chownâ€“Rwww-data:www-data\u002Fvar\u002Fwww\u002Fhtml\u002Fnextcloud\u002F",[183,345,346],{},"chmodâ€“R 755 \u002Fvar\u002Fwww\u002Fhtml\u002Fnextcloud\u002F",[183,348,349],{},"nano\u002Fetc\u002Fapache2\u002Fsites-available\u002Fnextcloud.conf\n`",[183,351,352],{},"Copy and paste this:",[183,354,355],{},"`\n\u003CVirtualHost *:80>",[183,357,358,359],{},"ServerAdmin ",[311,360,362],{"href":361},"mailto:admin@example.com","admin@example.com",[183,364,365],{},"DocumentRoot \u002Fvar\u002Fwww\u002Fhtml\u002Fnextcloud\u002F",[183,367,368],{},"ServerName cloud-demo.its",[183,370,371],{},"Alias \u002Fnextcloud \"\u002Fvar\u002Fwww\u002Fhtml\u002Fnextcloud\u002F>",[183,373,374],{},"\u003CDirectory \u002Fvar\u002Fwww\u002Fhtml\u002Fnextcloud\u002F>",[183,376,377],{},"Options +FollowSymlinks",[183,379,380],{},"AllowOverride All",[183,382,383],{},"Require all granted",[385,386,391],"pre",{"className":387,"code":389,"language":390},[388],"language-text"," \u003CIfModule mod_dav.c> \n\n    Dav off \n\n\u003CIfModule> \n","text",[189,392,389],{"__ignoreMap":393},"",[183,395,396],{},"SetEnv Home \u002Fvar\u002Fwww\u002Fhtml\u002Fnextcloud",[183,398,399],{},"SetEnv HTTP_HOME \u002Fvar\u002Fwww\u002Fhtml\u002Fnextcloud",[401,402,403,404,407,410,413,416,419,422,425,428,431,434,439,442,445,450,453,456,459,466,469],"directory",{}," \n",[183,405,406],{},"ErrorLog ${APACHE_LOG_DIR}\u002Ferror.log\n`",[183,408,409],{},"You will need to change server name to yours and then save.",[183,411,412],{},"Continue with these commands:",[183,414,415],{},"`\na2ensitenextcloud.conf",[183,417,418],{},"a2enmod rewrite",[183,420,421],{},"a2enmod headers",[183,423,424],{},"a2enmod env",[183,426,427],{},"a2enmoddir",[183,429,430],{},"a2enmod mime\n`",[183,432,433],{},"Then do a restart of apache:",[183,435,436],{},[189,437,438],{},"systemctlrestart apache2",[183,440,441],{},"Then Nextcloud should be setup",[183,443,444],{},"Now we want to setup a more secure connection:",[183,446,447],{},[189,448,449],{},"apt-get install python-certbot-apache â€“y",[183,451,452],{},"Then change the domain to the right domain and then set your email when it prompts.",[183,454,455],{},"We select 2 for the option to redirect https so its more secure.",[183,457,458],{},"Now going to Nextcloud fill out all the information and then click Finish Setup.",[460,461],"iframe",{"style":462,"src":463,"allow":464,"allowFullScreen":465},"width:100%; aspect-ratio:16\u002F9; border:0; border-radius:0.5rem;","https:\u002F\u002Fwww.youtube.com\u002Fembed\u002F-tW3_cmGkns","accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",true,[467,468],"hr",{},[183,470,471],{},[472,473,474,475],"em",{},"This Article has been Republished with Permission from ",[311,476,479],{"href":477,"rel":478},"https:\u002F\u002Fphasedlogix.com\u002Fsetup-nextcloud-on-ubuntu-18-04-lts-with-apache2-mariadb-and-php\u002F",[315],"PhasedLogix",{"title":393,"searchDepth":481,"depth":481,"links":482},2,[],"2020-03-25","Installing and configuring nextcloud","md","\u002Fimages\u002Fblog\u002Fconfigure-nextcloud.png",{},3,{"title":134,"description":484},"wDicT0tbJsygxWCRorqutsYKq9luzxSzFG5VQg34kzc",[492,494],{"title":130,"path":131,"stem":132,"description":493,"children":-1},"In this tutorial I show you how to install Nextcloud on TrueNAS 12",{"title":138,"path":139,"stem":140,"description":495,"children":-1},"OPNSense is an open-source firewall and routing platform based on",1789484071355]