User Tools

Site Tools


nextcloud-install

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
nextcloud-install [2020/10/26 10:44] gwsadminnextcloud-install [2023/05/17 22:52] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ====== How to install Nextcloud ====== ====== How to install Nextcloud ======
  
-==== Download & extract ====+  * Download & extract
  
 <code bash> <code bash>
Line 8: Line 8:
 sudo unzip nextcloud-x.x.x.zip -d /wherenextcloudwebdirectoryis/html sudo unzip nextcloud-x.x.x.zip -d /wherenextcloudwebdirectoryis/html
 sudo chown www-data:www-data /wherewebdirectoryis/html/ -R sudo chown www-data:www-data /wherewebdirectoryis/html/ -R
 +
  
 </code> </code>
-==== Setup MYSQL User/database ====+ 
 +  * Setup MYSQL User/database
  
 <code bash> <code bash>
Line 20: Line 22:
 flush privileges; flush privileges;
 exit; exit;
 +
  
 </code> </code>
-==== Create Nginx Config File for Nextcloud ====+ 
 +  * Create an Nginx Config File for Nextcloud
  
 <code bash> <code bash>
Line 137: Line 141:
    }    }
 } }
 +
  
 </code> </code>
  
-==== Test and reload Nginx ====+  * Test and reload Nginx
  
 <code bash> <code bash>
 sudo nginx -t sudo nginx -t
 sudo systemctl reload nginx sudo systemctl reload nginx
 +
  
 </code> </code>
-==== Install and enable PHP modules ====+ 
 +  * Install and enable PHP modules
  
 <code bash> <code bash>
 sudo apt install php-imagick php7.4-common php7.4-mysql php7.4-fpm php7.4-gd php7.4-json php7.4-curl  php7.4-zip php7.4-xml php7.4-mbstring php7.4-bz2 php7.4-intl sudo apt install php-imagick php7.4-common php7.4-mysql php7.4-fpm php7.4-gd php7.4-json php7.4-curl  php7.4-zip php7.4-xml php7.4-mbstring php7.4-bz2 php7.4-intl
 +
  
 </code> </code>
-==== Run Certbot ====+ 
 +  * Run Certbot
  
 <code bash> <code bash>
 sudo certbot --nginx sudo certbot --nginx
 +
  
 </code> </code>
-==== Make the data directory ====+ 
 +  * Make the data directory
  
 <code bash> <code bash>
Line 165: Line 176:
  
 sudo chown www-data:www-data whereyourwebdirectoryis/nextcloud-data sudo chown www-data:www-data whereyourwebdirectoryis/nextcloud-data
 +
  
 </code> </code>
-==== Run setup ====+ 
 +  * 
 + 
 +Run setup
  
   * Go to your domain name and run it from there   * Go to your domain name and run it from there
 +
 +===== Now to change some settings =====
 +
 +  * Edit www.conf file and remove semi-colon from this line - ;clear_env = no
 +  * Install Redis Cache
 +
 +<code bash>
 +sudo apt install redis-server
 +sudo systemctl start redis-server
 +sudo systemctl enable redis-server
 +sudo apt install php-redis
 +
 +</code>
 +  * Add this to THE end of Nextcloud config config.php fund in nextcloud webdirectory/config.php
 +
 +<code bash>
 +'memcache.distributed' => '\OC\Memcache\Redis',
 +'memcache.local' => '\OC\Memcache\Redis',
 +'memcache.locking' => '\OC\Memcache\Redis',
 +'redis' => array(
 +     'host' => 'localhost',
 +     'port' => 6379,
 +     ),
 +
 +</code>
 +  * Restart Nginx and PHP
 +
 +<code bash>
 +sudo systemctl restart nginx php7.4-fpm
 +
 +</code>
 +
 +**For more information go to https://www.linuxbabe.com/ubuntu/install-nextcloud-ubuntu-20-04-nginx-lemp-stack**
  
  
nextcloud-install.1603709083.txt.gz · Last modified: 2023/05/17 22:52 (external edit)