installing_nextcloud_27_0_ubuntu_server_22_04_lts
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
installing_nextcloud_27_0_ubuntu_server_22_04_lts [2023/06/20 18:53] – created wikiadmin | installing_nextcloud_27_0_ubuntu_server_22_04_lts [2023/06/20 19:09] (current) – wikiadmin | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Installing NextCloud 27.0.0 on Ubuntu Server 22.04 LTS ====== | ====== Installing NextCloud 27.0.0 on Ubuntu Server 22.04 LTS ====== | ||
- | Here if the Example installation contained in the NextCloud Documentation at: | + | Here is the "Example installation" |
https:// | https:// | ||
+ | Example installation on Ubuntu 22.04 LTS | ||
+ | You can use .deb packages to install the required and recommended modules for a typical Nextcloud installation, | ||
+ | < | ||
+ | sudo apt update && sudo apt upgrade | ||
+ | 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 | ||
+ | </ | ||
+ | |||
+ | 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. | ||
+ | |||
+ | Now you need to create a database user and the database itself by using the MySQL command line interface. The database tables will be created by Nextcloud when you login for the first time. | ||
+ | |||
+ | To start the MySQL command line mode use the following command: | ||
+ | |||
+ | < | ||
+ | sudo mysql | ||
+ | |||
+ | </ | ||
+ | |||
+ | 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: | ||
+ | |||
+ | |||
+ | < | ||
+ | CREATE USER ' | ||
+ | CREATE DATABASE IF NOT EXISTS nextcloud CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci; | ||
+ | GRANT ALL PRIVILEGES ON nextcloud.* TO ' | ||
+ | FLUSH PRIVILEGES; | ||
+ | </ | ||
+ | |||
+ | You can quit the prompt by entering: | ||
+ | |||
+ | < | ||
+ | quit; | ||
+ | </ | ||
+ | |||
+ | Now download the archive of the latest Nextcloud version: | ||
+ | |||
+ | Go to the Nextcloud Download Page. | ||
+ | |||
+ | Go to Download Nextcloud Server > Download > Archive file for server owners and download either the tar.bz2 or .zip archive. | ||
+ | |||
+ | This downloads a file named nextcloud-x.y.z.tar.bz2 or nextcloud-x.y.z.zip (where x.y.z is the version number). | ||
+ | |||
+ | Download its corresponding checksum file, e.g. nextcloud-x.y.z.tar.bz2.md5, | ||
+ | |||
+ | Verify the MD5 or SHA256 sum: | ||
+ | |||
+ | |||
+ | < | ||
+ | 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 | ||
+ | md5sum | ||
+ | sha256sum | ||
+ | </ | ||
+ | |||
+ | |||
+ | You may also verify the PGP signature: | ||
+ | |||
+ | < | ||
+ | wget https:// | ||
+ | wget https:// | ||
+ | gpg --import nextcloud.asc | ||
+ | gpg --verify nextcloud-x.y.z.tar.bz2.asc nextcloud-x.y.z.tar.bz2 | ||
+ | </ | ||
+ | |||
+ | Now you can extract the archive contents. Run the appropriate unpacking command for your archive type: | ||
+ | |||
+ | < | ||
+ | tar -xjvf nextcloud-x.y.z.tar.bz2 | ||
+ | unzip nextcloud-x.y.z.zip | ||
+ | </ | ||
+ | |||
+ | 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: | ||
+ | |||
+ | |||
+ | < | ||
+ | sudo cp -r nextcloud /var/www | ||
+ | </ | ||
+ | |||
+ | COMMENT: | ||
+ | |||
+ | Finally, change the ownership of your Nextcloud directories to your HTTP user: | ||
+ | |||
+ | < | ||
+ | sudo chown -R www-data: | ||
+ | </ | ||
+ | |||
+ | On other HTTP servers it is recommended to install Nextcloud outside of the document root. | ||
+ | |||
+ | Next steps | ||
+ | |||
+ | After installing the prerequisites and extracting the nextcloud directory, you should follow the instructions for Apache configuration at Apache Web server configuration https:// | ||
+ | |||
+ | Once Apache is installed, you can optionally follow the Installation on Linux guide https:// |
installing_nextcloud_27_0_ubuntu_server_22_04_lts.1687287233.txt.gz · Last modified: 2023/06/20 18:53 by wikiadmin