Sudo php /var/db:add-missing-indices Create an SSL certificate sudo add-apt-repository ppa:certbot/certbot Enable memory cachingĮdit the Nextcloud config file: sudo vim /var/Add the following line to the end: 'memcache.local' => '\OC\Memcache\APCu', Correct permissions of config.php sudo chmod 660 /var/sudo chown root:Fix database indexes You may have to run the following to fix database indexes, if you see an error: Sudo systemctl restart apache2 Configure Nextcloudīrowse to the Nextcloud server in your browser, and update the configuration to match the database info you’ve used earlier. Opcache.revalidate_freq=1 Enable required Apache mods sudo a2enmod dir env headers mime rewrite ssl Parameters to adjust: memory_limit = 512M Ubuntu 20.04: sudo nano /etc/php/7.4/apache2/php.iniĭebian 10: sudo nano /etc/php/7.3/apache2/php.ini Enable the site sudo a2ensite nc.conf Configure PHP TransferLog /var/log/apache2/nc._access.logĮrrorLog /var/log/apache2/nc._error.log ![]() Sudo systemctl reload apache2 Add Apache virtual host for Nextcloud sudo nano /etc/apache2/sites-available/nc.conf ĭocumentRoot "/var/ServerName nc. Unzip nextcloud-.zip Organize Apache files mv nextcloud nc. Systemctl status mariadb Enable recommended PHP extensions sudo phpenmod bcmath gmp imagick intl Install zip and unzip nextcloud sudo apt install unzip Make sure apache2 is listed as a package in the list to be installed Check status with systemctl systemctl status apache2 GRANT ALL PRIVILEGES ON nextcloud.* TO IDENTIFIED BY 'mypassword' ĬTRL D to exit Install required packages sudo apt install php php-apcu php-bcmath php-cli php-common php-curl php-gd php-gmp php-imagick php-intl php-mbstring php-mysql php-zip php-xml Secure the installation with: sudo mysql_secure_installationįollow the prompts to set up some very basic security defaults for the database server. Install the mariadb-server package: sudo apt install mariadb-server Just grab the URL from the Nextcloud site. Note: Change the URL in the command above to whatever the current download URL is for Nextcloud, this changes from time to time. On the server, download the Nextcloud zip file: wget Go to: Click “Download for server” and copy the link address. Install the tmux package: sudo apt install tmuxĪctivate tmux with: tmux Download Nextcloud This is an optional step, but running within tmux helps you avoid a situation where your SSH session disconnects in the middle of installing packages, which can cause package corruption. Sudo nano /etc/hosts Reboot to save all changes so far sudo reboot Install tmux (optional) You can clean them up with the following command: sudo apt autoremove Set the hostname sudo nano /etc/hostname There may or may not be some orphaned packages. ![]() Sudo apt dist-upgrade Clean up orphan packages Adding a userĪfter setting up Ubuntu Server, create a user for yourself if you don’t already have one: sudo adduser jdoe Adding a user to the sudo group sudo usermod -aG sudo jdoe Update packages sudo apt update You can support the channel by setting up a server on Linode with (this link) but that’s optional, any Ubuntu Server installation should be fine. To get started, install Ubuntu Server on a VPS, physical server, virtual machine, or whatever you have. The video shows the process of setting up a domain.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |