mirror of
https://github.com/nextcloud/documentation.git
synced 2026-01-03 02:09:45 +07:00
Update example Ubuntu instructions for Ubuntu 22.04 LTS
Signed-off-by: Nathan Haines <nhaines@ubuntu.com>
This commit is contained in:
@@ -1,31 +1,33 @@
|
||||
.. _ubuntu_installation_label:
|
||||
|
||||
Example installation on Ubuntu 20.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, by issuing the
|
||||
following commands in a terminal::
|
||||
|
||||
sudo apt update
|
||||
sudo apt install apache2 mariadb-server libapache2-mod-php7.4
|
||||
sudo apt install php7.4-gd php7.4-mysql php7.4-curl php7.4-mbstring php7.4-intl
|
||||
sudo apt install php7.4-gmp php7.4-bcmath php-imagick php7.4-xml php7.4-zip
|
||||
sudo apt install apache2 mariadb-server libapache2-mod-php8.1 php8.1-gd
|
||||
sudo apt install php8.1-mysql php8.1-curl php8.1-mbstring php8.1-intl
|
||||
sudo apt install php8.1-gmp php8.1-bcmath php-imagick php8.1-xml php8.1-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 :ref:`prerequisites_label` for details.
|
||||
If you are planning on running additional apps, keep in mind that they might
|
||||
require additional packages. See :ref:`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 and press the enter key when prompted for a password::
|
||||
To start the MySQL command line mode use the following command and press the
|
||||
Enter key when prompted for a password::
|
||||
|
||||
sudo /etc/init.d/mysql start
|
||||
sudo mysql -uroot -p
|
||||
|
||||
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:
|
||||
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:
|
||||
|
||||
::
|
||||
|
||||
@@ -71,12 +73,12 @@ Now download the archive of the latest Nextcloud version:
|
||||
to its final destination. When you are running the Apache HTTP server you may
|
||||
safely install Nextcloud in your Apache document root::
|
||||
|
||||
cp -r nextcloud /path/to/webserver/document-root
|
||||
sudo cp -r nextcloud /var/www
|
||||
|
||||
where ``/path/to/webserver/document-root`` is replaced by the
|
||||
document root of your Web server::
|
||||
* Finally, change the ownership of your Nextcloud directories to your HTTP
|
||||
user::
|
||||
|
||||
cp -r nextcloud /var/www
|
||||
sudo chown -R www-data:www-data /var/www/nextcloud
|
||||
|
||||
On other HTTP servers it is recommended to install Nextcloud outside of the
|
||||
document root.
|
||||
@@ -84,4 +86,8 @@ document root.
|
||||
Next steps
|
||||
----------
|
||||
|
||||
After installing the prerequisites and extracting the nextcloud directory, you should follow the instructions for Apache configuration at :ref:`apache_configuration_label`. Once Apache is installed, you can optionally follow the :doc:`source_installation` guide from :ref:`pretty_urls_label` until :ref:`other_HTTP_servers_label`
|
||||
After installing the prerequisites and extracting the nextcloud directory, you
|
||||
should follow the instructions for Apache configuration at
|
||||
:ref:`apache_configuration_label`. Once Apache is installed, you can optionally
|
||||
follow the :doc:`source_installation` guide from :ref:`pretty_urls_label` until
|
||||
:ref:`other_HTTP_servers_label`
|
||||
|
||||
Reference in New Issue
Block a user