mirror of
https://github.com/nextcloud/documentation.git
synced 2026-01-02 17:59:36 +07:00
Merge pull request #8186 from nathanhaines/master
Update example Ubuntu instructions for Ubuntu 22.04 LTS
This commit is contained in:
@@ -1,31 +1,31 @@
|
||||
.. _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 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 :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::
|
||||
|
||||
sudo /etc/init.d/mysql start
|
||||
sudo mysql -uroot -p
|
||||
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:
|
||||
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 +71,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 +84,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