diff --git a/docs/source/install.rst b/docs/source/install.rst index b418bbe..7071ad8 100644 --- a/docs/source/install.rst +++ b/docs/source/install.rst @@ -59,37 +59,46 @@ For below, we will use the following. You can adjust as needed APPS_DIR='/var/www/html/apps' -1. Install dependencies: +Install dependencies: .. code-block:: console apt-get -y install apache2 php-{pgsql,zip,gd,simplexml,curl,fpm} proftpd libapache2-mod-fcgid postfix python3-certbot-apache gdal-bin -2. Install QGIS Server +Install QGIS Repository .. code-block:: console - # Check 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 </etc/logrotate.d/qgisserver < /etc/apache2/sites-available/qgis.conf +Copy conf files from installer directory and configure - for f in default-ssl 000-default; do - sed -i.save "s/#ServerName example.com/ServerName ${HNAME}/" /etc/apache2/sites-available/${f}.conf - done +.. code-block:: console + + + sed "s|\$DATA_DIR|$DATA_DIR|" < installer/qgis_apache2.conf > /etc/apache2/sites-available/qgis.conf a2ensite 000-default default-ssl qgis a2disconf serve-cgi-bin - # switch to mpm_event to server faster and use HTTP2 - PHP_VER=$(php -version | head -n 1 | cut -f2 -d' ' | cut -f1,2 -d.) + +Switch to mpm_event and use HTTP2 + +.. code-block:: console + a2enmod proxy_fcgi setenvif http2 - a2enconf php${PHP_VER}-fpm + a2enconf php8.1-fpm a2enmod mpm_event systemctl reload apache2 -5. Set up ProFTPD +Set up ProFTPD .. code-block:: console @@ -149,7 +164,7 @@ For below, we will use the following. You can adjust as needed systemctl enable proftpd systemctl restart proftpd -6. Create the PostgreSQL database +Create the PostgreSQL database .. code-block:: console @@ -161,7 +176,7 @@ For below, we will use the following. You can adjust as needed psql -c "ALTER DATABASE quartz OWNER TO quartz" CMD_EOF -7. Create the Data, Cache, and Apps directories +Create the Data, Cache, and Apps directories .. code-block:: console @@ -176,17 +191,16 @@ For below, we will use the following. You can adjust as needed -8. Give sync service +w to apps/1/images dir +Give sync service +w to apps/1/images dir .. code-block:: console chmod -R g+w "${APPS_DIR}" -9. Create the const.php configuration file using values from above +Create the admin/incl/const.php configuration file using values from above .. code-block:: console - cat >admin/incl/const.php < - CAT_EOF + ?> -10. Copy files from quartzmap directory to /var/www/html +Copy files from quartzmap directory to /var/www/html .. code-block:: console