Install Config Wiki

All about installing, configuring and troubleshooting

User Tools

Site Tools


installing_nextcloud_27_0_ubuntu_server_22_04_lts

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
installing_nextcloud_27_0_ubuntu_server_22_04_lts [2023/06/20 18:54] wikiadmininstalling_nextcloud_27_0_ubuntu_server_22_04_lts [2023/06/20 19:09] (current) wikiadmin
Line 6: Line 6:
  
 Example installation on Ubuntu 22.04 LTS Example installation on Ubuntu 22.04 LTS
-You can use .deb packages to install the required and recommended modules for a typical Nextcloud installation, using Apache and MariaDB, by issuing the following commands in a terminal:+You can use .deb packages to install the required and recommended modules for a typical Nextcloud installation, using Apache and MariaDB (or MySql), by issuing the following commands in a terminal:
  
 +<code>
 sudo apt update && sudo apt upgrade sudo apt update && sudo apt upgrade
 sudo apt install apache2 mariadb-server libapache2-mod-php php-gd php-mysql \ sudo apt install apache2 mariadb-server libapache2-mod-php php-gd php-mysql \
 php-curl php-mbstring php-intl php-gmp php-bcmath php-xml php-imagick php-zip php-curl php-mbstring php-intl php-gmp php-bcmath php-xml php-imagick php-zip
 +</code>
 +
 This installs the packages for the Nextcloud core system. If you are planning on running additional apps, keep in mind that they might require additional packages. See prerequisites_label for details. This installs the packages for the Nextcloud core system. If you are planning on running additional apps, keep in mind that they might require additional packages. See prerequisites_label for details.
  
Line 17: Line 20:
 To start the MySQL command line mode use the following command: To start the MySQL command line mode use the following command:
  
 +<code>
 sudo mysql sudo mysql
-Then a MariaDB [root]> prompt will appear. Now enter the following lines, replacing username and password with appropriate values, and confirm them with the Enter key: 
  
 +</code>
 +
 +Then a MariaDB [root]> prompt will appear (or MySql [root]> prompt will appear depending on which Db server is installed). Now enter the following lines, replacing username and password with appropriate values, and confirm them with the Enter key:
 +
 +
 +<code>
 CREATE USER 'username'@'localhost' IDENTIFIED BY 'password'; CREATE USER 'username'@'localhost' IDENTIFIED BY 'password';
 CREATE DATABASE IF NOT EXISTS nextcloud CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci; CREATE DATABASE IF NOT EXISTS nextcloud CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
 GRANT ALL PRIVILEGES ON nextcloud.* TO 'username'@'localhost'; GRANT ALL PRIVILEGES ON nextcloud.* TO 'username'@'localhost';
 FLUSH PRIVILEGES; FLUSH PRIVILEGES;
 +</code>
 +
 You can quit the prompt by entering: You can quit the prompt by entering:
  
 +<code>
 quit; quit;
 +</code>
 +
 Now download the archive of the latest Nextcloud version: Now download the archive of the latest Nextcloud version:
  
Line 39: Line 53:
 Verify the MD5 or SHA256 sum: Verify the MD5 or SHA256 sum:
  
 +
 +<code>
 md5sum -c nextcloud-x.y.z.tar.bz2.md5 < nextcloud-x.y.z.tar.bz2 md5sum -c nextcloud-x.y.z.tar.bz2.md5 < nextcloud-x.y.z.tar.bz2
 sha256sum -c nextcloud-x.y.z.tar.bz2.sha256 < nextcloud-x.y.z.tar.bz2 sha256sum -c nextcloud-x.y.z.tar.bz2.sha256 < nextcloud-x.y.z.tar.bz2
 md5sum  -c nextcloud-x.y.z.zip.md5 < nextcloud-x.y.z.zip md5sum  -c nextcloud-x.y.z.zip.md5 < nextcloud-x.y.z.zip
 sha256sum  -c nextcloud-x.y.z.zip.sha256 < nextcloud-x.y.z.zip sha256sum  -c nextcloud-x.y.z.zip.sha256 < nextcloud-x.y.z.zip
 +</code>
 +
 +
 You may also verify the PGP signature: You may also verify the PGP signature:
  
 +<code>
 wget https://download.nextcloud.com/server/releases/nextcloud-x.y.z.tar.bz2.asc wget https://download.nextcloud.com/server/releases/nextcloud-x.y.z.tar.bz2.asc
 wget https://nextcloud.com/nextcloud.asc wget https://nextcloud.com/nextcloud.asc
 gpg --import nextcloud.asc gpg --import nextcloud.asc
 gpg --verify nextcloud-x.y.z.tar.bz2.asc nextcloud-x.y.z.tar.bz2 gpg --verify nextcloud-x.y.z.tar.bz2.asc nextcloud-x.y.z.tar.bz2
 +</code>
 +
 Now you can extract the archive contents. Run the appropriate unpacking command for your archive type: Now you can extract the archive contents. Run the appropriate unpacking command for your archive type:
  
 +<code>
 tar -xjvf nextcloud-x.y.z.tar.bz2 tar -xjvf nextcloud-x.y.z.tar.bz2
 unzip nextcloud-x.y.z.zip unzip nextcloud-x.y.z.zip
 +</code>
 +
 This unpacks to a single nextcloud directory. Copy the Nextcloud directory to its final destination. When you are running the Apache HTTP server you may safely install Nextcloud in your Apache document root: This unpacks to a single nextcloud directory. Copy the Nextcloud directory to its final destination. When you are running the Apache HTTP server you may safely install Nextcloud in your Apache document root:
  
 +
 +<code>
 sudo cp -r nextcloud /var/www sudo cp -r nextcloud /var/www
 +</code>
 +
 +COMMENT:  AT THIS POINT WE SHOULD SAVE A STEP BY UNPACKING THE NEXTCLOUD FOLDER AND ITS CONTENTS DIRECTLY TO THE APACHE2 DOCUMENT ROOT.  LET'S FIGURE OUT THAT COMMAND LINE INSTRUCTION.
 +
 Finally, change the ownership of your Nextcloud directories to your HTTP user: Finally, change the ownership of your Nextcloud directories to your HTTP user:
  
 +<code>
 sudo chown -R www-data:www-data /var/www/nextcloud sudo chown -R www-data:www-data /var/www/nextcloud
 +</code>
 +
 On other HTTP servers it is recommended to install Nextcloud outside of the document root. On other HTTP servers it is recommended to install Nextcloud outside of the document root.
  
-Next steps +Next steps 
-After installing the prerequisites and extracting the nextcloud directory, you should follow the instructions for Apache configuration at Apache Web server configuration. Once Apache is installed, you can optionally follow the Installation on Linux guide from Pretty URLs until Other Web servers+ 
 +After installing the prerequisites and extracting the nextcloud directory, you should follow the instructions for Apache configuration at Apache Web server configuration https://docs.nextcloud.com/server/latest/admin_manual/installation/source_installation.html#apache-configuration-label .  
 + 
 +Once Apache is installed, you can optionally follow the Installation on Linux guide https://docs.nextcloud.com/server/latest/admin_manual/installation/source_installation.html from Pretty URLs https://docs.nextcloud.com/server/latest/admin_manual/installation/source_installation.html#pretty-urls-label until Other Web servers https://docs.nextcloud.com/server/latest/admin_manual/installation/source_installation.html#other-http-servers-label
installing_nextcloud_27_0_ubuntu_server_22_04_lts.1687287278.txt.gz · Last modified: 2023/06/20 18:54 by wikiadmin