|
|
|
@ -28,10 +28,7 @@ Upon completion, you should see the message below::
|
|
|
|
Backend installation is finished.
|
|
|
|
Backend installation is finished.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Complete Setup
|
|
|
|
Complete setup by navigating to https://domain.com/admin.setup.php to complete the installation.
|
|
|
|
--------------
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Go to https://domain.com/admin.setup.php to complete the installation.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.. image:: images/installer-2.png
|
|
|
|
.. image:: images/installer-2.png
|
|
|
|
|
|
|
|
|
|
|
|
@ -159,14 +156,18 @@ Configure ProFTPD
|
|
|
|
systemctl enable proftpd
|
|
|
|
systemctl enable proftpd
|
|
|
|
systemctl restart proftpd
|
|
|
|
systemctl restart proftpd
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Configure Apache
|
|
|
|
Configure Apache
|
|
|
|
----------------------------
|
|
|
|
----------------------------
|
|
|
|
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
|
|
|
|
|
|
a2enmod ssl headers expires fcgid cgi
|
|
|
|
a2enmod ssl headers expires fcgid cgi
|
|
|
|
|
|
|
|
|
|
|
|
cp installer/apache2.conf /etc/apache2/sites-available/default-ssl.conf
|
|
|
|
cp installer/apache2.conf /etc/apache2/sites-available/default-ssl.conf
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Below is required for Certbot to provision SSL
|
|
|
|
|
|
|
|
|
|
|
|
for f in 000-default default-ssl; do
|
|
|
|
for f in 000-default default-ssl; do
|
|
|
|
sed -i.save "s/#ServerName example.com/#ServerName ${HNAME}/" /etc/apache2/sites-available/${f}.conf
|
|
|
|
sed -i.save "s/#ServerName example.com/#ServerName ${HNAME}/" /etc/apache2/sites-available/${f}.conf
|
|
|
|
done
|
|
|
|
done
|
|
|
|
@ -186,6 +187,12 @@ Create Data and Cache Directories
|
|
|
|
mkdir -p "${CACHE_DIR}"
|
|
|
|
mkdir -p "${CACHE_DIR}"
|
|
|
|
mkdir -p "${DATA_DIR}"
|
|
|
|
mkdir -p "${DATA_DIR}"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Grant Apache permissions
|
|
|
|
|
|
|
|
----------------------------
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
|
|
|
|
|
|
chown -R www-data:www-data "${APPS_DIR}"
|
|
|
|
chown -R www-data:www-data "${APPS_DIR}"
|
|
|
|
chown -R www-data:www-data "${CACHE_DIR}"
|
|
|
|
chown -R www-data:www-data "${CACHE_DIR}"
|
|
|
|
chown -R www-data:www-data "${DATA_DIR}"
|
|
|
|
chown -R www-data:www-data "${DATA_DIR}"
|
|
|
|
@ -197,6 +204,12 @@ Create Data and Cache Directories
|
|
|
|
|
|
|
|
|
|
|
|
systemctl restart apache2
|
|
|
|
systemctl restart apache2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Create Groups and Permissions
|
|
|
|
|
|
|
|
----------------------------
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
|
|
|
|
|
|
# create group for all FTP users
|
|
|
|
# create group for all FTP users
|
|
|
|
groupadd qatusers
|
|
|
|
groupadd qatusers
|
|
|
|
|
|
|
|
|
|
|
|
@ -215,7 +228,7 @@ Create Data and Cache Directories
|
|
|
|
echo -e "postgres and other passwords are saved in /root/auth.txt file"
|
|
|
|
echo -e "postgres and other passwords are saved in /root/auth.txt file"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Install More Stuff
|
|
|
|
Create incl/const.php file
|
|
|
|
---------------------------------------
|
|
|
|
---------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
.. code-block:: php
|
|
|
|
.. code-block:: php
|
|
|
|
@ -236,25 +249,5 @@ Install More Stuff
|
|
|
|
?>
|
|
|
|
?>
|
|
|
|
CAT_EOF
|
|
|
|
CAT_EOF
|
|
|
|
|
|
|
|
|
|
|
|
.. note:: If you want to quickly install and test Lizmap Web Client in a few steps, you can follow those
|
|
|
|
|
|
|
|
`instructions <https://github.com/3liz/lizmap-docker-compose>`_ using Docker and Docker-Compose.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.. note:: In Debian distributions, you can work as administrator (log in with ``root``), without using ``sudo`` on contrary to Ubuntu.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ln -s /etc/nginx/sites-available/lizmap.conf /etc/nginx/sites-enabled/lizmap.conf
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Restart Nginx
|
|
|
|
|
|
|
|
-------------
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
You must restart the Nginx server to validate the configuration.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
service nginx restart
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|