- #INSTALL REDIS UBUNTU 20.04 INSTALL#
- #INSTALL REDIS UBUNTU 20.04 ZIP FILE#
- #INSTALL REDIS UBUNTU 20.04 MANUAL#
# to the URI, resulting in a HTTP 500 error response.įastcgi_split_path_info ^(.+?\.php)(/.*)$ įastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name įastcgi_param modHeadersAvailable true # Avoid sending the security headers twiceįastcgi_param front_controller_active true # Enable pretty urlsĮxpires 6M # Cache-Control policy borrowed from `.htaccess`Īccess_log off # Optional: Don't log access to assetsĮxpires 7d # Cache-Control policy borrowed from `.htaccess` # then Nginx will encounter an infinite rewriting loop when it prepends `/index.php` # which handle static assets (as seen below). # Ensure this block, which passes PHP files to the PHP process, is above the blocks We’ll grab a proper cert later from Letsencrypt. Note, below I am using the self-signed certs that come with Ubuntu so that Nginx can have all SSL config in place and reload without errors. Make changes to this config as necessary (change your server hostname, and ensure the path to the web application root directory is correct), and paste into the config file. touch /etc/nginx/sites-available/nextcloud
#INSTALL REDIS UBUNTU 20.04 INSTALL#
apt install unzipĬhown -R www-data:www-data /usr/share/nginx/nextcloud 4. Move the unzipped folder to a web server directory, and set permissions and ownership. Install the unzip utility, and unzip the file. (Obviously, replace the link shown below with whatever is current.) wget ''
#INSTALL REDIS UBUNTU 20.04 ZIP FILE#
On your server, download the ZIP file using wget. Visit the NextCloud Server Package Download page, and copy the link from the big blue “Download Nextcloud” button. MariaDB > GRANT ALL ON nextcloud.* TO IDENTIFIED BY 'Your_Strong_Password' MariaDB > CREATE USER IDENTIFIED BY 'Your_Strong_Password'
The commands below create a database and user, allow all privileges on the database to said user, apply the privilege changes, and exit the sql prompt. Replace the generic password shown below with one of your own, and record this. Now, log into the mysql prompt and create a Nextcloud database and user. Set a root password for the SQL server, but otherwise accept all defaults. Issue the following command, and follow the prompts. apt install php7.4 php7.4-fpm php7.4-common php7.4-gd php7.4-curl php7.4-zip php7.4-xml php7.4-mbstring php7.4-intl php7.4-imap php7.4-bcmath php7.4-redis php7.4-mysql php7.4-gmp php7.4-imagick redis imagemagick 2. If you’re not elevated to root, remember to use sudo for package install commands, etc. Note that I’m running commands shown below from a root prompt. Let’s start with Nginx (web server) and MariaDB (MySQL-equivalent database engine). Install Dependenciesįirst of all, install dependencies.
#INSTALL REDIS UBUNTU 20.04 MANUAL#
This guide is for a manual install of NextCloud 21 on a fresh Ubuntu 20.04 server using Nginx, MariaDB, and PHP 7.4 and Redis for memcache.