Update docs/source/install.rst
This commit is contained in:
parent
27f66d0ea8
commit
96fc618d75
docs/source
|
@ -146,6 +146,47 @@ Create the Database Objects
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Install QGIS Server
|
||||||
|
-----------------------------
|
||||||
|
|
||||||
|
.. code-block:: bash
|
||||||
|
|
||||||
|
RELEASE=$(lsb_release -cs)
|
||||||
|
wget --no-check-certificate --quiet -O /etc/apt/keyrings/qgis-archive-keyring.gpg https://download.qgis.org/downloads/qgis-archive-keyring.gpg
|
||||||
|
|
||||||
|
cat >>/etc/apt/sources.list.d/qgis.sources <<CAT_EOF
|
||||||
|
Types: deb deb-src
|
||||||
|
URIs: https://qgis.org/ubuntu
|
||||||
|
Suites: ${RELEASE}
|
||||||
|
Architectures: amd64
|
||||||
|
Components: main
|
||||||
|
Signed-By: /etc/apt/keyrings/qgis-archive-keyring.gpg
|
||||||
|
CAT_EOF
|
||||||
|
|
||||||
|
apt-get update -y || true
|
||||||
|
apt-get install -y qgis-server
|
||||||
|
|
||||||
|
if [ -d /etc/logrotate.d ]; then
|
||||||
|
cat >/etc/logrotate.d/qgisserver <<CAT_EOF
|
||||||
|
/var/log/qgisserver.log {
|
||||||
|
su www-data www-data
|
||||||
|
size 100M
|
||||||
|
notifempty
|
||||||
|
missingok
|
||||||
|
rotate 3
|
||||||
|
daily
|
||||||
|
compress
|
||||||
|
create 660 www-data www-data
|
||||||
|
}
|
||||||
|
CAT_EOF
|
||||||
|
fi
|
||||||
|
|
||||||
|
touch /var/log/qgisserver.log
|
||||||
|
chown www-data:www-data /var/log/qgisserver.log
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Configure ProFTPD
|
Configure ProFTPD
|
||||||
----------------------------
|
----------------------------
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue